diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-apollon.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-rx51.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 12 |
14 files changed, 0 insertions, 72 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 8ec2a132904d..7f5a74d59243 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -146,12 +146,7 @@ static void __init omap_2430sdp_init_irq(void) | |||
146 | omap_gpio_init(); | 146 | omap_gpio_init(); |
147 | } | 147 | } |
148 | 148 | ||
149 | static struct omap_uart_config sdp2430_uart_config __initdata = { | ||
150 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
151 | }; | ||
152 | |||
153 | static struct omap_board_config_kernel sdp2430_config[] = { | 149 | static struct omap_board_config_kernel sdp2430_config[] = { |
154 | {OMAP_TAG_UART, &sdp2430_uart_config}, | ||
155 | {OMAP_TAG_LCD, &sdp2430_lcd_config}, | 150 | {OMAP_TAG_LCD, &sdp2430_lcd_config}, |
156 | }; | 151 | }; |
157 | 152 | ||
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index ac262cd74503..7e9b76cc7675 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -174,16 +174,11 @@ static void __init omap_3430sdp_init_irq(void) | |||
174 | omap_gpio_init(); | 174 | omap_gpio_init(); |
175 | } | 175 | } |
176 | 176 | ||
177 | static struct omap_uart_config sdp3430_uart_config __initdata = { | ||
178 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
179 | }; | ||
180 | |||
181 | static struct omap_lcd_config sdp3430_lcd_config __initdata = { | 177 | static struct omap_lcd_config sdp3430_lcd_config __initdata = { |
182 | .ctrl_name = "internal", | 178 | .ctrl_name = "internal", |
183 | }; | 179 | }; |
184 | 180 | ||
185 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { | 181 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { |
186 | { OMAP_TAG_UART, &sdp3430_uart_config }, | ||
187 | { OMAP_TAG_LCD, &sdp3430_lcd_config }, | 182 | { OMAP_TAG_LCD, &sdp3430_lcd_config }, |
188 | }; | 183 | }; |
189 | 184 | ||
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index bdfda36d8aa8..f22f429c88fc 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -47,7 +47,6 @@ static struct omap_lcd_config sdp4430_lcd_config __initdata = { | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct omap_board_config_kernel sdp4430_config[] __initdata = { | 49 | static struct omap_board_config_kernel sdp4430_config[] __initdata = { |
50 | { OMAP_TAG_UART, &sdp4430_uart_config }, | ||
51 | { OMAP_TAG_LCD, &sdp4430_lcd_config }, | 50 | { OMAP_TAG_LCD, &sdp4430_lcd_config }, |
52 | }; | 51 | }; |
53 | 52 | ||
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index dcfc20d03894..615f21d1eb23 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -256,10 +256,6 @@ static void __init omap_apollon_init_irq(void) | |||
256 | apollon_init_smc91x(); | 256 | apollon_init_smc91x(); |
257 | } | 257 | } |
258 | 258 | ||
259 | static struct omap_uart_config apollon_uart_config __initdata = { | ||
260 | .enabled_uarts = (1 << 0) | (0 << 1) | (0 << 2), | ||
261 | }; | ||
262 | |||
263 | static struct omap_usb_config apollon_usb_config __initdata = { | 259 | static struct omap_usb_config apollon_usb_config __initdata = { |
264 | .register_dev = 1, | 260 | .register_dev = 1, |
265 | .hmc_mode = 0x14, /* 0:dev 1:host1 2:disable */ | 261 | .hmc_mode = 0x14, /* 0:dev 1:host1 2:disable */ |
@@ -272,7 +268,6 @@ static struct omap_lcd_config apollon_lcd_config __initdata = { | |||
272 | }; | 268 | }; |
273 | 269 | ||
274 | static struct omap_board_config_kernel apollon_config[] = { | 270 | static struct omap_board_config_kernel apollon_config[] = { |
275 | { OMAP_TAG_UART, &apollon_uart_config }, | ||
276 | { OMAP_TAG_LCD, &apollon_lcd_config }, | 271 | { OMAP_TAG_LCD, &apollon_lcd_config }, |
277 | }; | 272 | }; |
278 | 273 | ||
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index fd00aa03690c..3e401c5b6e41 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -37,12 +37,7 @@ static void __init omap_generic_init_irq(void) | |||
37 | omap_init_irq(); | 37 | omap_init_irq(); |
38 | } | 38 | } |
39 | 39 | ||
40 | static struct omap_uart_config generic_uart_config __initdata = { | ||
41 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
42 | }; | ||
43 | |||
44 | static struct omap_board_config_kernel generic_config[] = { | 40 | static struct omap_board_config_kernel generic_config[] = { |
45 | { OMAP_TAG_UART, &generic_uart_config }, | ||
46 | }; | 41 | }; |
47 | 42 | ||
48 | static void __init omap_generic_init(void) | 43 | static void __init omap_generic_init(void) |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 7b1d61d5bb2c..b6501d241c10 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -276,10 +276,6 @@ static void __init omap_h4_init_irq(void) | |||
276 | h4_init_flash(); | 276 | h4_init_flash(); |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct omap_uart_config h4_uart_config __initdata = { | ||
280 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
281 | }; | ||
282 | |||
283 | static struct omap_lcd_config h4_lcd_config __initdata = { | 279 | static struct omap_lcd_config h4_lcd_config __initdata = { |
284 | .ctrl_name = "internal", | 280 | .ctrl_name = "internal", |
285 | }; | 281 | }; |
@@ -318,7 +314,6 @@ static struct omap_usb_config h4_usb_config __initdata = { | |||
318 | }; | 314 | }; |
319 | 315 | ||
320 | static struct omap_board_config_kernel h4_config[] = { | 316 | static struct omap_board_config_kernel h4_config[] = { |
321 | { OMAP_TAG_UART, &h4_uart_config }, | ||
322 | { OMAP_TAG_LCD, &h4_lcd_config }, | 317 | { OMAP_TAG_LCD, &h4_lcd_config }, |
323 | }; | 318 | }; |
324 | 319 | ||
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index ea383f88cb1b..2dd6806a1e8e 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -276,10 +276,6 @@ static void __init omap_ldp_init_irq(void) | |||
276 | ldp_init_smsc911x(); | 276 | ldp_init_smsc911x(); |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct omap_uart_config ldp_uart_config __initdata = { | ||
280 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
281 | }; | ||
282 | |||
283 | static struct platform_device ldp_lcd_device = { | 279 | static struct platform_device ldp_lcd_device = { |
284 | .name = "ldp_lcd", | 280 | .name = "ldp_lcd", |
285 | .id = -1, | 281 | .id = -1, |
@@ -290,7 +286,6 @@ static struct omap_lcd_config ldp_lcd_config __initdata = { | |||
290 | }; | 286 | }; |
291 | 287 | ||
292 | static struct omap_board_config_kernel ldp_config[] __initdata = { | 288 | static struct omap_board_config_kernel ldp_config[] __initdata = { |
293 | { OMAP_TAG_UART, &ldp_uart_config }, | ||
294 | { OMAP_TAG_LCD, &ldp_lcd_config }, | 289 | { OMAP_TAG_LCD, &ldp_lcd_config }, |
295 | }; | 290 | }; |
296 | 291 | ||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index e00ba128cece..201360781ac1 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -108,10 +108,6 @@ static struct platform_device omap3beagle_nand_device = { | |||
108 | 108 | ||
109 | #include "sdram-micron-mt46h32m32lf-6.h" | 109 | #include "sdram-micron-mt46h32m32lf-6.h" |
110 | 110 | ||
111 | static struct omap_uart_config omap3_beagle_uart_config __initdata = { | ||
112 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
113 | }; | ||
114 | |||
115 | static struct twl4030_hsmmc_info mmc[] = { | 111 | static struct twl4030_hsmmc_info mmc[] = { |
116 | { | 112 | { |
117 | .mmc = 1, | 113 | .mmc = 1, |
@@ -345,7 +341,6 @@ static struct platform_device keys_gpio = { | |||
345 | }; | 341 | }; |
346 | 342 | ||
347 | static struct omap_board_config_kernel omap3_beagle_config[] __initdata = { | 343 | static struct omap_board_config_kernel omap3_beagle_config[] __initdata = { |
348 | { OMAP_TAG_UART, &omap3_beagle_uart_config }, | ||
349 | { OMAP_TAG_LCD, &omap3_beagle_lcd_config }, | 344 | { OMAP_TAG_LCD, &omap3_beagle_lcd_config }, |
350 | }; | 345 | }; |
351 | 346 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index c4b144647dc5..3e0435371ce6 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -92,10 +92,6 @@ static inline void __init omap3evm_init_smc911x(void) | |||
92 | gpio_direction_input(OMAP3EVM_ETHR_GPIO_IRQ); | 92 | gpio_direction_input(OMAP3EVM_ETHR_GPIO_IRQ); |
93 | } | 93 | } |
94 | 94 | ||
95 | static struct omap_uart_config omap3_evm_uart_config __initdata = { | ||
96 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
97 | }; | ||
98 | |||
99 | static struct twl4030_hsmmc_info mmc[] = { | 95 | static struct twl4030_hsmmc_info mmc[] = { |
100 | { | 96 | { |
101 | .mmc = 1, | 97 | .mmc = 1, |
@@ -287,7 +283,6 @@ static void __init omap3_evm_init_irq(void) | |||
287 | } | 283 | } |
288 | 284 | ||
289 | static struct omap_board_config_kernel omap3_evm_config[] __initdata = { | 285 | static struct omap_board_config_kernel omap3_evm_config[] __initdata = { |
290 | { OMAP_TAG_UART, &omap3_evm_uart_config }, | ||
291 | { OMAP_TAG_LCD, &omap3_evm_lcd_config }, | 286 | { OMAP_TAG_LCD, &omap3_evm_lcd_config }, |
292 | }; | 287 | }; |
293 | 288 | ||
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 864ee3d021f7..8236708c3627 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -213,10 +213,6 @@ static struct twl4030_hsmmc_info omap3pandora_mmc[] = { | |||
213 | {} /* Terminator */ | 213 | {} /* Terminator */ |
214 | }; | 214 | }; |
215 | 215 | ||
216 | static struct omap_uart_config omap3pandora_uart_config __initdata = { | ||
217 | .enabled_uarts = (1 << 2), /* UART3 */ | ||
218 | }; | ||
219 | |||
220 | static struct regulator_consumer_supply pandora_vmmc1_supply = { | 216 | static struct regulator_consumer_supply pandora_vmmc1_supply = { |
221 | .supply = "vmmc", | 217 | .supply = "vmmc", |
222 | }; | 218 | }; |
@@ -376,7 +372,6 @@ static struct omap_lcd_config omap3pandora_lcd_config __initdata = { | |||
376 | }; | 372 | }; |
377 | 373 | ||
378 | static struct omap_board_config_kernel omap3pandora_config[] __initdata = { | 374 | static struct omap_board_config_kernel omap3pandora_config[] __initdata = { |
379 | { OMAP_TAG_UART, &omap3pandora_uart_config }, | ||
380 | { OMAP_TAG_LCD, &omap3pandora_lcd_config }, | 375 | { OMAP_TAG_LCD, &omap3pandora_lcd_config }, |
381 | }; | 376 | }; |
382 | 377 | ||
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 6bce23004aa4..eb78e6eab4f4 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -271,9 +271,6 @@ static void __init overo_flash_init(void) | |||
271 | printk(KERN_ERR "Unable to register NAND device\n"); | 271 | printk(KERN_ERR "Unable to register NAND device\n"); |
272 | } | 272 | } |
273 | } | 273 | } |
274 | static struct omap_uart_config overo_uart_config __initdata = { | ||
275 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
276 | }; | ||
277 | 274 | ||
278 | static struct twl4030_hsmmc_info mmc[] = { | 275 | static struct twl4030_hsmmc_info mmc[] = { |
279 | { | 276 | { |
@@ -378,7 +375,6 @@ static struct omap_lcd_config overo_lcd_config __initdata = { | |||
378 | }; | 375 | }; |
379 | 376 | ||
380 | static struct omap_board_config_kernel overo_config[] __initdata = { | 377 | static struct omap_board_config_kernel overo_config[] __initdata = { |
381 | { OMAP_TAG_UART, &overo_uart_config }, | ||
382 | { OMAP_TAG_LCD, &overo_lcd_config }, | 378 | { OMAP_TAG_LCD, &overo_lcd_config }, |
383 | }; | 379 | }; |
384 | 380 | ||
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 1c9e07fe8266..c0d13401425f 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -31,10 +31,6 @@ | |||
31 | #include <mach/gpmc.h> | 31 | #include <mach/gpmc.h> |
32 | #include <mach/usb.h> | 32 | #include <mach/usb.h> |
33 | 33 | ||
34 | static struct omap_uart_config rx51_uart_config = { | ||
35 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
36 | }; | ||
37 | |||
38 | static struct omap_lcd_config rx51_lcd_config = { | 34 | static struct omap_lcd_config rx51_lcd_config = { |
39 | .ctrl_name = "internal", | 35 | .ctrl_name = "internal", |
40 | }; | 36 | }; |
@@ -52,7 +48,6 @@ static struct omap_fbmem_config rx51_fbmem2_config = { | |||
52 | }; | 48 | }; |
53 | 49 | ||
54 | static struct omap_board_config_kernel rx51_config[] = { | 50 | static struct omap_board_config_kernel rx51_config[] = { |
55 | { OMAP_TAG_UART, &rx51_uart_config }, | ||
56 | { OMAP_TAG_FBMEM, &rx51_fbmem0_config }, | 51 | { OMAP_TAG_FBMEM, &rx51_fbmem0_config }, |
57 | { OMAP_TAG_FBMEM, &rx51_fbmem1_config }, | 52 | { OMAP_TAG_FBMEM, &rx51_fbmem1_config }, |
58 | { OMAP_TAG_FBMEM, &rx51_fbmem2_config }, | 53 | { OMAP_TAG_FBMEM, &rx51_fbmem2_config }, |
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 427b7b8b1237..3a42eca1ad80 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -30,12 +30,7 @@ static void __init omap_zoom2_init_irq(void) | |||
30 | omap_gpio_init(); | 30 | omap_gpio_init(); |
31 | } | 31 | } |
32 | 32 | ||
33 | static struct omap_uart_config zoom2_uart_config __initdata = { | ||
34 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
35 | }; | ||
36 | |||
37 | static struct omap_board_config_kernel zoom2_config[] __initdata = { | 33 | static struct omap_board_config_kernel zoom2_config[] __initdata = { |
38 | { OMAP_TAG_UART, &zoom2_uart_config }, | ||
39 | }; | 34 | }; |
40 | 35 | ||
41 | static struct twl4030_gpio_platform_data zoom2_gpio_data = { | 36 | static struct twl4030_gpio_platform_data zoom2_gpio_data = { |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 42449002f60d..409b03309af4 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -555,7 +555,6 @@ static struct omap_uart_state omap_uart[OMAP_MAX_NR_PORTS] = { | |||
555 | void __init omap_serial_init(void) | 555 | void __init omap_serial_init(void) |
556 | { | 556 | { |
557 | int i; | 557 | int i; |
558 | const struct omap_uart_config *info; | ||
559 | char name[16]; | 558 | char name[16]; |
560 | 559 | ||
561 | /* | 560 | /* |
@@ -564,23 +563,12 @@ void __init omap_serial_init(void) | |||
564 | * if not needed. | 563 | * if not needed. |
565 | */ | 564 | */ |
566 | 565 | ||
567 | info = omap_get_config(OMAP_TAG_UART, struct omap_uart_config); | ||
568 | |||
569 | if (info == NULL) | ||
570 | return; | ||
571 | |||
572 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | 566 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { |
573 | struct omap_uart_state *uart = &omap_uart[i]; | 567 | struct omap_uart_state *uart = &omap_uart[i]; |
574 | struct platform_device *pdev = &uart->pdev; | 568 | struct platform_device *pdev = &uart->pdev; |
575 | struct device *dev = &pdev->dev; | 569 | struct device *dev = &pdev->dev; |
576 | struct plat_serial8250_port *p = dev->platform_data; | 570 | struct plat_serial8250_port *p = dev->platform_data; |
577 | 571 | ||
578 | if (!(info->enabled_uarts & (1 << i))) { | ||
579 | p->membase = NULL; | ||
580 | p->mapbase = 0; | ||
581 | continue; | ||
582 | } | ||
583 | |||
584 | sprintf(name, "uart%d_ick", i+1); | 572 | sprintf(name, "uart%d_ick", i+1); |
585 | uart->ick = clk_get(NULL, name); | 573 | uart->ick = clk_get(NULL, name); |
586 | if (IS_ERR(uart->ick)) { | 574 | if (IS_ERR(uart->ick)) { |