aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
authorAlistair Buxton <a.j.buxton@gmail.com>2009-09-22 00:49:53 -0400
committerAlistair Buxton <a.j.buxton@gmail.com>2009-10-07 18:09:52 -0400
commitd8723ae2a416473f8e974baadcb6acb7f8b0b485 (patch)
treebb377cd04dae8af54b2684a0a472f3b4f53bb595 /arch/arm/mach-omap1
parent374576a8b6f865022c0fd1ca62396889b23d66dd (diff)
OMAP7XX: Serial: Remove duplicate omap850 code
This patch is part of a series which unifies all duplicated code between omap730 and omap850. All cpu checks are converted to cpu_is_omap7xx() and CONFIG_ARCH_OMAP850 is added to all CONFIG_ARCH_OMAP730 checks. Signed-off-by: Alistair Buxton <a.j.buxton@gmail.com> Reviewed-by: Zebediah C. McClure <zmc@lurian.net>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/serial.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c
index d496e50fec40..49381e271be3 100644
--- a/arch/arm/mach-omap1/serial.c
+++ b/arch/arm/mach-omap1/serial.c
@@ -110,20 +110,13 @@ void __init omap_serial_init(void)
110{ 110{
111 int i; 111 int i;
112 112
113 if (cpu_is_omap730()) { 113 if (cpu_is_omap7xx()) {
114 serial_platform_data[0].regshift = 0; 114 serial_platform_data[0].regshift = 0;
115 serial_platform_data[1].regshift = 0; 115 serial_platform_data[1].regshift = 0;
116 serial_platform_data[0].irq = INT_730_UART_MODEM_1; 116 serial_platform_data[0].irq = INT_730_UART_MODEM_1;
117 serial_platform_data[1].irq = INT_730_UART_MODEM_IRDA_2; 117 serial_platform_data[1].irq = INT_730_UART_MODEM_IRDA_2;
118 } 118 }
119 119
120 if (cpu_is_omap850()) {
121 serial_platform_data[0].regshift = 0;
122 serial_platform_data[1].regshift = 0;
123 serial_platform_data[0].irq = INT_850_UART_MODEM_1;
124 serial_platform_data[1].irq = INT_850_UART_MODEM_IRDA_2;
125 }
126
127 if (cpu_is_omap15xx()) { 120 if (cpu_is_omap15xx()) {
128 serial_platform_data[0].uartclk = OMAP1510_BASE_BAUD * 16; 121 serial_platform_data[0].uartclk = OMAP1510_BASE_BAUD * 16;
129 serial_platform_data[1].uartclk = OMAP1510_BASE_BAUD * 16; 122 serial_platform_data[1].uartclk = OMAP1510_BASE_BAUD * 16;