diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3stalker.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 61 |
1 files changed, 37 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index d37e6b187ae4..ba8342fef799 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -93,40 +93,50 @@ static void __init omap3_stalker_display_init(void) | |||
93 | { | 93 | { |
94 | return; | 94 | return; |
95 | } | 95 | } |
96 | static struct connector_dvi_platform_data omap3stalker_dvi_connector_pdata = { | ||
97 | .name = "dvi", | ||
98 | .source = "tfp410.0", | ||
99 | .i2c_bus_num = -1, | ||
100 | }; | ||
96 | 101 | ||
97 | static struct omap_dss_device omap3_stalker_tv_device = { | 102 | static struct platform_device omap3stalker_dvi_connector_device = { |
98 | .name = "tv", | 103 | .name = "connector-dvi", |
99 | .driver_name = "venc", | 104 | .id = 0, |
100 | .type = OMAP_DISPLAY_TYPE_VENC, | 105 | .dev.platform_data = &omap3stalker_dvi_connector_pdata, |
101 | #if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO) | ||
102 | .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, | ||
103 | #elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE) | ||
104 | .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE, | ||
105 | #endif | ||
106 | }; | 106 | }; |
107 | 107 | ||
108 | static struct tfp410_platform_data dvi_panel = { | 108 | static struct encoder_tfp410_platform_data omap3stalker_tfp410_pdata = { |
109 | .power_down_gpio = DSS_ENABLE_GPIO, | 109 | .name = "tfp410.0", |
110 | .i2c_bus_num = -1, | 110 | .source = "dpi.0", |
111 | .data_lines = 24, | ||
112 | .power_down_gpio = DSS_ENABLE_GPIO, | ||
111 | }; | 113 | }; |
112 | 114 | ||
113 | static struct omap_dss_device omap3_stalker_dvi_device = { | 115 | static struct platform_device omap3stalker_tfp410_device = { |
114 | .name = "dvi", | 116 | .name = "tfp410", |
115 | .type = OMAP_DISPLAY_TYPE_DPI, | 117 | .id = 0, |
116 | .driver_name = "tfp410", | 118 | .dev.platform_data = &omap3stalker_tfp410_pdata, |
117 | .data = &dvi_panel, | 119 | }; |
118 | .phy.dpi.data_lines = 24, | 120 | |
121 | static struct connector_atv_platform_data omap3stalker_tv_pdata = { | ||
122 | .name = "tv", | ||
123 | .source = "venc.0", | ||
124 | #if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO) | ||
125 | .connector_type = OMAP_DSS_VENC_TYPE_SVIDEO, | ||
126 | #elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE) | ||
127 | .connector_type = OMAP_DSS_VENC_TYPE_COMPOSITE, | ||
128 | #endif | ||
129 | .invert_polarity = false, | ||
119 | }; | 130 | }; |
120 | 131 | ||
121 | static struct omap_dss_device *omap3_stalker_dss_devices[] = { | 132 | static struct platform_device omap3stalker_tv_connector_device = { |
122 | &omap3_stalker_tv_device, | 133 | .name = "connector-analog-tv", |
123 | &omap3_stalker_dvi_device, | 134 | .id = 0, |
135 | .dev.platform_data = &omap3stalker_tv_pdata, | ||
124 | }; | 136 | }; |
125 | 137 | ||
126 | static struct omap_dss_board_info omap3_stalker_dss_data = { | 138 | static struct omap_dss_board_info omap3_stalker_dss_data = { |
127 | .num_devices = ARRAY_SIZE(omap3_stalker_dss_devices), | 139 | .default_display_name = "dvi", |
128 | .devices = omap3_stalker_dss_devices, | ||
129 | .default_device = &omap3_stalker_dvi_device, | ||
130 | }; | 140 | }; |
131 | 141 | ||
132 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply[] = { | 142 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply[] = { |
@@ -356,6 +366,9 @@ static struct usbhs_phy_data phy_data[] __initdata = { | |||
356 | 366 | ||
357 | static struct platform_device *omap3_stalker_devices[] __initdata = { | 367 | static struct platform_device *omap3_stalker_devices[] __initdata = { |
358 | &keys_gpio, | 368 | &keys_gpio, |
369 | &omap3stalker_tfp410_device, | ||
370 | &omap3stalker_dvi_connector_device, | ||
371 | &omap3stalker_tv_connector_device, | ||
359 | }; | 372 | }; |
360 | 373 | ||
361 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { | 374 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { |