1
linux/include/asm-arm/arch-at91rm9200
Haavard Skinnemoen 75d3521377 [PATCH] atmel_serial: Pass fixed register mappings through platform_data
In order to initialize the serial console early, the atmel_serial
driver had to do a hack where it compared the physical address of the
port with an address known to be permanently mapped, and used it as a
virtual address. This got around the limitation that ioremap() isn't
always available when the console is being initalized.

This patch removes that hack and replaces it with a new "regs" field
in struct atmel_uart_data that the board-specific code can initialize
to a fixed virtual mapping for platform devices where this is possible.
It also initializes the DBGU's regs field with the address the driver
used to check against.

On AVR32, the "regs" field is initialized from the physical base
address when this it can be accessed through a permanently 1:1 mapped
segment, i.e. the P4 segment.

If regs is NULL, the console initialization is delayed until the "real"
driver is up and running and ioremap() can be used.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-04 10:25:05 -07:00
..
at91rm9200_emac.h
at91rm9200_mci.h
at91rm9200_pdc.h
at91rm9200_spi.h [ARM] 3587/1: AT91RM9200 hardware headers 2006-06-19 16:57:00 +01:00
at91rm9200_ssc.h [ARM] 3587/1: AT91RM9200 hardware headers 2006-06-19 16:57:00 +01:00
at91rm9200_sys.h [ARM] 3868/1: AT91 hardware header update 2006-09-28 11:53:54 +01:00
at91rm9200_tc.h [ARM] 3587/1: AT91RM9200 hardware headers 2006-06-19 16:57:00 +01:00
at91rm9200_twi.h [ARM] 3868/1: AT91 hardware header update 2006-09-28 11:53:54 +01:00
at91rm9200_udp.h [ARM] 3587/1: AT91RM9200 hardware headers 2006-06-19 16:57:00 +01:00
at91rm9200.h [ARM] 3865/1: AT91RM9200 header updates 2006-09-28 11:52:05 +01:00
board.h [PATCH] atmel_serial: Pass fixed register mappings through platform_data 2006-10-04 10:25:05 -07:00
debug-macro.S
dma.h
entry-macro.S
gpio.h [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
hardware.h [PATCH] at91_serial -> atmel_serial: Public definitions 2006-10-04 10:25:05 -07:00
io.h [ARM] 3607/1: AT91RM9200 misc fixes 2006-06-20 19:30:20 +01:00
irqs.h [ARM] 3865/1: AT91RM9200 header updates 2006-09-28 11:52:05 +01:00
memory.h [ARM] 3660/1: Remove legacy defines 2006-06-28 17:54:55 +01:00
system.h [ARM] Include asm/hardware.h not asm/arch/hardware.h 2006-06-20 19:53:16 +01:00
timex.h [ARM] Include asm/hardware.h not asm/arch/hardware.h 2006-06-20 19:53:16 +01:00
uncompress.h [ARM] Include asm/hardware.h not asm/arch/hardware.h 2006-06-20 19:53:16 +01:00
vmalloc.h [ARM] 3581/1: AT91RM9200 Internal SRAM 2006-06-19 15:26:51 +01:00