Oleksandr Tymoshenko
4063f92555
Add Raspberry Pi GPIO driver
...
Submitted by: Luiz Otavio O Souza
2012-11-23 20:04:39 +00:00
Warner Losh
62c2fb63a9
Strip trailing newline.
2012-11-23 17:22:38 +00:00
Oleksandr Tymoshenko
d914ecdf68
Now that we have working USB keyboard add ukbd to the syscons-enabling
...
part of config
2012-11-23 07:58:12 +00:00
Oleksandr Tymoshenko
9e93341312
Multiple fixes for BCM2835 framebuffer
...
- Get resolution settings from FDT blob
- Properly handle 24 and 16 bits per pixel
- Add colors support for text console
2012-11-23 04:30:54 +00:00
Olivier Houchard
95122b9404
Make sure the address starts on a cache line boundary.
2012-11-21 01:38:40 +00:00
Adrian Chadd
73e357ea5b
Correctly use spaces here.
...
Pointed out by: pjd
2012-11-18 14:05:28 +00:00
Andrew Turner
7dc6ac7b74
Clean up the two i80321 copies of initarm to be closer to one another.
2012-11-17 23:06:00 +00:00
Adrian Chadd
b4d68cd536
Just compile the whole ath chipset support in.
2012-11-17 21:55:49 +00:00
Konstantin Belousov
43f48b65c0
Move the declaration of vm_phys_paddr_to_vm_page() from vm/vm_page.h
...
to vm/vm_phys.h, where it belongs.
Requested and reviewed by: alc
MFC after: 2 weeks
2012-11-16 05:55:56 +00:00
Olivier Houchard
bf014f0bab
Don't forget to unlock the pmap lock on failure.
2012-11-16 00:14:02 +00:00
Olivier Houchard
a0c8989b3a
Remove a useless printf
2012-11-15 23:49:07 +00:00
Olivier Houchard
a231b7e578
Use the "inner shareable" variations of flush/invalidate functions for SMP.
...
Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>
2012-11-15 22:31:23 +00:00
Konstantin Belousov
b32ecf44bc
Flip the semantic of M_NOWAIT to only require the allocation to not
...
sleep, and perform the page allocations with VM_ALLOC_SYSTEM
class. Previously, the allocation was also allowed to completely drain
the reserve of the free pages, being translated to VM_ALLOC_INTERRUPT
request class for vm_page_alloc() and similar functions.
Allow the caller of malloc* to request the 'deep drain' semantic by
providing M_USE_RESERVE flag, now translated to VM_ALLOC_INTERRUPT
class. Previously, it resulted in less aggressive VM_ALLOC_SYSTEM
allocation class.
Centralize the translation of the M_* malloc(9) flags in the single
inline function malloc2vm_flags().
Discussion started by: "Sears, Steven" <Steven.Sears@netapp.com>
Reviewed by: alc, mdf (previous version)
Tested by: pho (previous version)
MFC after: 2 weeks
2012-11-14 20:01:40 +00:00
Olivier Houchard
affc0185d1
Make it clear the L2 ops are filled for any cpu using a PL310 cache, not just
...
the omap4.
Spotted out by: Giovanni Trematerra <gianni at freebsd DOT org>
2012-11-14 12:11:23 +00:00
Olivier Houchard
b1c53e9711
Use the arrmv7 version for flushID too, as it does something different for SMP.
...
Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>
2012-11-14 10:59:42 +00:00
Warner Losh
86c3bcbb97
Reduce differences between these two initarms a bit more.
2012-11-08 04:02:36 +00:00
Warner Losh
8eece22e2d
Minor cosmetic changes to bring atmel's initarm and the default
...
initarm for FDT closer together. More to follow.
2012-11-07 16:59:12 +00:00
Kevin Lo
0f5e7edc14
Fix typo; s/ouput/output
2012-11-07 07:00:59 +00:00
Andrew Turner
7bf9ab5331
Merge the FDT versions of initarm.
...
The copies of initarm used on platforms with FDT support were almost
identical. The differences were pulled out into separate functions that
were called by initarm.
This change merges the, now identical, copies of initarm and a few of it's
support functions. This is a step towards a common kernel on ARMv6.
2012-11-03 22:39:07 +00:00
Olivier Houchard
9e9b17fba7
Fix build for SMP.
...
Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>
2012-11-01 12:26:31 +00:00
Andrew Turner
ef8abaaebf
Merge r242125 into the other ARMv6 copies of initarm.
2012-10-31 08:25:45 +00:00
Olivier Houchard
6626207e67
Fix SMP build for omap4
...
Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>
2012-10-30 15:25:01 +00:00
Andrew Turner
88acb428d3
Move the call to platform_gpio_init() into initarm_gpio_init() to reduce
...
the diff to the other FDT versions of initarm.
2012-10-30 06:11:09 +00:00
Oleksandr Tymoshenko
a9387eb1df
Add BCM2835 SDHCI driver and enable it in Raspberry Pi config
2012-10-29 17:23:45 +00:00
Tim Kientzle
e9e4f18efc
Missing paren.
...
Pointy hat:me
2012-10-27 22:13:42 +00:00
Tim Kientzle
27da503bd6
Comment out the other BOOTP option
...
This should make PANDABOARD suitable for building
bootable SD images.
Submitted by: Giovanni Trematerra
2012-10-27 04:02:12 +00:00
Tim Kientzle
83e73d6911
set the kernelname from the boot loader environment.
...
This fixes kern.bootfile sysctl.
Submitted by: Giovanni Trematerra
2012-10-26 05:48:53 +00:00
Tim Kientzle
4caba284ca
Comment out the BOOTP/NFSROOT support. Transition this
...
config file to support a production kernel mounted on an
SD card.
2012-10-26 05:41:58 +00:00
Tim Kientzle
5daf64fb7d
Do proper padding of runt packets using code copied from bge(4).
...
Reviewed by: gnn
2012-10-25 04:37:47 +00:00
Tim Kientzle
ea4597d0ab
Refer to headers locally. This makes it a lot easier
...
to build this driver out-of-tree.
2012-10-25 04:33:47 +00:00
Tim Kientzle
d19ad3d857
Support FreeBSD Boot loaders.
2012-10-25 04:14:42 +00:00
Tim Kientzle
98df587a3a
Everybody needs bpf.
2012-10-25 04:12:33 +00:00
Tim Kientzle
463443e509
Support boot loaders in the standard kernel.
2012-10-25 04:10:32 +00:00
Eitan Adler
a8de37b024
This isn't functionally identical. In some cases a hint to disable
...
unit 0 would in fact disable all units.
This reverts r241856
Approved by: cperciva (implicit)
2012-10-22 13:06:09 +00:00
Eitan Adler
76b7512247
Now that device disabling is generic, remove extraneous code from the
...
device drivers that used to provide this feature.
Reviewed by: des
Approved by: cperciva
MFC after: 1 week
2012-10-22 03:41:14 +00:00
Eitan Adler
db702c59cf
remove duplicate semicolons where possible.
...
Approved by: cperciva
MFC after: 1 week
2012-10-22 03:00:37 +00:00
Tim Kientzle
747d299f0a
Don't repeat the POSTREAD dma sync.
2012-10-22 02:28:48 +00:00
Tim Kientzle
da44817ee6
Replace deprecated M_DONTWAIT with M_NOWAIT.
2012-10-19 05:50:56 +00:00
Tim Kientzle
83e5430018
Fix an mbuf leak in cpsw driver, clean up mbuf management:
...
* Record TX mbufs when we get them so we can release them.
* Set TX/RX mbuf slots to NULL when we are no longer responsible for them
* Move dma sync on RX into RX intr routine
2012-10-15 04:10:49 +00:00
Tim Kientzle
2e88f5cd34
Cut-and-paste dropped semicolon.
2012-10-14 23:07:54 +00:00
Tim Kientzle
4cc21ce89a
Name cpsw_stop to cpsw_stop_locked consistently with other functions
...
in this file that assume locks are already held.
2012-10-14 23:00:24 +00:00
Tim Kientzle
a97afde093
Return correct packet size.
2012-10-14 22:58:12 +00:00
Warner Losh
c558b53ec8
Loop reading the RTC registers until the same values are obtained
...
twice, as advised in the atmel docs.
Submitted by: Ian Lapore
2012-10-07 20:36:46 +00:00
Warner Losh
71d97412d0
Improve a few comments.
2012-10-07 02:08:19 +00:00
Warner Losh
6859e74003
Use the RTC unit to get the time. This works on all known AT91SAM9*
...
processors, either on reboot or after power down with battery backup.
However, the AT91RM9200 RTC always resets on reboot making it just
about useless at the moment (if we support a low-power mode or an
extended sleep mode, it might become useful).
Submitted by: Ian Lepore
2012-10-07 01:58:32 +00:00
Tim Kientzle
79823ad281
Support kernel options from ubldr.
2012-10-01 14:56:48 +00:00
Andrew Turner
5bd9e48117
Remove unused variables from the OMAP ehci code.
2012-10-01 05:15:13 +00:00
Andrew Turner
052e6d041f
Fix the clobber list on the atomic operators that do comparisons. Without
...
this some compilers will place a cmp instruction before the atomic operation
and expect to be able to use the result afterwards. By adding "cc" to the
list of used registers we tell the compiler to not do this.
2012-10-01 05:12:17 +00:00
Alan Cox
26e874e0d5
Stop calling pmap_remove_write() from pmap_remove_all(). Doing so is not
...
only inefficient but also leads to recursive lock acquisition.
Tested by: ray
2012-09-30 03:54:57 +00:00
Alan Cox
a1685193bc
Eliminate an unused declaration.
2012-09-29 22:28:00 +00:00