diff options
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 43 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-generic.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmte.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmtt.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-sx1.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-voiceblue.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/io.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/pm.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap1/serial.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-omap1/sram.S | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap1/time.c | 4 |
19 files changed, 55 insertions, 93 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 8b40aace9db4..42920f9c1a11 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -15,8 +15,11 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/input.h> | 17 | #include <linux/input.h> |
18 | #include <linux/interrupt.h> | ||
18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/serial_8250.h> | ||
19 | 21 | ||
22 | #include <asm/serial.h> | ||
20 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
21 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
22 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
@@ -162,10 +165,6 @@ static struct omap_lcd_config ams_delta_lcd_config __initdata = { | |||
162 | .ctrl_name = "internal", | 165 | .ctrl_name = "internal", |
163 | }; | 166 | }; |
164 | 167 | ||
165 | static struct omap_uart_config ams_delta_uart_config __initdata = { | ||
166 | .enabled_uarts = 1, | ||
167 | }; | ||
168 | |||
169 | static struct omap_usb_config ams_delta_usb_config __initdata = { | 168 | static struct omap_usb_config ams_delta_usb_config __initdata = { |
170 | .register_host = 1, | 169 | .register_host = 1, |
171 | .hmc_mode = 16, | 170 | .hmc_mode = 16, |
@@ -174,7 +173,6 @@ static struct omap_usb_config ams_delta_usb_config __initdata = { | |||
174 | 173 | ||
175 | static struct omap_board_config_kernel ams_delta_config[] = { | 174 | static struct omap_board_config_kernel ams_delta_config[] = { |
176 | { OMAP_TAG_LCD, &ams_delta_lcd_config }, | 175 | { OMAP_TAG_LCD, &ams_delta_lcd_config }, |
177 | { OMAP_TAG_UART, &ams_delta_uart_config }, | ||
178 | }; | 176 | }; |
179 | 177 | ||
180 | static struct resource ams_delta_kp_resources[] = { | 178 | static struct resource ams_delta_kp_resources[] = { |
@@ -235,6 +233,41 @@ static void __init ams_delta_init(void) | |||
235 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); | 233 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); |
236 | } | 234 | } |
237 | 235 | ||
236 | static struct plat_serial8250_port ams_delta_modem_ports[] = { | ||
237 | { | ||
238 | .membase = (void *) AMS_DELTA_MODEM_VIRT, | ||
239 | .mapbase = AMS_DELTA_MODEM_PHYS, | ||
240 | .irq = -EINVAL, /* changed later */ | ||
241 | .flags = UPF_BOOT_AUTOCONF, | ||
242 | .irqflags = IRQF_TRIGGER_RISING, | ||
243 | .iotype = UPIO_MEM, | ||
244 | .regshift = 1, | ||
245 | .uartclk = BASE_BAUD * 16, | ||
246 | }, | ||
247 | { }, | ||
248 | }; | ||
249 | |||
250 | static struct platform_device ams_delta_modem_device = { | ||
251 | .name = "serial8250", | ||
252 | .id = PLAT8250_DEV_PLATFORM1, | ||
253 | .dev = { | ||
254 | .platform_data = ams_delta_modem_ports, | ||
255 | }, | ||
256 | }; | ||
257 | |||
258 | static int __init ams_delta_modem_init(void) | ||
259 | { | ||
260 | omap_cfg_reg(M14_1510_GPIO2); | ||
261 | ams_delta_modem_ports[0].irq = gpio_to_irq(2); | ||
262 | |||
263 | ams_delta_latch2_write( | ||
264 | AMS_DELTA_LATCH2_MODEM_NRESET | AMS_DELTA_LATCH2_MODEM_CODEC, | ||
265 | AMS_DELTA_LATCH2_MODEM_NRESET | AMS_DELTA_LATCH2_MODEM_CODEC); | ||
266 | |||
267 | return platform_device_register(&ams_delta_modem_device); | ||
268 | } | ||
269 | arch_initcall(ams_delta_modem_init); | ||
270 | |||
238 | static void __init ams_delta_map_io(void) | 271 | static void __init ams_delta_map_io(void) |
239 | { | 272 | { |
240 | omap1_map_common_io(); | 273 | omap1_map_common_io(); |
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 19e0e9232336..a7ead1b93226 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -240,16 +240,11 @@ static int nand_dev_ready(struct omap_nand_platform_data *data) | |||
240 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); | 240 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); |
241 | } | 241 | } |
242 | 242 | ||
243 | static struct omap_uart_config fsample_uart_config __initdata = { | ||
244 | .enabled_uarts = ((1 << 0) | (1 << 1)), | ||
245 | }; | ||
246 | |||
247 | static struct omap_lcd_config fsample_lcd_config __initdata = { | 243 | static struct omap_lcd_config fsample_lcd_config __initdata = { |
248 | .ctrl_name = "internal", | 244 | .ctrl_name = "internal", |
249 | }; | 245 | }; |
250 | 246 | ||
251 | static struct omap_board_config_kernel fsample_config[] = { | 247 | static struct omap_board_config_kernel fsample_config[] = { |
252 | { OMAP_TAG_UART, &fsample_uart_config }, | ||
253 | { OMAP_TAG_LCD, &fsample_lcd_config }, | 248 | { OMAP_TAG_LCD, &fsample_lcd_config }, |
254 | }; | 249 | }; |
255 | 250 | ||
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index e724940e86f2..fb47239da72f 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c | |||
@@ -57,12 +57,7 @@ static struct omap_usb_config generic1610_usb_config __initdata = { | |||
57 | }; | 57 | }; |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | static struct omap_uart_config generic_uart_config __initdata = { | ||
61 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
62 | }; | ||
63 | |||
64 | static struct omap_board_config_kernel generic_config[] __initdata = { | 60 | static struct omap_board_config_kernel generic_config[] __initdata = { |
65 | { OMAP_TAG_UART, &generic_uart_config }, | ||
66 | }; | 61 | }; |
67 | 62 | ||
68 | static void __init omap_generic_init(void) | 63 | static void __init omap_generic_init(void) |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index f695aa053ac8..aab860307dca 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -360,16 +360,11 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
360 | .pins[1] = 3, | 360 | .pins[1] = 3, |
361 | }; | 361 | }; |
362 | 362 | ||
363 | static struct omap_uart_config h2_uart_config __initdata = { | ||
364 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
365 | }; | ||
366 | |||
367 | static struct omap_lcd_config h2_lcd_config __initdata = { | 363 | static struct omap_lcd_config h2_lcd_config __initdata = { |
368 | .ctrl_name = "internal", | 364 | .ctrl_name = "internal", |
369 | }; | 365 | }; |
370 | 366 | ||
371 | static struct omap_board_config_kernel h2_config[] __initdata = { | 367 | static struct omap_board_config_kernel h2_config[] __initdata = { |
372 | { OMAP_TAG_UART, &h2_uart_config }, | ||
373 | { OMAP_TAG_LCD, &h2_lcd_config }, | 368 | { OMAP_TAG_LCD, &h2_lcd_config }, |
374 | }; | 369 | }; |
375 | 370 | ||
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index f597968733b4..89586b80b8d5 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -313,16 +313,11 @@ static struct omap_usb_config h3_usb_config __initdata = { | |||
313 | .pins[1] = 3, | 313 | .pins[1] = 3, |
314 | }; | 314 | }; |
315 | 315 | ||
316 | static struct omap_uart_config h3_uart_config __initdata = { | ||
317 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
318 | }; | ||
319 | |||
320 | static struct omap_lcd_config h3_lcd_config __initdata = { | 316 | static struct omap_lcd_config h3_lcd_config __initdata = { |
321 | .ctrl_name = "internal", | 317 | .ctrl_name = "internal", |
322 | }; | 318 | }; |
323 | 319 | ||
324 | static struct omap_board_config_kernel h3_config[] __initdata = { | 320 | static struct omap_board_config_kernel h3_config[] __initdata = { |
325 | { OMAP_TAG_UART, &h3_uart_config }, | ||
326 | { OMAP_TAG_LCD, &h3_lcd_config }, | 321 | { OMAP_TAG_LCD, &h3_lcd_config }, |
327 | }; | 322 | }; |
328 | 323 | ||
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 2fd98260ea49..cc2abbb2d0f4 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -368,13 +368,8 @@ static inline void innovator_mmc_init(void) | |||
368 | } | 368 | } |
369 | #endif | 369 | #endif |
370 | 370 | ||
371 | static struct omap_uart_config innovator_uart_config __initdata = { | ||
372 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
373 | }; | ||
374 | |||
375 | static struct omap_board_config_kernel innovator_config[] = { | 371 | static struct omap_board_config_kernel innovator_config[] = { |
376 | { OMAP_TAG_LCD, NULL }, | 372 | { OMAP_TAG_LCD, NULL }, |
377 | { OMAP_TAG_UART, &innovator_uart_config }, | ||
378 | }; | 373 | }; |
379 | 374 | ||
380 | static void __init innovator_init(void) | 375 | static void __init innovator_init(void) |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index cf3247b15f87..ed891b8a6b15 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -293,10 +293,6 @@ static struct omap_usb_config osk_usb_config __initdata = { | |||
293 | .pins[0] = 2, | 293 | .pins[0] = 2, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static struct omap_uart_config osk_uart_config __initdata = { | ||
297 | .enabled_uarts = (1 << 0), | ||
298 | }; | ||
299 | |||
300 | #ifdef CONFIG_OMAP_OSK_MISTRAL | 296 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
301 | static struct omap_lcd_config osk_lcd_config __initdata = { | 297 | static struct omap_lcd_config osk_lcd_config __initdata = { |
302 | .ctrl_name = "internal", | 298 | .ctrl_name = "internal", |
@@ -304,7 +300,6 @@ static struct omap_lcd_config osk_lcd_config __initdata = { | |||
304 | #endif | 300 | #endif |
305 | 301 | ||
306 | static struct omap_board_config_kernel osk_config[] __initdata = { | 302 | static struct omap_board_config_kernel osk_config[] __initdata = { |
307 | { OMAP_TAG_UART, &osk_uart_config }, | ||
308 | #ifdef CONFIG_OMAP_OSK_MISTRAL | 303 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
309 | { OMAP_TAG_LCD, &osk_lcd_config }, | 304 | { OMAP_TAG_LCD, &osk_lcd_config }, |
310 | #endif | 305 | #endif |
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 886b4c0569bd..90dd0431b0dc 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -212,10 +212,6 @@ static struct omap_lcd_config palmte_lcd_config __initdata = { | |||
212 | .ctrl_name = "internal", | 212 | .ctrl_name = "internal", |
213 | }; | 213 | }; |
214 | 214 | ||
215 | static struct omap_uart_config palmte_uart_config __initdata = { | ||
216 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
217 | }; | ||
218 | |||
219 | #ifdef CONFIG_APM | 215 | #ifdef CONFIG_APM |
220 | /* | 216 | /* |
221 | * Values measured in 10 minute intervals averaged over 10 samples. | 217 | * Values measured in 10 minute intervals averaged over 10 samples. |
@@ -302,7 +298,6 @@ static void palmte_get_power_status(struct apm_power_info *info, int *battery) | |||
302 | 298 | ||
303 | static struct omap_board_config_kernel palmte_config[] __initdata = { | 299 | static struct omap_board_config_kernel palmte_config[] __initdata = { |
304 | { OMAP_TAG_LCD, &palmte_lcd_config }, | 300 | { OMAP_TAG_LCD, &palmte_lcd_config }, |
305 | { OMAP_TAG_UART, &palmte_uart_config }, | ||
306 | }; | 301 | }; |
307 | 302 | ||
308 | static struct spi_board_info palmte_spi_info[] __initdata = { | 303 | static struct spi_board_info palmte_spi_info[] __initdata = { |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 4f1b44831d37..8256139891ff 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -274,13 +274,8 @@ static struct omap_lcd_config palmtt_lcd_config __initdata = { | |||
274 | .ctrl_name = "internal", | 274 | .ctrl_name = "internal", |
275 | }; | 275 | }; |
276 | 276 | ||
277 | static struct omap_uart_config palmtt_uart_config __initdata = { | ||
278 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
279 | }; | ||
280 | |||
281 | static struct omap_board_config_kernel palmtt_config[] __initdata = { | 277 | static struct omap_board_config_kernel palmtt_config[] __initdata = { |
282 | { OMAP_TAG_LCD, &palmtt_lcd_config }, | 278 | { OMAP_TAG_LCD, &palmtt_lcd_config }, |
283 | { OMAP_TAG_UART, &palmtt_uart_config }, | ||
284 | }; | 279 | }; |
285 | 280 | ||
286 | static void __init omap_mpu_wdt_mode(int mode) { | 281 | static void __init omap_mpu_wdt_mode(int mode) { |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index 9a55c3c58218..81b6bde1c5a3 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -244,13 +244,8 @@ static struct omap_lcd_config palmz71_lcd_config __initdata = { | |||
244 | .ctrl_name = "internal", | 244 | .ctrl_name = "internal", |
245 | }; | 245 | }; |
246 | 246 | ||
247 | static struct omap_uart_config palmz71_uart_config __initdata = { | ||
248 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
249 | }; | ||
250 | |||
251 | static struct omap_board_config_kernel palmz71_config[] __initdata = { | 247 | static struct omap_board_config_kernel palmz71_config[] __initdata = { |
252 | {OMAP_TAG_LCD, &palmz71_lcd_config}, | 248 | {OMAP_TAG_LCD, &palmz71_lcd_config}, |
253 | {OMAP_TAG_UART, &palmz71_uart_config}, | ||
254 | }; | 249 | }; |
255 | 250 | ||
256 | static irqreturn_t | 251 | static irqreturn_t |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 3b9f907aa899..83406699f310 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -208,16 +208,11 @@ static int nand_dev_ready(struct omap_nand_platform_data *data) | |||
208 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); | 208 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); |
209 | } | 209 | } |
210 | 210 | ||
211 | static struct omap_uart_config perseus2_uart_config __initdata = { | ||
212 | .enabled_uarts = ((1 << 0) | (1 << 1)), | ||
213 | }; | ||
214 | |||
215 | static struct omap_lcd_config perseus2_lcd_config __initdata = { | 211 | static struct omap_lcd_config perseus2_lcd_config __initdata = { |
216 | .ctrl_name = "internal", | 212 | .ctrl_name = "internal", |
217 | }; | 213 | }; |
218 | 214 | ||
219 | static struct omap_board_config_kernel perseus2_config[] __initdata = { | 215 | static struct omap_board_config_kernel perseus2_config[] __initdata = { |
220 | { OMAP_TAG_UART, &perseus2_uart_config }, | ||
221 | { OMAP_TAG_LCD, &perseus2_lcd_config }, | 216 | { OMAP_TAG_LCD, &perseus2_lcd_config }, |
222 | }; | 217 | }; |
223 | 218 | ||
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index c096577695fe..02c85ca2e1df 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -369,13 +369,8 @@ static struct platform_device *sx1_devices[] __initdata = { | |||
369 | }; | 369 | }; |
370 | /*-----------------------------------------*/ | 370 | /*-----------------------------------------*/ |
371 | 371 | ||
372 | static struct omap_uart_config sx1_uart_config __initdata = { | ||
373 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
374 | }; | ||
375 | |||
376 | static struct omap_board_config_kernel sx1_config[] __initdata = { | 372 | static struct omap_board_config_kernel sx1_config[] __initdata = { |
377 | { OMAP_TAG_LCD, &sx1_lcd_config }, | 373 | { OMAP_TAG_LCD, &sx1_lcd_config }, |
378 | { OMAP_TAG_UART, &sx1_uart_config }, | ||
379 | }; | 374 | }; |
380 | 375 | ||
381 | /*-----------------------------------------*/ | 376 | /*-----------------------------------------*/ |
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index 98275e03dad1..c06e7a553472 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -140,12 +140,7 @@ static struct omap_usb_config voiceblue_usb_config __initdata = { | |||
140 | .pins[2] = 6, | 140 | .pins[2] = 6, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static struct omap_uart_config voiceblue_uart_config __initdata = { | ||
144 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
145 | }; | ||
146 | |||
147 | static struct omap_board_config_kernel voiceblue_config[] = { | 143 | static struct omap_board_config_kernel voiceblue_config[] = { |
148 | { OMAP_TAG_UART, &voiceblue_uart_config }, | ||
149 | }; | 144 | }; |
150 | 145 | ||
151 | static void __init voiceblue_init_irq(void) | 146 | static void __init voiceblue_init_irq(void) |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index bbbaeb0abcd3..06808434ea04 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -71,7 +71,7 @@ static inline void omap_init_rtc(void) {} | |||
71 | # define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1 | 71 | # define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1 |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #define OMAP1_MBOX_BASE IO_ADDRESS(OMAP16XX_MAILBOX_BASE) | 74 | #define OMAP1_MBOX_BASE OMAP1_IO_ADDRESS(OMAP16XX_MAILBOX_BASE) |
75 | 75 | ||
76 | static struct resource mbox_resources[] = { | 76 | static struct resource mbox_resources[] = { |
77 | { | 77 | { |
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 3afe540149f7..7030f9281ea1 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -29,9 +29,9 @@ extern void omapfb_reserve_sdram(void); | |||
29 | */ | 29 | */ |
30 | static struct map_desc omap_io_desc[] __initdata = { | 30 | static struct map_desc omap_io_desc[] __initdata = { |
31 | { | 31 | { |
32 | .virtual = IO_VIRT, | 32 | .virtual = OMAP1_IO_VIRT, |
33 | .pfn = __phys_to_pfn(IO_PHYS), | 33 | .pfn = __phys_to_pfn(OMAP1_IO_PHYS), |
34 | .length = IO_SIZE, | 34 | .length = OMAP1_IO_SIZE, |
35 | .type = MT_DEVICE | 35 | .type = MT_DEVICE |
36 | } | 36 | } |
37 | }; | 37 | }; |
diff --git a/arch/arm/mach-omap1/pm.h b/arch/arm/mach-omap1/pm.h index 9ed5e2c1de4d..c4f05bdcf8a6 100644 --- a/arch/arm/mach-omap1/pm.h +++ b/arch/arm/mach-omap1/pm.h | |||
@@ -39,11 +39,11 @@ | |||
39 | * Register and offset definitions to be used in PM assembler code | 39 | * Register and offset definitions to be used in PM assembler code |
40 | * ---------------------------------------------------------------------------- | 40 | * ---------------------------------------------------------------------------- |
41 | */ | 41 | */ |
42 | #define CLKGEN_REG_ASM_BASE IO_ADDRESS(0xfffece00) | 42 | #define CLKGEN_REG_ASM_BASE OMAP1_IO_ADDRESS(0xfffece00) |
43 | #define ARM_IDLECT1_ASM_OFFSET 0x04 | 43 | #define ARM_IDLECT1_ASM_OFFSET 0x04 |
44 | #define ARM_IDLECT2_ASM_OFFSET 0x08 | 44 | #define ARM_IDLECT2_ASM_OFFSET 0x08 |
45 | 45 | ||
46 | #define TCMIF_ASM_BASE IO_ADDRESS(0xfffecc00) | 46 | #define TCMIF_ASM_BASE OMAP1_IO_ADDRESS(0xfffecc00) |
47 | #define EMIFS_CONFIG_ASM_OFFSET 0x0c | 47 | #define EMIFS_CONFIG_ASM_OFFSET 0x0c |
48 | #define EMIFF_SDRAM_CONFIG_ASM_OFFSET 0x20 | 48 | #define EMIFF_SDRAM_CONFIG_ASM_OFFSET 0x20 |
49 | 49 | ||
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index f754cee4f3c3..d496e50fec40 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -64,7 +64,7 @@ static void __init omap_serial_reset(struct plat_serial8250_port *p) | |||
64 | 64 | ||
65 | static struct plat_serial8250_port serial_platform_data[] = { | 65 | static struct plat_serial8250_port serial_platform_data[] = { |
66 | { | 66 | { |
67 | .membase = IO_ADDRESS(OMAP_UART1_BASE), | 67 | .membase = OMAP1_IO_ADDRESS(OMAP_UART1_BASE), |
68 | .mapbase = OMAP_UART1_BASE, | 68 | .mapbase = OMAP_UART1_BASE, |
69 | .irq = INT_UART1, | 69 | .irq = INT_UART1, |
70 | .flags = UPF_BOOT_AUTOCONF, | 70 | .flags = UPF_BOOT_AUTOCONF, |
@@ -73,7 +73,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
73 | .uartclk = OMAP16XX_BASE_BAUD * 16, | 73 | .uartclk = OMAP16XX_BASE_BAUD * 16, |
74 | }, | 74 | }, |
75 | { | 75 | { |
76 | .membase = IO_ADDRESS(OMAP_UART2_BASE), | 76 | .membase = OMAP1_IO_ADDRESS(OMAP_UART2_BASE), |
77 | .mapbase = OMAP_UART2_BASE, | 77 | .mapbase = OMAP_UART2_BASE, |
78 | .irq = INT_UART2, | 78 | .irq = INT_UART2, |
79 | .flags = UPF_BOOT_AUTOCONF, | 79 | .flags = UPF_BOOT_AUTOCONF, |
@@ -82,7 +82,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
82 | .uartclk = OMAP16XX_BASE_BAUD * 16, | 82 | .uartclk = OMAP16XX_BASE_BAUD * 16, |
83 | }, | 83 | }, |
84 | { | 84 | { |
85 | .membase = IO_ADDRESS(OMAP_UART3_BASE), | 85 | .membase = OMAP1_IO_ADDRESS(OMAP_UART3_BASE), |
86 | .mapbase = OMAP_UART3_BASE, | 86 | .mapbase = OMAP_UART3_BASE, |
87 | .irq = INT_UART3, | 87 | .irq = INT_UART3, |
88 | .flags = UPF_BOOT_AUTOCONF, | 88 | .flags = UPF_BOOT_AUTOCONF, |
@@ -109,7 +109,6 @@ static struct platform_device serial_device = { | |||
109 | void __init omap_serial_init(void) | 109 | void __init omap_serial_init(void) |
110 | { | 110 | { |
111 | int i; | 111 | int i; |
112 | const struct omap_uart_config *info; | ||
113 | 112 | ||
114 | if (cpu_is_omap730()) { | 113 | if (cpu_is_omap730()) { |
115 | serial_platform_data[0].regshift = 0; | 114 | serial_platform_data[0].regshift = 0; |
@@ -131,19 +130,9 @@ void __init omap_serial_init(void) | |||
131 | serial_platform_data[2].uartclk = OMAP1510_BASE_BAUD * 16; | 130 | serial_platform_data[2].uartclk = OMAP1510_BASE_BAUD * 16; |
132 | } | 131 | } |
133 | 132 | ||
134 | info = omap_get_config(OMAP_TAG_UART, struct omap_uart_config); | ||
135 | if (info == NULL) | ||
136 | return; | ||
137 | |||
138 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | 133 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { |
139 | unsigned char reg; | 134 | unsigned char reg; |
140 | 135 | ||
141 | if (!((1 << i) & info->enabled_uarts)) { | ||
142 | serial_platform_data[i].membase = NULL; | ||
143 | serial_platform_data[i].mapbase = 0; | ||
144 | continue; | ||
145 | } | ||
146 | |||
147 | switch (i) { | 136 | switch (i) { |
148 | case 0: | 137 | case 0: |
149 | uart1_ck = clk_get(NULL, "uart1_ck"); | 138 | uart1_ck = clk_get(NULL, "uart1_ck"); |
diff --git a/arch/arm/mach-omap1/sram.S b/arch/arm/mach-omap1/sram.S index 261cdc48228b..7724e520d07c 100644 --- a/arch/arm/mach-omap1/sram.S +++ b/arch/arm/mach-omap1/sram.S | |||
@@ -21,13 +21,13 @@ | |||
21 | ENTRY(omap1_sram_reprogram_clock) | 21 | ENTRY(omap1_sram_reprogram_clock) |
22 | stmfd sp!, {r0 - r12, lr} @ save registers on stack | 22 | stmfd sp!, {r0 - r12, lr} @ save registers on stack |
23 | 23 | ||
24 | mov r2, #IO_ADDRESS(DPLL_CTL) & 0xff000000 | 24 | mov r2, #OMAP1_IO_ADDRESS(DPLL_CTL) & 0xff000000 |
25 | orr r2, r2, #IO_ADDRESS(DPLL_CTL) & 0x00ff0000 | 25 | orr r2, r2, #OMAP1_IO_ADDRESS(DPLL_CTL) & 0x00ff0000 |
26 | orr r2, r2, #IO_ADDRESS(DPLL_CTL) & 0x0000ff00 | 26 | orr r2, r2, #OMAP1_IO_ADDRESS(DPLL_CTL) & 0x0000ff00 |
27 | 27 | ||
28 | mov r3, #IO_ADDRESS(ARM_CKCTL) & 0xff000000 | 28 | mov r3, #OMAP1_IO_ADDRESS(ARM_CKCTL) & 0xff000000 |
29 | orr r3, r3, #IO_ADDRESS(ARM_CKCTL) & 0x00ff0000 | 29 | orr r3, r3, #OMAP1_IO_ADDRESS(ARM_CKCTL) & 0x00ff0000 |
30 | orr r3, r3, #IO_ADDRESS(ARM_CKCTL) & 0x0000ff00 | 30 | orr r3, r3, #OMAP1_IO_ADDRESS(ARM_CKCTL) & 0x0000ff00 |
31 | 31 | ||
32 | tst r0, #1 << 4 @ want lock mode? | 32 | tst r0, #1 << 4 @ want lock mode? |
33 | beq newck @ nope | 33 | beq newck @ nope |
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index 4d56408d3cff..1be6a214d88d 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c | |||
@@ -62,8 +62,8 @@ typedef struct { | |||
62 | u32 read_tim; /* READ_TIM, R */ | 62 | u32 read_tim; /* READ_TIM, R */ |
63 | } omap_mpu_timer_regs_t; | 63 | } omap_mpu_timer_regs_t; |
64 | 64 | ||
65 | #define omap_mpu_timer_base(n) \ | 65 | #define omap_mpu_timer_base(n) \ |
66 | ((volatile omap_mpu_timer_regs_t*)IO_ADDRESS(OMAP_MPU_TIMER_BASE + \ | 66 | ((volatile omap_mpu_timer_regs_t*)OMAP1_IO_ADDRESS(OMAP_MPU_TIMER_BASE + \ |
67 | (n)*OMAP_MPU_TIMER_OFFSET)) | 67 | (n)*OMAP_MPU_TIMER_OFFSET)) |
68 | 68 | ||
69 | static inline unsigned long omap_mpu_timer_read(int nr) | 69 | static inline unsigned long omap_mpu_timer_read(int nr) |