WSL2-Linux-Kernel/arch/arm/mach-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
..
Kconfig [ARM] 3675/2: Preparing for AT91SAM926 support 2006-06-29 16:06:33 +01:00
Makefile [ARM] 3675/2: Preparing for AT91SAM926 support 2006-06-29 16:06:33 +01:00
Makefile.boot [ARM] 3240/2: AT91RM9200 support for 2.6 (Core) 2006-01-09 17:05:41 +00:00
at91rm9200.c [ARM] 3870/1: AT91: Start removing static memory mappings 2006-09-28 18:11:22 +01:00
at91rm9200_time.c [PATCH] ARM: fixup irqflags breakage after ARM genirq merge 2006-07-02 17:29:22 -07:00
board-1arm.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
board-carmeva.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
board-csb337.c [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
board-csb637.c [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
board-dk.c [ARM] 3869/1: AT91: NAND support for DK and KB9202 boards 2006-09-28 11:53:55 +01:00
board-eb9200.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
board-ek.c [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
board-kafa.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
board-kb9202.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
clock.c [ARM] 3866/1: AT91 clock update 2006-09-28 11:52:06 +01:00
clock.h [ARM] 3866/1: AT91 clock update 2006-09-28 11:52:06 +01:00
devices.c [PATCH] atmel_serial: Pass fixed register mappings through platform_data 2006-10-04 10:25:05 -07:00
generic.h [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
gpio.c [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
irq.c [ARM] 3867/1: AT91 GPIO update 2006-09-28 11:53:47 +01:00
leds.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pm.c [ARM] 3865/1: AT91RM9200 header updates 2006-09-28 11:52:05 +01:00