diff options
Diffstat (limited to 'arch/arm/mach-omap2/dss-common.c')
-rw-r--r-- | arch/arm/mach-omap2/dss-common.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/dss-common.c b/arch/arm/mach-omap2/dss-common.c index bf89effa4c99..365bfd3d9c68 100644 --- a/arch/arm/mach-omap2/dss-common.c +++ b/arch/arm/mach-omap2/dss-common.c | |||
@@ -213,3 +213,47 @@ void __init omap_4430sdp_display_init_of(void) | |||
213 | platform_device_register(&sdp4430_tpd_device); | 213 | platform_device_register(&sdp4430_tpd_device); |
214 | platform_device_register(&sdp4430_hdmi_connector_device); | 214 | platform_device_register(&sdp4430_hdmi_connector_device); |
215 | } | 215 | } |
216 | |||
217 | |||
218 | /* OMAP3 IGEPv2 data */ | ||
219 | |||
220 | #define IGEP2_DVI_TFP410_POWER_DOWN_GPIO 170 | ||
221 | |||
222 | /* DVI Connector */ | ||
223 | static struct connector_dvi_platform_data omap3_igep2_dvi_connector_pdata = { | ||
224 | .name = "dvi", | ||
225 | .source = "tfp410.0", | ||
226 | .i2c_bus_num = 3, | ||
227 | }; | ||
228 | |||
229 | static struct platform_device omap3_igep2_dvi_connector_device = { | ||
230 | .name = "connector-dvi", | ||
231 | .id = 0, | ||
232 | .dev.platform_data = &omap3_igep2_dvi_connector_pdata, | ||
233 | }; | ||
234 | |||
235 | /* TFP410 DPI-to-DVI chip */ | ||
236 | static struct encoder_tfp410_platform_data omap3_igep2_tfp410_pdata = { | ||
237 | .name = "tfp410.0", | ||
238 | .source = "dpi.0", | ||
239 | .data_lines = 24, | ||
240 | .power_down_gpio = IGEP2_DVI_TFP410_POWER_DOWN_GPIO, | ||
241 | }; | ||
242 | |||
243 | static struct platform_device omap3_igep2_tfp410_device = { | ||
244 | .name = "tfp410", | ||
245 | .id = 0, | ||
246 | .dev.platform_data = &omap3_igep2_tfp410_pdata, | ||
247 | }; | ||
248 | |||
249 | static struct omap_dss_board_info igep2_dss_data = { | ||
250 | .default_display_name = "dvi", | ||
251 | }; | ||
252 | |||
253 | void __init omap3_igep2_display_init_of(void) | ||
254 | { | ||
255 | omap_display_init(&igep2_dss_data); | ||
256 | |||
257 | platform_device_register(&omap3_igep2_tfp410_device); | ||
258 | platform_device_register(&omap3_igep2_dvi_connector_device); | ||
259 | } | ||