Konstantin Belousov
1c771f9222
After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason
...
to pull vm_param.h was removed. Other big dependency of vm_page.h on
vm_param.h are PA_LOCK* definitions, which are only needed for
in-kernel code, because modules use KBI-safe functions to lock the
pages.
Stop including vm_param.h into vm_page.h. Include vm_param.h
explicitely for the kernel code which needs it.
Suggested and reviewed by: alc
MFC after: 2 weeks
2012-08-05 14:11:42 +00:00
Andrew Turner
c75943da26
Correctly return EFAULT in copyin & copyout on a fault. This fixes NFS
...
when running FreeBSD on QEMU emulating a Gumstix board.
While here remove the use of a magic number in the not-XScale version.
Pointed out by: kib
Reviewed by: stas
2012-08-04 05:38:25 +00:00
Andrew Turner
bfba812656
Ensure we align the stack to 8 bytes in system calls.
...
This is not strictly required with the current ABI but will be when we
switch to the ARM EABI. The aapcs requires the stack to be 4 byte aligned
at all times and 8 byte aligned when calling a public subroutine where the
current ABI only requires sp to be a multiple of 4.
2012-08-04 05:31:26 +00:00
Warner Losh
adebcba798
Prefer ate over macb. macb doesn't work anymore, and ate has more
...
errata workarounds in it.
2012-07-31 19:41:12 +00:00
Warner Losh
8203a40e4d
Note about where we can boot this.
2012-07-31 19:39:21 +00:00
Warner Losh
679d446fde
Allow chip selects other than 0. The SAM9260EK board
...
has its dataflash on CS1.
2012-07-31 19:14:22 +00:00
Warner Losh
1d35c178d8
macb doesn't work, switch to ate.
2012-07-31 04:09:27 +00:00
Warner Losh
336a1fd275
These files will support the whole at91sam9x5 family when done,
...
so rename them now before they get copied further afield...
2012-07-30 21:30:43 +00:00
Warner Losh
29b71fbb75
List the members of the AT91SAM9G45 family.
2012-07-30 21:19:19 +00:00
Warner Losh
3ab2f2eb3e
Fix a couple of comments about the rm9200, and fix a couple of indentation
...
issues. Add note that we need to implement at91sam9260 erratum workaround.
2012-07-30 06:00:31 +00:00
Warner Losh
9a5d82ab30
Commit the dci (gadget) support to the one ATMEL kernel config where
...
it might actually work.
2012-07-29 04:28:29 +00:00
Warner Losh
efd53ca820
Add usb_template for the gadget support. Even though this isn't a
...
bootable kernel, its config will likely be copied to places that are.
Submitted by: Hans Petter Selasky
2012-07-29 04:26:24 +00:00
Hiroki Sato
c8953e1273
Add support for Marvell 88F6282.
...
Sponsored by: Plat'Home, Co.,Ltd.
2012-07-28 21:56:24 +00:00
Warner Losh
fe1557c11c
Add gadget devices. Not yet added to the child lists, but here to
...
keep things from bit-rotting.
2012-07-27 17:32:01 +00:00
Warner Losh
6ecf8b7749
Add the usb device (gadget) side of things. Also add ehci bindings
...
while I'm here in anticipation of usb2 support for newer SoCs.
Requested by: Hans Petter Selasky
2012-07-27 17:31:19 +00:00
Warner Losh
43d1af0df3
Neither of these systems has PCI, but they do have ohci interface, so
...
fix comments.
2012-07-27 17:07:54 +00:00
Warner Losh
954bfb8bbf
Add new at91sam9g45 support and sn9g45 board to the ATMEL kernel.
...
Adapt SN9G45 board support to cope with multi-board.
2012-07-27 16:38:02 +00:00
Warner Losh
0ff8c4269b
Document the dataflash/mmc-sd issue. Add umass driver and usb. Boot
...
off da0s1a instead of ate0. Note that MMC/SD is slot B. Until I
switch over to NAND boot, dataflash booting will preclude having SD
cards inserted at boot, so this last bit is untested.
My SAM9260-EK not boots to multi-user prompt.
2012-07-27 05:37:01 +00:00
Warner Losh
e69d4e1fbd
Turns out the ETHERNUT5 isn't anything like the SAM9260-EK. Make this
...
board init match better: UART1 instead of UART2, No RMMI, no SPI0, SPI1
comments.
2012-07-27 05:33:55 +00:00
Warner Losh
5880116cbf
Add (back?) ohci atmel attachment.
2012-07-27 05:28:02 +00:00
Warner Losh
bed6d97e74
Trim read/write sizes to 128 bytes. Pages are only 128 bytes in size.
...
Writes larger than this will wrap to the same page. Reads larger than
this are permitted, but why take chances.
2012-07-26 16:34:21 +00:00
Andrew Turner
aaa1966f6b
Add support for the DesignA Electronics Snapper9g45 System on Module.
...
Reviewed by: imp
2012-07-26 08:05:28 +00:00
Andrew Turner
25d95ee2cc
Add support for the Atmel AT91SAM9G45 CPU.
...
Reviewed by: imp
2012-07-26 08:01:25 +00:00
Warner Losh
045da1cf0e
Some models have 6 USARTS + DBGU. Set a consistent name.
2012-07-26 05:46:56 +00:00
Warner Losh
1665e3cdfe
Fix typo in comment.
...
spibus uses cs= rather than addr=, so fix hints to use that (nop since
spibus cs defaults to 0, and at91_spi assumes 0).
2012-07-26 05:37:36 +00:00
Warner Losh
d68081b0b1
Update partitions to reflect "sam9 demo" defaults.
...
Update i2c devices to just include the eeprom.
Update dataflash chip select to be CS 1 (this doesn't work yet and
needs changes to at91_spi and the spibus infrastructure).
Fix typo in comment.
2012-07-26 05:35:10 +00:00
Oleksandr Tymoshenko
86bce74937
Move unmask IRQ function call up to nexus device level.
...
FDT-enabled targets were broken after r238043 that relies
on device up the hierarchy to properly setup interrupt.
nexus device for ARM platforms did job only partially:
setting handler but not unmasking interrupt. Unmasking
was performed by platform code.
Reviewed by: andrew@
2012-07-17 03:18:12 +00:00
Warner Losh
17fda71d9f
These were never used, remove them.
2012-07-15 06:08:11 +00:00
Warner Losh
eac2306319
Configure the peripheral pins for MCI devices. Eliminate the now-unused
...
at91_pio_rm9200.h.
2012-07-15 05:41:43 +00:00
Warner Losh
f5dca533c2
Add preliminary support for Atmel SAM9260-EK evaluation kit.
...
Initially identical to the Ethernut5, but will diverge shortly before
I refactor...
2012-07-14 06:13:23 +00:00
Warner Losh
2f35297b24
uboot should be telling us it is an ETHERNUT5 for this board. Tag it
...
as such.
2012-07-14 06:00:37 +00:00
Warner Losh
a81c202d81
Create common routines for configuring the serial ports and use them
...
on all the at91rm9200 boards.
2012-07-14 05:46:52 +00:00
Warner Losh
1221371f4a
For our at91rm9200 boards, register which subtype of SoC is on the
...
board. We'll use this later to control the differences between these
two variants' pins.
2012-07-13 04:22:08 +00:00
Warner Losh
bc52deb7a9
This file is no longer AT91RM9200 specific, but now is generic to all
...
Atmel AT91 SoC's we support. Rename to reflect that.
2012-07-12 19:15:38 +00:00
Warner Losh
1c882be4bc
Remember where we found the DBGU and use that for our console.
2012-07-12 19:11:37 +00:00
Warner Losh
097047f652
Fix whitespace divot.
2012-07-12 13:54:24 +00:00
Warner Losh
a68d1f48b9
Complete the transition away from newbus to populate the children to
...
the linker set of CPU modules. The newbus method, although clever,
had many flaws: it didn't really support multiple SoC, many of the
comments about order were just wrong, and it did a few things far too
late to be useful. delay and cpu_reset now work much earlier in the
boot process.
2012-07-12 13:45:58 +00:00
Warner Losh
7f6eecf580
Create the children devices for the SoC in atmelarm bus node, not in
...
the identify routine of the CPU.
2012-07-12 04:23:11 +00:00
Warner Losh
0fb8b6b070
Export the interrupt status vector via soc_data. Set the interrupt
...
priorities in the AIC in the atmelarm driver before attaching the
children. Delete redunant copies of the code.
2012-07-12 02:58:45 +00:00
Warner Losh
691b3c3238
Make the SoC stuff a little more modular, and start to move away from
...
having the CPU device that's a child of atmelarm that does stuff.
o Create a linker_set for the support fucntions for the SoCs.
o Rename soc_data to soc_info.
o Move the delay and reset function pointers to new soc_data struct
o Create elements for all known SoCs
o Add lookup of the SoC we found, and print a warning if it isn't one
we know about.
2012-07-11 20:17:14 +00:00
Warner Losh
a83760ee77
at91pit->at91_pit for consistnecy with other drivers.
2012-07-11 17:11:54 +00:00
Warner Losh
f81522c98a
at91$DEV->at91_$DEV to match other Atmel drivers. Also, export
...
at91_rst_cpu_reset.
2012-07-11 17:11:07 +00:00
Warner Losh
83f45363d0
Remove some more unused code.
2012-07-10 23:11:52 +00:00
Warner Losh
6e21b3a1b6
Go ahead and disable the interrupts for the DBGU the boot loader may
...
have left enabled after we detect the CPU, and remove the multiplely
copied code from the SoC modules.
2012-07-10 19:48:42 +00:00
Warner Losh
d67febb24f
Remove a useless bit of indirection. On all Atmel ARM products, irq 1
...
is the system IRQ, so use the define for it and get on with life.
2012-07-10 15:02:29 +00:00
Warner Losh
72ee489703
Revert committal of local change accidentally swept up in r238329.
2012-07-10 14:21:25 +00:00
Warner Losh
58bcb2a9b4
Pure style mischief. at91_$DEV_ rather than at91$DEV_ to match
...
others.
2012-07-10 06:21:42 +00:00
Warner Losh
37620f94c0
Minor rework to eliminate at91rm9200reg.h dependency and possibly set the
...
stage for a detach routine (unlikely to be useful, but while I was here..)
2012-07-10 06:18:53 +00:00
Warner Losh
4a4c0f7c24
Revert last change. It was accidental.
2012-07-10 05:39:06 +00:00
Warner Losh
19f4a07329
Collapse all copies of at91_add_child into at91.c. They were
...
logically identical before today, and actually identical after today's
changes.
2012-07-10 04:17:49 +00:00