diff options
author | Tony Lindgren <tony@atomide.com> | 2005-11-10 09:26:48 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-11-10 09:26:48 -0500 |
commit | 3179a019391f0f8081245fd564a5f1be308ba64f (patch) | |
tree | afdc1200f17b0ca97e04baa7c2cc2d4d2883e0c9 /arch/arm/mach-omap1/serial.c | |
parent | a7918f39bbe59fe76f43743bdb6bb8b0bdefd94a (diff) |
[ARM] 3141/1: OMAP 1/5: Update omap1 specific files
Patch from Tony Lindgren
This patch syncs the mainline kernel with linux-omap tree.
The highlights of the patch are:
- Omap1 serial pport and framebuffer init updates by Imre Deak
- Add support for omap310 processor and Palm Tungsten E PDA
by Laurent Gonzales, Romain Goyet, et al. Omap310 and
omap1510 processors are now handled as omap15xx.
- Omap1 specific changes to shared omap clock framework
by Tony Lindgren
- Omap1 specific changes to shared omap pin mux framework
by Tony Lindgren
- Other misc fixes, such as update memory timings for smc91x,
omap1 specific device initialization etc.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap1/serial.c')
-rw-r--r-- | arch/arm/mach-omap1/serial.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index 40c4f7c40e73..6810cfb84462 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -109,9 +109,10 @@ static struct platform_device serial_device = { | |||
109 | * By default UART2 does not work on Innovator-1510 if you have | 109 | * By default UART2 does not work on Innovator-1510 if you have |
110 | * USB OHCI enabled. To use UART2, you must disable USB2 first. | 110 | * USB OHCI enabled. To use UART2, you must disable USB2 first. |
111 | */ | 111 | */ |
112 | void __init omap_serial_init(int ports[OMAP_MAX_NR_PORTS]) | 112 | void __init omap_serial_init(void) |
113 | { | 113 | { |
114 | int i; | 114 | int i; |
115 | const struct omap_uart_config *info; | ||
115 | 116 | ||
116 | if (cpu_is_omap730()) { | 117 | if (cpu_is_omap730()) { |
117 | serial_platform_data[0].regshift = 0; | 118 | serial_platform_data[0].regshift = 0; |
@@ -126,10 +127,14 @@ void __init omap_serial_init(int ports[OMAP_MAX_NR_PORTS]) | |||
126 | serial_platform_data[2].uartclk = OMAP1510_BASE_BAUD * 16; | 127 | serial_platform_data[2].uartclk = OMAP1510_BASE_BAUD * 16; |
127 | } | 128 | } |
128 | 129 | ||
130 | info = omap_get_config(OMAP_TAG_UART, struct omap_uart_config); | ||
131 | if (info == NULL) | ||
132 | return; | ||
133 | |||
129 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | 134 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { |
130 | unsigned char reg; | 135 | unsigned char reg; |
131 | 136 | ||
132 | if (ports[i] == 0) { | 137 | if (!((1 << i) & info->enabled_uarts)) { |
133 | serial_platform_data[i].membase = NULL; | 138 | serial_platform_data[i].membase = NULL; |
134 | serial_platform_data[i].mapbase = 0; | 139 | serial_platform_data[i].mapbase = 0; |
135 | continue; | 140 | continue; |