diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-10 12:55:44 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-10 13:24:14 -0400 |
commit | 9b71fb5cbcdd83c65e5fe6db9cd12246f7ea0262 (patch) | |
tree | d034047d7cd562700c59a0b1b3ba707367939fe7 /arch/arm | |
parent | 1dfafbc655b3723e37120d4b30e82d1c87767dd1 (diff) | |
parent | e4a9e94cc58ed6e4efb02b80be3a9bf57f448d07 (diff) |
Merge branch 'for-l-o-3.5'
Conflicts:
drivers/video/omap2/displays/panel-taal.c
Merge OMAP DSS related board file changes. The branch will also be
merged through linux-omap tree to solve conflicts.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 38 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 37 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 25 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 32 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 37 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap4panda.c | 39 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 25 |
11 files changed, 52 insertions, 299 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index da75f239873e..37abb0d49b51 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <plat/dma.h> | 37 | #include <plat/dma.h> |
38 | #include <plat/gpmc.h> | 38 | #include <plat/gpmc.h> |
39 | #include <video/omapdss.h> | 39 | #include <video/omapdss.h> |
40 | #include <video/omap-panel-dvi.h> | 40 | #include <video/omap-panel-tfp410.h> |
41 | 41 | ||
42 | #include <plat/gpmc-smc91x.h> | 42 | #include <plat/gpmc-smc91x.h> |
43 | 43 | ||
@@ -113,9 +113,6 @@ static struct gpio sdp3430_dss_gpios[] __initdata = { | |||
113 | {SDP3430_LCD_PANEL_BACKLIGHT_GPIO, GPIOF_OUT_INIT_LOW, "LCD Backlight"}, | 113 | {SDP3430_LCD_PANEL_BACKLIGHT_GPIO, GPIOF_OUT_INIT_LOW, "LCD Backlight"}, |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static int lcd_enabled; | ||
117 | static int dvi_enabled; | ||
118 | |||
119 | static void __init sdp3430_display_init(void) | 116 | static void __init sdp3430_display_init(void) |
120 | { | 117 | { |
121 | int r; | 118 | int r; |
@@ -129,44 +126,18 @@ static void __init sdp3430_display_init(void) | |||
129 | 126 | ||
130 | static int sdp3430_panel_enable_lcd(struct omap_dss_device *dssdev) | 127 | static int sdp3430_panel_enable_lcd(struct omap_dss_device *dssdev) |
131 | { | 128 | { |
132 | if (dvi_enabled) { | ||
133 | printk(KERN_ERR "cannot enable LCD, DVI is enabled\n"); | ||
134 | return -EINVAL; | ||
135 | } | ||
136 | |||
137 | gpio_direction_output(SDP3430_LCD_PANEL_ENABLE_GPIO, 1); | 129 | gpio_direction_output(SDP3430_LCD_PANEL_ENABLE_GPIO, 1); |
138 | gpio_direction_output(SDP3430_LCD_PANEL_BACKLIGHT_GPIO, 1); | 130 | gpio_direction_output(SDP3430_LCD_PANEL_BACKLIGHT_GPIO, 1); |
139 | 131 | ||
140 | lcd_enabled = 1; | ||
141 | |||
142 | return 0; | 132 | return 0; |
143 | } | 133 | } |
144 | 134 | ||
145 | static void sdp3430_panel_disable_lcd(struct omap_dss_device *dssdev) | 135 | static void sdp3430_panel_disable_lcd(struct omap_dss_device *dssdev) |
146 | { | 136 | { |
147 | lcd_enabled = 0; | ||
148 | |||
149 | gpio_direction_output(SDP3430_LCD_PANEL_ENABLE_GPIO, 0); | 137 | gpio_direction_output(SDP3430_LCD_PANEL_ENABLE_GPIO, 0); |
150 | gpio_direction_output(SDP3430_LCD_PANEL_BACKLIGHT_GPIO, 0); | 138 | gpio_direction_output(SDP3430_LCD_PANEL_BACKLIGHT_GPIO, 0); |
151 | } | 139 | } |
152 | 140 | ||
153 | static int sdp3430_panel_enable_dvi(struct omap_dss_device *dssdev) | ||
154 | { | ||
155 | if (lcd_enabled) { | ||
156 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
157 | return -EINVAL; | ||
158 | } | ||
159 | |||
160 | dvi_enabled = 1; | ||
161 | |||
162 | return 0; | ||
163 | } | ||
164 | |||
165 | static void sdp3430_panel_disable_dvi(struct omap_dss_device *dssdev) | ||
166 | { | ||
167 | dvi_enabled = 0; | ||
168 | } | ||
169 | |||
170 | static int sdp3430_panel_enable_tv(struct omap_dss_device *dssdev) | 141 | static int sdp3430_panel_enable_tv(struct omap_dss_device *dssdev) |
171 | { | 142 | { |
172 | return 0; | 143 | return 0; |
@@ -186,15 +157,14 @@ static struct omap_dss_device sdp3430_lcd_device = { | |||
186 | .platform_disable = sdp3430_panel_disable_lcd, | 157 | .platform_disable = sdp3430_panel_disable_lcd, |
187 | }; | 158 | }; |
188 | 159 | ||
189 | static struct panel_dvi_platform_data dvi_panel = { | 160 | static struct tfp410_platform_data dvi_panel = { |
190 | .platform_enable = sdp3430_panel_enable_dvi, | 161 | .power_down_gpio = -1, |
191 | .platform_disable = sdp3430_panel_disable_dvi, | ||
192 | }; | 162 | }; |
193 | 163 | ||
194 | static struct omap_dss_device sdp3430_dvi_device = { | 164 | static struct omap_dss_device sdp3430_dvi_device = { |
195 | .name = "dvi", | 165 | .name = "dvi", |
196 | .type = OMAP_DISPLAY_TYPE_DPI, | 166 | .type = OMAP_DISPLAY_TYPE_DPI, |
197 | .driver_name = "dvi", | 167 | .driver_name = "tfp410", |
198 | .data = &dvi_panel, | 168 | .data = &dvi_panel, |
199 | .phy.dpi.data_lines = 24, | 169 | .phy.dpi.data_lines = 24, |
200 | }; | 170 | }; |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 130ab00c09a2..b4ad706c145a 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -666,6 +666,10 @@ static struct nokia_dsi_panel_data dsi1_panel = { | |||
666 | .use_ext_te = false, | 666 | .use_ext_te = false, |
667 | .ext_te_gpio = 101, | 667 | .ext_te_gpio = 101, |
668 | .esd_interval = 0, | 668 | .esd_interval = 0, |
669 | .pin_config = { | ||
670 | .num_pins = 6, | ||
671 | .pins = { 0, 1, 2, 3, 4, 5 }, | ||
672 | }, | ||
669 | }; | 673 | }; |
670 | 674 | ||
671 | static struct omap_dss_device sdp4430_lcd_device = { | 675 | static struct omap_dss_device sdp4430_lcd_device = { |
@@ -674,13 +678,6 @@ static struct omap_dss_device sdp4430_lcd_device = { | |||
674 | .type = OMAP_DISPLAY_TYPE_DSI, | 678 | .type = OMAP_DISPLAY_TYPE_DSI, |
675 | .data = &dsi1_panel, | 679 | .data = &dsi1_panel, |
676 | .phy.dsi = { | 680 | .phy.dsi = { |
677 | .clk_lane = 1, | ||
678 | .clk_pol = 0, | ||
679 | .data1_lane = 2, | ||
680 | .data1_pol = 0, | ||
681 | .data2_lane = 3, | ||
682 | .data2_pol = 0, | ||
683 | |||
684 | .module = 0, | 681 | .module = 0, |
685 | }, | 682 | }, |
686 | 683 | ||
@@ -715,6 +712,10 @@ static struct nokia_dsi_panel_data dsi2_panel = { | |||
715 | .use_ext_te = false, | 712 | .use_ext_te = false, |
716 | .ext_te_gpio = 103, | 713 | .ext_te_gpio = 103, |
717 | .esd_interval = 0, | 714 | .esd_interval = 0, |
715 | .pin_config = { | ||
716 | .num_pins = 6, | ||
717 | .pins = { 0, 1, 2, 3, 4, 5 }, | ||
718 | }, | ||
718 | }; | 719 | }; |
719 | 720 | ||
720 | static struct omap_dss_device sdp4430_lcd2_device = { | 721 | static struct omap_dss_device sdp4430_lcd2_device = { |
@@ -723,12 +724,6 @@ static struct omap_dss_device sdp4430_lcd2_device = { | |||
723 | .type = OMAP_DISPLAY_TYPE_DSI, | 724 | .type = OMAP_DISPLAY_TYPE_DSI, |
724 | .data = &dsi2_panel, | 725 | .data = &dsi2_panel, |
725 | .phy.dsi = { | 726 | .phy.dsi = { |
726 | .clk_lane = 1, | ||
727 | .clk_pol = 0, | ||
728 | .data1_lane = 2, | ||
729 | .data1_pol = 0, | ||
730 | .data2_lane = 3, | ||
731 | .data2_pol = 0, | ||
732 | 727 | ||
733 | .module = 1, | 728 | .module = 1, |
734 | }, | 729 | }, |
@@ -758,21 +753,6 @@ static struct omap_dss_device sdp4430_lcd2_device = { | |||
758 | .channel = OMAP_DSS_CHANNEL_LCD2, | 753 | .channel = OMAP_DSS_CHANNEL_LCD2, |
759 | }; | 754 | }; |
760 | 755 | ||
761 | static void sdp4430_lcd_init(void) | ||
762 | { | ||
763 | int r; | ||
764 | |||
765 | r = gpio_request_one(dsi1_panel.reset_gpio, GPIOF_DIR_OUT, | ||
766 | "lcd1_reset_gpio"); | ||
767 | if (r) | ||
768 | pr_err("%s: Could not get lcd1_reset_gpio\n", __func__); | ||
769 | |||
770 | r = gpio_request_one(dsi2_panel.reset_gpio, GPIOF_DIR_OUT, | ||
771 | "lcd2_reset_gpio"); | ||
772 | if (r) | ||
773 | pr_err("%s: Could not get lcd2_reset_gpio\n", __func__); | ||
774 | } | ||
775 | |||
776 | static struct omap_dss_hdmi_data sdp4430_hdmi_data = { | 756 | static struct omap_dss_hdmi_data sdp4430_hdmi_data = { |
777 | .hpd_gpio = HDMI_GPIO_HPD, | 757 | .hpd_gpio = HDMI_GPIO_HPD, |
778 | }; | 758 | }; |
@@ -858,7 +838,6 @@ static void __init omap_4430sdp_display_init(void) | |||
858 | if (r) | 838 | if (r) |
859 | pr_err("%s: Could not get display_sel GPIO\n", __func__); | 839 | pr_err("%s: Could not get display_sel GPIO\n", __func__); |
860 | 840 | ||
861 | sdp4430_lcd_init(); | ||
862 | sdp4430_picodlp_init(); | 841 | sdp4430_picodlp_init(); |
863 | omap_display_init(&sdp4430_dss_data); | 842 | omap_display_init(&sdp4430_dss_data); |
864 | /* | 843 | /* |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 3645285a3e2b..99790eb646e8 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <plat/usb.h> | 37 | #include <plat/usb.h> |
38 | #include <video/omapdss.h> | 38 | #include <video/omapdss.h> |
39 | #include <video/omap-panel-generic-dpi.h> | 39 | #include <video/omap-panel-generic-dpi.h> |
40 | #include <video/omap-panel-dvi.h> | 40 | #include <video/omap-panel-tfp410.h> |
41 | 41 | ||
42 | #include "am35xx-emac.h" | 42 | #include "am35xx-emac.h" |
43 | #include "mux.h" | 43 | #include "mux.h" |
@@ -207,31 +207,14 @@ static struct omap_dss_device am3517_evm_tv_device = { | |||
207 | .platform_disable = am3517_evm_panel_disable_tv, | 207 | .platform_disable = am3517_evm_panel_disable_tv, |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static int am3517_evm_panel_enable_dvi(struct omap_dss_device *dssdev) | 210 | static struct tfp410_platform_data dvi_panel = { |
211 | { | 211 | .power_down_gpio = -1, |
212 | if (lcd_enabled) { | ||
213 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
214 | return -EINVAL; | ||
215 | } | ||
216 | dvi_enabled = 1; | ||
217 | |||
218 | return 0; | ||
219 | } | ||
220 | |||
221 | static void am3517_evm_panel_disable_dvi(struct omap_dss_device *dssdev) | ||
222 | { | ||
223 | dvi_enabled = 0; | ||
224 | } | ||
225 | |||
226 | static struct panel_dvi_platform_data dvi_panel = { | ||
227 | .platform_enable = am3517_evm_panel_enable_dvi, | ||
228 | .platform_disable = am3517_evm_panel_disable_dvi, | ||
229 | }; | 212 | }; |
230 | 213 | ||
231 | static struct omap_dss_device am3517_evm_dvi_device = { | 214 | static struct omap_dss_device am3517_evm_dvi_device = { |
232 | .type = OMAP_DISPLAY_TYPE_DPI, | 215 | .type = OMAP_DISPLAY_TYPE_DPI, |
233 | .name = "dvi", | 216 | .name = "dvi", |
234 | .driver_name = "dvi", | 217 | .driver_name = "tfp410", |
235 | .data = &dvi_panel, | 218 | .data = &dvi_panel, |
236 | .phy.dpi.data_lines = 24, | 219 | .phy.dpi.data_lines = 24, |
237 | }; | 220 | }; |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 909a8b91b564..45746cb56c68 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include <plat/usb.h> | 44 | #include <plat/usb.h> |
45 | #include <video/omapdss.h> | 45 | #include <video/omapdss.h> |
46 | #include <video/omap-panel-generic-dpi.h> | 46 | #include <video/omap-panel-generic-dpi.h> |
47 | #include <video/omap-panel-dvi.h> | 47 | #include <video/omap-panel-tfp410.h> |
48 | #include <plat/mcspi.h> | 48 | #include <plat/mcspi.h> |
49 | 49 | ||
50 | #include <mach/hardware.h> | 50 | #include <mach/hardware.h> |
@@ -218,25 +218,6 @@ static void cm_t35_panel_disable_lcd(struct omap_dss_device *dssdev) | |||
218 | gpio_set_value(CM_T35_LCD_EN_GPIO, 0); | 218 | gpio_set_value(CM_T35_LCD_EN_GPIO, 0); |
219 | } | 219 | } |
220 | 220 | ||
221 | static int cm_t35_panel_enable_dvi(struct omap_dss_device *dssdev) | ||
222 | { | ||
223 | if (lcd_enabled) { | ||
224 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
225 | return -EINVAL; | ||
226 | } | ||
227 | |||
228 | gpio_set_value(CM_T35_DVI_EN_GPIO, 0); | ||
229 | dvi_enabled = 1; | ||
230 | |||
231 | return 0; | ||
232 | } | ||
233 | |||
234 | static void cm_t35_panel_disable_dvi(struct omap_dss_device *dssdev) | ||
235 | { | ||
236 | gpio_set_value(CM_T35_DVI_EN_GPIO, 1); | ||
237 | dvi_enabled = 0; | ||
238 | } | ||
239 | |||
240 | static int cm_t35_panel_enable_tv(struct omap_dss_device *dssdev) | 221 | static int cm_t35_panel_enable_tv(struct omap_dss_device *dssdev) |
241 | { | 222 | { |
242 | return 0; | 223 | return 0; |
@@ -260,15 +241,14 @@ static struct omap_dss_device cm_t35_lcd_device = { | |||
260 | .phy.dpi.data_lines = 18, | 241 | .phy.dpi.data_lines = 18, |
261 | }; | 242 | }; |
262 | 243 | ||
263 | static struct panel_dvi_platform_data dvi_panel = { | 244 | static struct tfp410_platform_data dvi_panel = { |
264 | .platform_enable = cm_t35_panel_enable_dvi, | 245 | .power_down_gpio = CM_T35_DVI_EN_GPIO, |
265 | .platform_disable = cm_t35_panel_disable_dvi, | ||
266 | }; | 246 | }; |
267 | 247 | ||
268 | static struct omap_dss_device cm_t35_dvi_device = { | 248 | static struct omap_dss_device cm_t35_dvi_device = { |
269 | .name = "dvi", | 249 | .name = "dvi", |
270 | .type = OMAP_DISPLAY_TYPE_DPI, | 250 | .type = OMAP_DISPLAY_TYPE_DPI, |
271 | .driver_name = "dvi", | 251 | .driver_name = "tfp410", |
272 | .data = &dvi_panel, | 252 | .data = &dvi_panel, |
273 | .phy.dpi.data_lines = 24, | 253 | .phy.dpi.data_lines = 24, |
274 | }; | 254 | }; |
@@ -316,7 +296,6 @@ static struct spi_board_info cm_t35_lcd_spi_board_info[] __initdata = { | |||
316 | static struct gpio cm_t35_dss_gpios[] __initdata = { | 296 | static struct gpio cm_t35_dss_gpios[] __initdata = { |
317 | { CM_T35_LCD_EN_GPIO, GPIOF_OUT_INIT_LOW, "lcd enable" }, | 297 | { CM_T35_LCD_EN_GPIO, GPIOF_OUT_INIT_LOW, "lcd enable" }, |
318 | { CM_T35_LCD_BL_GPIO, GPIOF_OUT_INIT_LOW, "lcd bl enable" }, | 298 | { CM_T35_LCD_BL_GPIO, GPIOF_OUT_INIT_LOW, "lcd bl enable" }, |
319 | { CM_T35_DVI_EN_GPIO, GPIOF_OUT_INIT_HIGH, "dvi enable" }, | ||
320 | }; | 299 | }; |
321 | 300 | ||
322 | static void __init cm_t35_init_display(void) | 301 | static void __init cm_t35_init_display(void) |
@@ -335,7 +314,6 @@ static void __init cm_t35_init_display(void) | |||
335 | 314 | ||
336 | gpio_export(CM_T35_LCD_EN_GPIO, 0); | 315 | gpio_export(CM_T35_LCD_EN_GPIO, 0); |
337 | gpio_export(CM_T35_LCD_BL_GPIO, 0); | 316 | gpio_export(CM_T35_LCD_BL_GPIO, 0); |
338 | gpio_export(CM_T35_DVI_EN_GPIO, 0); | ||
339 | 317 | ||
340 | msleep(50); | 318 | msleep(50); |
341 | gpio_set_value(CM_T35_LCD_EN_GPIO, 1); | 319 | gpio_set_value(CM_T35_LCD_EN_GPIO, 1); |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index a2010f07de31..b063f0d2faa6 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
48 | #include <video/omapdss.h> | 48 | #include <video/omapdss.h> |
49 | #include <video/omap-panel-generic-dpi.h> | 49 | #include <video/omap-panel-generic-dpi.h> |
50 | #include <video/omap-panel-dvi.h> | 50 | #include <video/omap-panel-tfp410.h> |
51 | 51 | ||
52 | #include <plat/mcspi.h> | 52 | #include <plat/mcspi.h> |
53 | #include <linux/input/matrix_keypad.h> | 53 | #include <linux/input/matrix_keypad.h> |
@@ -118,19 +118,6 @@ static void devkit8000_panel_disable_lcd(struct omap_dss_device *dssdev) | |||
118 | gpio_set_value_cansleep(dssdev->reset_gpio, 0); | 118 | gpio_set_value_cansleep(dssdev->reset_gpio, 0); |
119 | } | 119 | } |
120 | 120 | ||
121 | static int devkit8000_panel_enable_dvi(struct omap_dss_device *dssdev) | ||
122 | { | ||
123 | if (gpio_is_valid(dssdev->reset_gpio)) | ||
124 | gpio_set_value_cansleep(dssdev->reset_gpio, 1); | ||
125 | return 0; | ||
126 | } | ||
127 | |||
128 | static void devkit8000_panel_disable_dvi(struct omap_dss_device *dssdev) | ||
129 | { | ||
130 | if (gpio_is_valid(dssdev->reset_gpio)) | ||
131 | gpio_set_value_cansleep(dssdev->reset_gpio, 0); | ||
132 | } | ||
133 | |||
134 | static struct regulator_consumer_supply devkit8000_vmmc1_supply[] = { | 121 | static struct regulator_consumer_supply devkit8000_vmmc1_supply[] = { |
135 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), | 122 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
136 | }; | 123 | }; |
@@ -154,15 +141,14 @@ static struct omap_dss_device devkit8000_lcd_device = { | |||
154 | .phy.dpi.data_lines = 24, | 141 | .phy.dpi.data_lines = 24, |
155 | }; | 142 | }; |
156 | 143 | ||
157 | static struct panel_dvi_platform_data dvi_panel = { | 144 | static struct tfp410_platform_data dvi_panel = { |
158 | .platform_enable = devkit8000_panel_enable_dvi, | 145 | .power_down_gpio = -1, |
159 | .platform_disable = devkit8000_panel_disable_dvi, | ||
160 | }; | 146 | }; |
161 | 147 | ||
162 | static struct omap_dss_device devkit8000_dvi_device = { | 148 | static struct omap_dss_device devkit8000_dvi_device = { |
163 | .name = "dvi", | 149 | .name = "dvi", |
164 | .type = OMAP_DISPLAY_TYPE_DPI, | 150 | .type = OMAP_DISPLAY_TYPE_DPI, |
165 | .driver_name = "dvi", | 151 | .driver_name = "tfp410", |
166 | .data = &dvi_panel, | 152 | .data = &dvi_panel, |
167 | .phy.dpi.data_lines = 24, | 153 | .phy.dpi.data_lines = 24, |
168 | }; | 154 | }; |
@@ -244,13 +230,7 @@ static int devkit8000_twl_gpio_setup(struct device *dev, | |||
244 | } | 230 | } |
245 | 231 | ||
246 | /* gpio + 7 is "DVI_PD" (out, active low) */ | 232 | /* gpio + 7 is "DVI_PD" (out, active low) */ |
247 | devkit8000_dvi_device.reset_gpio = gpio + 7; | 233 | dvi_panel.power_down_gpio = gpio + 7; |
248 | ret = gpio_request_one(devkit8000_dvi_device.reset_gpio, | ||
249 | GPIOF_OUT_INIT_LOW, "DVI PowerDown"); | ||
250 | if (ret < 0) { | ||
251 | devkit8000_dvi_device.reset_gpio = -EINVAL; | ||
252 | printk(KERN_ERR "Failed to request GPIO for DVI PowerDown\n"); | ||
253 | } | ||
254 | 234 | ||
255 | return 0; | 235 | return 0; |
256 | } | 236 | } |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 930c0d380435..04816c96e829 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <plat/gpmc.h> | 32 | #include <plat/gpmc.h> |
33 | #include <plat/usb.h> | 33 | #include <plat/usb.h> |
34 | #include <video/omapdss.h> | 34 | #include <video/omapdss.h> |
35 | #include <video/omap-panel-dvi.h> | 35 | #include <video/omap-panel-tfp410.h> |
36 | #include <plat/onenand.h> | 36 | #include <plat/onenand.h> |
37 | 37 | ||
38 | #include "mux.h" | 38 | #include "mux.h" |
@@ -444,28 +444,15 @@ static struct twl4030_gpio_platform_data igep_twl4030_gpio_pdata = { | |||
444 | .setup = igep_twl_gpio_setup, | 444 | .setup = igep_twl_gpio_setup, |
445 | }; | 445 | }; |
446 | 446 | ||
447 | static int igep2_enable_dvi(struct omap_dss_device *dssdev) | 447 | static struct tfp410_platform_data dvi_panel = { |
448 | { | 448 | .i2c_bus_num = 3, |
449 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 1); | 449 | .power_down_gpio = IGEP2_GPIO_DVI_PUP, |
450 | |||
451 | return 0; | ||
452 | } | ||
453 | |||
454 | static void igep2_disable_dvi(struct omap_dss_device *dssdev) | ||
455 | { | ||
456 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 0); | ||
457 | } | ||
458 | |||
459 | static struct panel_dvi_platform_data dvi_panel = { | ||
460 | .platform_enable = igep2_enable_dvi, | ||
461 | .platform_disable = igep2_disable_dvi, | ||
462 | .i2c_bus_num = 3, | ||
463 | }; | 450 | }; |
464 | 451 | ||
465 | static struct omap_dss_device igep2_dvi_device = { | 452 | static struct omap_dss_device igep2_dvi_device = { |
466 | .type = OMAP_DISPLAY_TYPE_DPI, | 453 | .type = OMAP_DISPLAY_TYPE_DPI, |
467 | .name = "dvi", | 454 | .name = "dvi", |
468 | .driver_name = "dvi", | 455 | .driver_name = "tfp410", |
469 | .data = &dvi_panel, | 456 | .data = &dvi_panel, |
470 | .phy.dpi.data_lines = 24, | 457 | .phy.dpi.data_lines = 24, |
471 | }; | 458 | }; |
@@ -480,14 +467,6 @@ static struct omap_dss_board_info igep2_dss_data = { | |||
480 | .default_device = &igep2_dvi_device, | 467 | .default_device = &igep2_dvi_device, |
481 | }; | 468 | }; |
482 | 469 | ||
483 | static void __init igep2_display_init(void) | ||
484 | { | ||
485 | int err = gpio_request_one(IGEP2_GPIO_DVI_PUP, GPIOF_OUT_INIT_HIGH, | ||
486 | "GPIO_DVI_PUP"); | ||
487 | if (err) | ||
488 | pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); | ||
489 | } | ||
490 | |||
491 | static struct platform_device *igep_devices[] __initdata = { | 470 | static struct platform_device *igep_devices[] __initdata = { |
492 | &igep_vwlan_device, | 471 | &igep_vwlan_device, |
493 | }; | 472 | }; |
@@ -668,7 +647,6 @@ static void __init igep_init(void) | |||
668 | 647 | ||
669 | if (machine_is_igep0020()) { | 648 | if (machine_is_igep0020()) { |
670 | omap_display_init(&igep2_dss_data); | 649 | omap_display_init(&igep2_dss_data); |
671 | igep2_display_init(); | ||
672 | igep2_init_smsc911x(); | 650 | igep2_init_smsc911x(); |
673 | usbhs_init(&igep2_usbhs_bdata); | 651 | usbhs_init(&igep2_usbhs_bdata); |
674 | } else { | 652 | } else { |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 7be8d659d91d..8ede8d20d7b2 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include <plat/board.h> | 42 | #include <plat/board.h> |
43 | #include "common.h" | 43 | #include "common.h" |
44 | #include <video/omapdss.h> | 44 | #include <video/omapdss.h> |
45 | #include <video/omap-panel-dvi.h> | 45 | #include <video/omap-panel-tfp410.h> |
46 | #include <plat/gpmc.h> | 46 | #include <plat/gpmc.h> |
47 | #include <plat/nand.h> | 47 | #include <plat/nand.h> |
48 | #include <plat/usb.h> | 48 | #include <plat/usb.h> |
@@ -189,33 +189,17 @@ static struct mtd_partition omap3beagle_nand_partitions[] = { | |||
189 | 189 | ||
190 | /* DSS */ | 190 | /* DSS */ |
191 | 191 | ||
192 | static int beagle_enable_dvi(struct omap_dss_device *dssdev) | 192 | static struct tfp410_platform_data dvi_panel = { |
193 | { | ||
194 | if (gpio_is_valid(dssdev->reset_gpio)) | ||
195 | gpio_set_value(dssdev->reset_gpio, 1); | ||
196 | |||
197 | return 0; | ||
198 | } | ||
199 | |||
200 | static void beagle_disable_dvi(struct omap_dss_device *dssdev) | ||
201 | { | ||
202 | if (gpio_is_valid(dssdev->reset_gpio)) | ||
203 | gpio_set_value(dssdev->reset_gpio, 0); | ||
204 | } | ||
205 | |||
206 | static struct panel_dvi_platform_data dvi_panel = { | ||
207 | .platform_enable = beagle_enable_dvi, | ||
208 | .platform_disable = beagle_disable_dvi, | ||
209 | .i2c_bus_num = 3, | 193 | .i2c_bus_num = 3, |
194 | .power_down_gpio = -1, | ||
210 | }; | 195 | }; |
211 | 196 | ||
212 | static struct omap_dss_device beagle_dvi_device = { | 197 | static struct omap_dss_device beagle_dvi_device = { |
213 | .type = OMAP_DISPLAY_TYPE_DPI, | 198 | .type = OMAP_DISPLAY_TYPE_DPI, |
214 | .name = "dvi", | 199 | .name = "dvi", |
215 | .driver_name = "dvi", | 200 | .driver_name = "tfp410", |
216 | .data = &dvi_panel, | 201 | .data = &dvi_panel, |
217 | .phy.dpi.data_lines = 24, | 202 | .phy.dpi.data_lines = 24, |
218 | .reset_gpio = -EINVAL, | ||
219 | }; | 203 | }; |
220 | 204 | ||
221 | static struct omap_dss_device beagle_tv_device = { | 205 | static struct omap_dss_device beagle_tv_device = { |
@@ -236,16 +220,6 @@ static struct omap_dss_board_info beagle_dss_data = { | |||
236 | .default_device = &beagle_dvi_device, | 220 | .default_device = &beagle_dvi_device, |
237 | }; | 221 | }; |
238 | 222 | ||
239 | static void __init beagle_display_init(void) | ||
240 | { | ||
241 | int r; | ||
242 | |||
243 | r = gpio_request_one(beagle_dvi_device.reset_gpio, GPIOF_OUT_INIT_LOW, | ||
244 | "DVI reset"); | ||
245 | if (r < 0) | ||
246 | printk(KERN_ERR "Unable to get DVI reset GPIO\n"); | ||
247 | } | ||
248 | |||
249 | #include "sdram-micron-mt46h32m32lf-6.h" | 223 | #include "sdram-micron-mt46h32m32lf-6.h" |
250 | 224 | ||
251 | static struct omap2_hsmmc_info mmc[] = { | 225 | static struct omap2_hsmmc_info mmc[] = { |
@@ -309,7 +283,7 @@ static int beagle_twl_gpio_setup(struct device *dev, | |||
309 | if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC")) | 283 | if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC")) |
310 | pr_err("%s: unable to configure EHCI_nOC\n", __func__); | 284 | pr_err("%s: unable to configure EHCI_nOC\n", __func__); |
311 | } | 285 | } |
312 | beagle_dvi_device.reset_gpio = beagle_config.reset_gpio; | 286 | dvi_panel.power_down_gpio = beagle_config.reset_gpio; |
313 | 287 | ||
314 | gpio_request_one(gpio + TWL4030_GPIO_MAX, beagle_config.usb_pwr_level, | 288 | gpio_request_one(gpio + TWL4030_GPIO_MAX, beagle_config.usb_pwr_level, |
315 | "nEN_USB_PWR"); | 289 | "nEN_USB_PWR"); |
@@ -552,7 +526,6 @@ static void __init omap3_beagle_init(void) | |||
552 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); | 526 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); |
553 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); | 527 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); |
554 | 528 | ||
555 | beagle_display_init(); | ||
556 | beagle_opp_init(); | 529 | beagle_opp_init(); |
557 | } | 530 | } |
558 | 531 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 49df12735b41..9919d6c1a531 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #include "common.h" | 46 | #include "common.h" |
47 | #include <plat/mcspi.h> | 47 | #include <plat/mcspi.h> |
48 | #include <video/omapdss.h> | 48 | #include <video/omapdss.h> |
49 | #include <video/omap-panel-dvi.h> | 49 | #include <video/omap-panel-tfp410.h> |
50 | 50 | ||
51 | #include "mux.h" | 51 | #include "mux.h" |
52 | #include "sdram-micron-mt46h32m32lf-6.h" | 52 | #include "sdram-micron-mt46h32m32lf-6.h" |
@@ -219,35 +219,14 @@ static struct omap_dss_device omap3_evm_tv_device = { | |||
219 | .platform_disable = omap3_evm_disable_tv, | 219 | .platform_disable = omap3_evm_disable_tv, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | static int omap3_evm_enable_dvi(struct omap_dss_device *dssdev) | 222 | static struct tfp410_platform_data dvi_panel = { |
223 | { | 223 | .power_down_gpio = OMAP3EVM_DVI_PANEL_EN_GPIO, |
224 | if (lcd_enabled) { | ||
225 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
226 | return -EINVAL; | ||
227 | } | ||
228 | |||
229 | gpio_set_value_cansleep(OMAP3EVM_DVI_PANEL_EN_GPIO, 1); | ||
230 | |||
231 | dvi_enabled = 1; | ||
232 | return 0; | ||
233 | } | ||
234 | |||
235 | static void omap3_evm_disable_dvi(struct omap_dss_device *dssdev) | ||
236 | { | ||
237 | gpio_set_value_cansleep(OMAP3EVM_DVI_PANEL_EN_GPIO, 0); | ||
238 | |||
239 | dvi_enabled = 0; | ||
240 | } | ||
241 | |||
242 | static struct panel_dvi_platform_data dvi_panel = { | ||
243 | .platform_enable = omap3_evm_enable_dvi, | ||
244 | .platform_disable = omap3_evm_disable_dvi, | ||
245 | }; | 224 | }; |
246 | 225 | ||
247 | static struct omap_dss_device omap3_evm_dvi_device = { | 226 | static struct omap_dss_device omap3_evm_dvi_device = { |
248 | .name = "dvi", | 227 | .name = "dvi", |
249 | .type = OMAP_DISPLAY_TYPE_DPI, | 228 | .type = OMAP_DISPLAY_TYPE_DPI, |
250 | .driver_name = "dvi", | 229 | .driver_name = "tfp410", |
251 | .data = &dvi_panel, | 230 | .data = &dvi_panel, |
252 | .phy.dpi.data_lines = 24, | 231 | .phy.dpi.data_lines = 24, |
253 | }; | 232 | }; |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 4dffc95bddd2..4396bae91677 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include <plat/usb.h> | 42 | #include <plat/usb.h> |
43 | #include <video/omapdss.h> | 43 | #include <video/omapdss.h> |
44 | #include <video/omap-panel-generic-dpi.h> | 44 | #include <video/omap-panel-generic-dpi.h> |
45 | #include <video/omap-panel-dvi.h> | 45 | #include <video/omap-panel-tfp410.h> |
46 | 46 | ||
47 | #include <plat/mcspi.h> | 47 | #include <plat/mcspi.h> |
48 | #include <linux/input/matrix_keypad.h> | 48 | #include <linux/input/matrix_keypad.h> |
@@ -92,9 +92,6 @@ static inline void __init omap3stalker_init_eth(void) | |||
92 | #define LCD_PANEL_BKLIGHT_GPIO 210 | 92 | #define LCD_PANEL_BKLIGHT_GPIO 210 |
93 | #define ENABLE_VPLL2_DEV_GRP 0xE0 | 93 | #define ENABLE_VPLL2_DEV_GRP 0xE0 |
94 | 94 | ||
95 | static int lcd_enabled; | ||
96 | static int dvi_enabled; | ||
97 | |||
98 | static void __init omap3_stalker_display_init(void) | 95 | static void __init omap3_stalker_display_init(void) |
99 | { | 96 | { |
100 | return; | 97 | return; |
@@ -122,32 +119,14 @@ static struct omap_dss_device omap3_stalker_tv_device = { | |||
122 | .platform_disable = omap3_stalker_disable_tv, | 119 | .platform_disable = omap3_stalker_disable_tv, |
123 | }; | 120 | }; |
124 | 121 | ||
125 | static int omap3_stalker_enable_dvi(struct omap_dss_device *dssdev) | 122 | static struct tfp410_platform_data dvi_panel = { |
126 | { | 123 | .power_down_gpio = DSS_ENABLE_GPIO, |
127 | if (lcd_enabled) { | ||
128 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
129 | return -EINVAL; | ||
130 | } | ||
131 | gpio_set_value(DSS_ENABLE_GPIO, 1); | ||
132 | dvi_enabled = 1; | ||
133 | return 0; | ||
134 | } | ||
135 | |||
136 | static void omap3_stalker_disable_dvi(struct omap_dss_device *dssdev) | ||
137 | { | ||
138 | gpio_set_value(DSS_ENABLE_GPIO, 0); | ||
139 | dvi_enabled = 0; | ||
140 | } | ||
141 | |||
142 | static struct panel_dvi_platform_data dvi_panel = { | ||
143 | .platform_enable = omap3_stalker_enable_dvi, | ||
144 | .platform_disable = omap3_stalker_disable_dvi, | ||
145 | }; | 124 | }; |
146 | 125 | ||
147 | static struct omap_dss_device omap3_stalker_dvi_device = { | 126 | static struct omap_dss_device omap3_stalker_dvi_device = { |
148 | .name = "dvi", | 127 | .name = "dvi", |
149 | .type = OMAP_DISPLAY_TYPE_DPI, | 128 | .type = OMAP_DISPLAY_TYPE_DPI, |
150 | .driver_name = "dvi", | 129 | .driver_name = "tfp410", |
151 | .data = &dvi_panel, | 130 | .data = &dvi_panel, |
152 | .phy.dpi.data_lines = 24, | 131 | .phy.dpi.data_lines = 24, |
153 | }; | 132 | }; |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 1b782ba53433..b26cd15f3c8b 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "common.h" | 42 | #include "common.h" |
43 | #include <plat/usb.h> | 43 | #include <plat/usb.h> |
44 | #include <plat/mmc.h> | 44 | #include <plat/mmc.h> |
45 | #include <video/omap-panel-dvi.h> | 45 | #include <video/omap-panel-tfp410.h> |
46 | 46 | ||
47 | #include "hsmmc.h" | 47 | #include "hsmmc.h" |
48 | #include "control.h" | 48 | #include "control.h" |
@@ -420,46 +420,22 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
420 | /* Display DVI */ | 420 | /* Display DVI */ |
421 | #define PANDA_DVI_TFP410_POWER_DOWN_GPIO 0 | 421 | #define PANDA_DVI_TFP410_POWER_DOWN_GPIO 0 |
422 | 422 | ||
423 | static int omap4_panda_enable_dvi(struct omap_dss_device *dssdev) | ||
424 | { | ||
425 | gpio_set_value(dssdev->reset_gpio, 1); | ||
426 | return 0; | ||
427 | } | ||
428 | |||
429 | static void omap4_panda_disable_dvi(struct omap_dss_device *dssdev) | ||
430 | { | ||
431 | gpio_set_value(dssdev->reset_gpio, 0); | ||
432 | } | ||
433 | |||
434 | /* Using generic display panel */ | 423 | /* Using generic display panel */ |
435 | static struct panel_dvi_platform_data omap4_dvi_panel = { | 424 | static struct tfp410_platform_data omap4_dvi_panel = { |
436 | .platform_enable = omap4_panda_enable_dvi, | 425 | .i2c_bus_num = 3, |
437 | .platform_disable = omap4_panda_disable_dvi, | 426 | .power_down_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, |
438 | .i2c_bus_num = 3, | ||
439 | }; | 427 | }; |
440 | 428 | ||
441 | struct omap_dss_device omap4_panda_dvi_device = { | 429 | struct omap_dss_device omap4_panda_dvi_device = { |
442 | .type = OMAP_DISPLAY_TYPE_DPI, | 430 | .type = OMAP_DISPLAY_TYPE_DPI, |
443 | .name = "dvi", | 431 | .name = "dvi", |
444 | .driver_name = "dvi", | 432 | .driver_name = "tfp410", |
445 | .data = &omap4_dvi_panel, | 433 | .data = &omap4_dvi_panel, |
446 | .phy.dpi.data_lines = 24, | 434 | .phy.dpi.data_lines = 24, |
447 | .reset_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, | 435 | .reset_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, |
448 | .channel = OMAP_DSS_CHANNEL_LCD2, | 436 | .channel = OMAP_DSS_CHANNEL_LCD2, |
449 | }; | 437 | }; |
450 | 438 | ||
451 | int __init omap4_panda_dvi_init(void) | ||
452 | { | ||
453 | int r; | ||
454 | |||
455 | /* Requesting TFP410 DVI GPIO and disabling it, at bootup */ | ||
456 | r = gpio_request_one(omap4_panda_dvi_device.reset_gpio, | ||
457 | GPIOF_OUT_INIT_LOW, "DVI PD"); | ||
458 | if (r) | ||
459 | pr_err("Failed to get DVI powerdown GPIO\n"); | ||
460 | |||
461 | return r; | ||
462 | } | ||
463 | 439 | ||
464 | static struct gpio panda_hdmi_gpios[] = { | 440 | static struct gpio panda_hdmi_gpios[] = { |
465 | { HDMI_GPIO_CT_CP_HPD, GPIOF_OUT_INIT_HIGH, "hdmi_gpio_ct_cp_hpd" }, | 441 | { HDMI_GPIO_CT_CP_HPD, GPIOF_OUT_INIT_HIGH, "hdmi_gpio_ct_cp_hpd" }, |
@@ -511,11 +487,6 @@ static struct omap_dss_board_info omap4_panda_dss_data = { | |||
511 | 487 | ||
512 | void __init omap4_panda_display_init(void) | 488 | void __init omap4_panda_display_init(void) |
513 | { | 489 | { |
514 | int r; | ||
515 | |||
516 | r = omap4_panda_dvi_init(); | ||
517 | if (r) | ||
518 | pr_err("error initializing panda DVI\n"); | ||
519 | 490 | ||
520 | omap_display_init(&omap4_panda_dss_data); | 491 | omap_display_init(&omap4_panda_dss_data); |
521 | 492 | ||
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 33aa3910b09e..5527c1979a16 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #include "common.h" | 46 | #include "common.h" |
47 | #include <video/omapdss.h> | 47 | #include <video/omapdss.h> |
48 | #include <video/omap-panel-generic-dpi.h> | 48 | #include <video/omap-panel-generic-dpi.h> |
49 | #include <video/omap-panel-dvi.h> | 49 | #include <video/omap-panel-tfp410.h> |
50 | #include <plat/gpmc.h> | 50 | #include <plat/gpmc.h> |
51 | #include <mach/hardware.h> | 51 | #include <mach/hardware.h> |
52 | #include <plat/nand.h> | 52 | #include <plat/nand.h> |
@@ -167,32 +167,15 @@ static void __init overo_display_init(void) | |||
167 | gpio_export(OVERO_GPIO_LCD_BL, 0); | 167 | gpio_export(OVERO_GPIO_LCD_BL, 0); |
168 | } | 168 | } |
169 | 169 | ||
170 | static int overo_panel_enable_dvi(struct omap_dss_device *dssdev) | 170 | static struct tfp410_platform_data dvi_panel = { |
171 | { | ||
172 | if (lcd_enabled) { | ||
173 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
174 | return -EINVAL; | ||
175 | } | ||
176 | dvi_enabled = 1; | ||
177 | |||
178 | return 0; | ||
179 | } | ||
180 | |||
181 | static void overo_panel_disable_dvi(struct omap_dss_device *dssdev) | ||
182 | { | ||
183 | dvi_enabled = 0; | ||
184 | } | ||
185 | |||
186 | static struct panel_dvi_platform_data dvi_panel = { | ||
187 | .platform_enable = overo_panel_enable_dvi, | ||
188 | .platform_disable = overo_panel_disable_dvi, | ||
189 | .i2c_bus_num = 3, | 171 | .i2c_bus_num = 3, |
172 | .power_down_gpio = -1, | ||
190 | }; | 173 | }; |
191 | 174 | ||
192 | static struct omap_dss_device overo_dvi_device = { | 175 | static struct omap_dss_device overo_dvi_device = { |
193 | .name = "dvi", | 176 | .name = "dvi", |
194 | .type = OMAP_DISPLAY_TYPE_DPI, | 177 | .type = OMAP_DISPLAY_TYPE_DPI, |
195 | .driver_name = "dvi", | 178 | .driver_name = "tfp410", |
196 | .data = &dvi_panel, | 179 | .data = &dvi_panel, |
197 | .phy.dpi.data_lines = 24, | 180 | .phy.dpi.data_lines = 24, |
198 | }; | 181 | }; |