diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3stalker.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index f6c87787cd4f..8ebdbc38b9de 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -240,14 +240,6 @@ static struct omap_dss_board_info omap3_stalker_dss_data = { | |||
240 | .default_device = &omap3_stalker_dvi_device, | 240 | .default_device = &omap3_stalker_dvi_device, |
241 | }; | 241 | }; |
242 | 242 | ||
243 | static struct platform_device omap3_stalker_dss_device = { | ||
244 | .name = "omapdss", | ||
245 | .id = -1, | ||
246 | .dev = { | ||
247 | .platform_data = &omap3_stalker_dss_data, | ||
248 | }, | ||
249 | }; | ||
250 | |||
251 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply = { | 243 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply = { |
252 | .supply = "vmmc", | 244 | .supply = "vmmc", |
253 | }; | 245 | }; |
@@ -439,19 +431,15 @@ static struct twl4030_madc_platform_data omap3stalker_madc_data = { | |||
439 | .irq_line = 1, | 431 | .irq_line = 1, |
440 | }; | 432 | }; |
441 | 433 | ||
442 | static struct twl4030_codec_audio_data omap3stalker_audio_data = { | 434 | static struct twl4030_codec_audio_data omap3stalker_audio_data; |
443 | .audio_mclk = 26000000, | ||
444 | }; | ||
445 | 435 | ||
446 | static struct twl4030_codec_data omap3stalker_codec_data = { | 436 | static struct twl4030_codec_data omap3stalker_codec_data = { |
447 | .audio_mclk = 26000000, | 437 | .audio_mclk = 26000000, |
448 | .audio = &omap3stalker_audio_data, | 438 | .audio = &omap3stalker_audio_data, |
449 | }; | 439 | }; |
450 | 440 | ||
451 | static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply = { | 441 | static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply = |
452 | .supply = "vdda_dac", | 442 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
453 | .dev = &omap3_stalker_dss_device.dev, | ||
454 | }; | ||
455 | 443 | ||
456 | /* VDAC for DSS driving S-Video */ | 444 | /* VDAC for DSS driving S-Video */ |
457 | static struct regulator_init_data omap3_stalker_vdac = { | 445 | static struct regulator_init_data omap3_stalker_vdac = { |
@@ -469,10 +457,8 @@ static struct regulator_init_data omap3_stalker_vdac = { | |||
469 | }; | 457 | }; |
470 | 458 | ||
471 | /* VPLL2 for digital video outputs */ | 459 | /* VPLL2 for digital video outputs */ |
472 | static struct regulator_consumer_supply omap3_stalker_vpll2_supply = { | 460 | static struct regulator_consumer_supply omap3_stalker_vpll2_supply = |
473 | .supply = "vdds_dsi", | 461 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"); |
474 | .dev = &omap3_stalker_lcd_device.dev, | ||
475 | }; | ||
476 | 462 | ||
477 | static struct regulator_init_data omap3_stalker_vpll2 = { | 463 | static struct regulator_init_data omap3_stalker_vpll2 = { |
478 | .constraints = { | 464 | .constraints = { |
@@ -591,12 +577,14 @@ static struct spi_board_info omap3stalker_spi_board_info[] = { | |||
591 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { | 577 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { |
592 | }; | 578 | }; |
593 | 579 | ||
594 | static void __init omap3_stalker_init_irq(void) | 580 | static void __init omap3_stalker_init_early(void) |
595 | { | 581 | { |
596 | omap_board_config = omap3_stalker_config; | ||
597 | omap_board_config_size = ARRAY_SIZE(omap3_stalker_config); | ||
598 | omap2_init_common_infrastructure(); | 582 | omap2_init_common_infrastructure(); |
599 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); | 583 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); |
584 | } | ||
585 | |||
586 | static void __init omap3_stalker_init_irq(void) | ||
587 | { | ||
600 | omap_init_irq(); | 588 | omap_init_irq(); |
601 | #ifdef CONFIG_OMAP_32K_TIMER | 589 | #ifdef CONFIG_OMAP_32K_TIMER |
602 | omap2_gp_clockevent_set_gptimer(12); | 590 | omap2_gp_clockevent_set_gptimer(12); |
@@ -604,7 +592,6 @@ static void __init omap3_stalker_init_irq(void) | |||
604 | } | 592 | } |
605 | 593 | ||
606 | static struct platform_device *omap3_stalker_devices[] __initdata = { | 594 | static struct platform_device *omap3_stalker_devices[] __initdata = { |
607 | &omap3_stalker_dss_device, | ||
608 | &keys_gpio, | 595 | &keys_gpio, |
609 | }; | 596 | }; |
610 | 597 | ||
@@ -638,12 +625,15 @@ static struct omap_musb_board_data musb_board_data = { | |||
638 | static void __init omap3_stalker_init(void) | 625 | static void __init omap3_stalker_init(void) |
639 | { | 626 | { |
640 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); | 627 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); |
628 | omap_board_config = omap3_stalker_config; | ||
629 | omap_board_config_size = ARRAY_SIZE(omap3_stalker_config); | ||
641 | 630 | ||
642 | omap3_stalker_i2c_init(); | 631 | omap3_stalker_i2c_init(); |
643 | 632 | ||
644 | platform_add_devices(omap3_stalker_devices, | 633 | platform_add_devices(omap3_stalker_devices, |
645 | ARRAY_SIZE(omap3_stalker_devices)); | 634 | ARRAY_SIZE(omap3_stalker_devices)); |
646 | 635 | ||
636 | omap_display_init(&omap3_stalker_dss_data); | ||
647 | spi_register_board_info(omap3stalker_spi_board_info, | 637 | spi_register_board_info(omap3stalker_spi_board_info, |
648 | ARRAY_SIZE(omap3stalker_spi_board_info)); | 638 | ARRAY_SIZE(omap3stalker_spi_board_info)); |
649 | 639 | ||
@@ -666,6 +656,7 @@ MACHINE_START(SBC3530, "OMAP3 STALKER") | |||
666 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ | 656 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ |
667 | .boot_params = 0x80000100, | 657 | .boot_params = 0x80000100, |
668 | .map_io = omap3_map_io, | 658 | .map_io = omap3_map_io, |
659 | .init_early = omap3_stalker_init_early, | ||
669 | .init_irq = omap3_stalker_init_irq, | 660 | .init_irq = omap3_stalker_init_irq, |
670 | .init_machine = omap3_stalker_init, | 661 | .init_machine = omap3_stalker_init, |
671 | .timer = &omap_timer, | 662 | .timer = &omap_timer, |