diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 9be7289cbb56..7b5647954c13 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -401,14 +401,6 @@ static struct omap_dss_board_info cm_t35_dss_data = { | |||
401 | .default_device = &cm_t35_dvi_device, | 401 | .default_device = &cm_t35_dvi_device, |
402 | }; | 402 | }; |
403 | 403 | ||
404 | static struct platform_device cm_t35_dss_device = { | ||
405 | .name = "omapdss", | ||
406 | .id = -1, | ||
407 | .dev = { | ||
408 | .platform_data = &cm_t35_dss_data, | ||
409 | }, | ||
410 | }; | ||
411 | |||
412 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { | 404 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { |
413 | .turbo_mode = 0, | 405 | .turbo_mode = 0, |
414 | .single_channel = 1, /* 0: slave, 1: master */ | 406 | .single_channel = 1, /* 0: slave, 1: master */ |
@@ -468,7 +460,7 @@ static void __init cm_t35_init_display(void) | |||
468 | msleep(50); | 460 | msleep(50); |
469 | gpio_set_value(lcd_en_gpio, 1); | 461 | gpio_set_value(lcd_en_gpio, 1); |
470 | 462 | ||
471 | err = platform_device_register(&cm_t35_dss_device); | 463 | err = omap_display_init(&cm_t35_dss_data); |
472 | if (err) { | 464 | if (err) { |
473 | pr_err("CM-T35: failed to register DSS device\n"); | 465 | pr_err("CM-T35: failed to register DSS device\n"); |
474 | goto err_dev_reg; | 466 | goto err_dev_reg; |
@@ -495,15 +487,11 @@ static struct regulator_consumer_supply cm_t35_vsim_supply = { | |||
495 | .supply = "vmmc_aux", | 487 | .supply = "vmmc_aux", |
496 | }; | 488 | }; |
497 | 489 | ||
498 | static struct regulator_consumer_supply cm_t35_vdac_supply = { | 490 | static struct regulator_consumer_supply cm_t35_vdac_supply = |
499 | .supply = "vdda_dac", | 491 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
500 | .dev = &cm_t35_dss_device.dev, | ||
501 | }; | ||
502 | 492 | ||
503 | static struct regulator_consumer_supply cm_t35_vdvi_supply = { | 493 | static struct regulator_consumer_supply cm_t35_vdvi_supply = |
504 | .supply = "vdvi", | 494 | REGULATOR_SUPPLY("vdvi", "omapdss"); |
505 | .dev = &cm_t35_dss_device.dev, | ||
506 | }; | ||
507 | 495 | ||
508 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ | 496 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ |
509 | static struct regulator_init_data cm_t35_vmmc1 = { | 497 | static struct regulator_init_data cm_t35_vmmc1 = { |
@@ -680,20 +668,14 @@ static void __init cm_t35_init_i2c(void) | |||
680 | ARRAY_SIZE(cm_t35_i2c_boardinfo)); | 668 | ARRAY_SIZE(cm_t35_i2c_boardinfo)); |
681 | } | 669 | } |
682 | 670 | ||
683 | static struct omap_board_config_kernel cm_t35_config[] __initdata = { | 671 | static void __init cm_t35_init_early(void) |
684 | }; | ||
685 | |||
686 | static void __init cm_t35_init_irq(void) | ||
687 | { | 672 | { |
688 | omap_board_config = cm_t35_config; | ||
689 | omap_board_config_size = ARRAY_SIZE(cm_t35_config); | ||
690 | |||
691 | omap2_init_common_infrastructure(); | 673 | omap2_init_common_infrastructure(); |
692 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, | 674 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, |
693 | mt46h32m32lf6_sdrc_params); | 675 | mt46h32m32lf6_sdrc_params); |
694 | omap_init_irq(); | ||
695 | } | 676 | } |
696 | 677 | ||
678 | #ifdef CONFIG_OMAP_MUX | ||
697 | static struct omap_board_mux board_mux[] __initdata = { | 679 | static struct omap_board_mux board_mux[] __initdata = { |
698 | /* nCS and IRQ for CM-T35 ethernet */ | 680 | /* nCS and IRQ for CM-T35 ethernet */ |
699 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), | 681 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), |
@@ -791,6 +773,7 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
791 | 773 | ||
792 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 774 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
793 | }; | 775 | }; |
776 | #endif | ||
794 | 777 | ||
795 | static struct omap_musb_board_data musb_board_data = { | 778 | static struct omap_musb_board_data musb_board_data = { |
796 | .interface_type = MUSB_INTERFACE_ULPI, | 779 | .interface_type = MUSB_INTERFACE_ULPI, |
@@ -798,8 +781,13 @@ static struct omap_musb_board_data musb_board_data = { | |||
798 | .power = 100, | 781 | .power = 100, |
799 | }; | 782 | }; |
800 | 783 | ||
784 | static struct omap_board_config_kernel cm_t35_config[] __initdata = { | ||
785 | }; | ||
786 | |||
801 | static void __init cm_t35_init(void) | 787 | static void __init cm_t35_init(void) |
802 | { | 788 | { |
789 | omap_board_config = cm_t35_config; | ||
790 | omap_board_config_size = ARRAY_SIZE(cm_t35_config); | ||
803 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); | 791 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); |
804 | omap_serial_init(); | 792 | omap_serial_init(); |
805 | cm_t35_init_i2c(); | 793 | cm_t35_init_i2c(); |
@@ -815,9 +803,10 @@ static void __init cm_t35_init(void) | |||
815 | 803 | ||
816 | MACHINE_START(CM_T35, "Compulab CM-T35") | 804 | MACHINE_START(CM_T35, "Compulab CM-T35") |
817 | .boot_params = 0x80000100, | 805 | .boot_params = 0x80000100, |
818 | .map_io = omap3_map_io, | ||
819 | .reserve = omap_reserve, | 806 | .reserve = omap_reserve, |
820 | .init_irq = cm_t35_init_irq, | 807 | .map_io = omap3_map_io, |
808 | .init_early = cm_t35_init_early, | ||
809 | .init_irq = omap_init_irq, | ||
821 | .init_machine = cm_t35_init, | 810 | .init_machine = cm_t35_init, |
822 | .timer = &omap_timer, | 811 | .timer = &omap_timer, |
823 | MACHINE_END | 812 | MACHINE_END |