diff options
author | Bryan Wu <bryan.wu@canonical.com> | 2010-11-17 08:34:34 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2011-01-10 04:09:53 -0500 |
commit | 89747c9141cd750a610974d93f71492922b8cbd7 (patch) | |
tree | a11d30f7ff631081fdadf903c4fbf400f24a6ef1 | |
parent | a9a62b6a886545960488cae3b97acb482361b802 (diff) |
OMAP: use generic DPI panel driver in board files
Still keep sharp_ls_panel, since the sharp_ls_panel driver contains blacklight
control driver code which will be moved out later. Then we can use generic DPI
driver for sharp_ls_panel.
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Archit Taneja <archit@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 23 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 23 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 26 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 23 |
8 files changed, 105 insertions, 38 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 3b39ef1a680a..d4e41ef86aa5 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <plat/dma.h> | 38 | #include <plat/dma.h> |
39 | #include <plat/gpmc.h> | 39 | #include <plat/gpmc.h> |
40 | #include <plat/display.h> | 40 | #include <plat/display.h> |
41 | #include <plat/panel-generic-dpi.h> | ||
41 | 42 | ||
42 | #include <plat/gpmc-smc91x.h> | 43 | #include <plat/gpmc-smc91x.h> |
43 | 44 | ||
@@ -270,13 +271,18 @@ static struct omap_dss_device sdp3430_lcd_device = { | |||
270 | .platform_disable = sdp3430_panel_disable_lcd, | 271 | .platform_disable = sdp3430_panel_disable_lcd, |
271 | }; | 272 | }; |
272 | 273 | ||
274 | static struct panel_generic_dpi_data dvi_panel = { | ||
275 | .name = "generic", | ||
276 | .platform_enable = sdp3430_panel_enable_dvi, | ||
277 | .platform_disable = sdp3430_panel_disable_dvi, | ||
278 | }; | ||
279 | |||
273 | static struct omap_dss_device sdp3430_dvi_device = { | 280 | static struct omap_dss_device sdp3430_dvi_device = { |
274 | .name = "dvi", | 281 | .name = "dvi", |
275 | .driver_name = "generic_panel", | ||
276 | .type = OMAP_DISPLAY_TYPE_DPI, | 282 | .type = OMAP_DISPLAY_TYPE_DPI, |
283 | .driver_name = "generic_dpi_panel", | ||
284 | .data = &dvi_panel, | ||
277 | .phy.dpi.data_lines = 24, | 285 | .phy.dpi.data_lines = 24, |
278 | .platform_enable = sdp3430_panel_enable_dvi, | ||
279 | .platform_disable = sdp3430_panel_disable_dvi, | ||
280 | }; | 286 | }; |
281 | 287 | ||
282 | static struct omap_dss_device sdp3430_tv_device = { | 288 | static struct omap_dss_device sdp3430_tv_device = { |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index bc1562648020..10d60b7743cf 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <plat/common.h> | 35 | #include <plat/common.h> |
36 | #include <plat/usb.h> | 36 | #include <plat/usb.h> |
37 | #include <plat/display.h> | 37 | #include <plat/display.h> |
38 | #include <plat/panel-generic-dpi.h> | ||
38 | 39 | ||
39 | #include "mux.h" | 40 | #include "mux.h" |
40 | #include "control.h" | 41 | #include "control.h" |
@@ -303,13 +304,18 @@ static void am3517_evm_panel_disable_lcd(struct omap_dss_device *dssdev) | |||
303 | lcd_enabled = 0; | 304 | lcd_enabled = 0; |
304 | } | 305 | } |
305 | 306 | ||
307 | static struct panel_generic_dpi_data lcd_panel = { | ||
308 | .name = "sharp_lq", | ||
309 | .platform_enable = am3517_evm_panel_enable_lcd, | ||
310 | .platform_disable = am3517_evm_panel_disable_lcd, | ||
311 | }; | ||
312 | |||
306 | static struct omap_dss_device am3517_evm_lcd_device = { | 313 | static struct omap_dss_device am3517_evm_lcd_device = { |
307 | .type = OMAP_DISPLAY_TYPE_DPI, | 314 | .type = OMAP_DISPLAY_TYPE_DPI, |
308 | .name = "lcd", | 315 | .name = "lcd", |
309 | .driver_name = "sharp_lq_panel", | 316 | .driver_name = "generic_dpi_panel", |
317 | .data = &lcd_panel, | ||
310 | .phy.dpi.data_lines = 16, | 318 | .phy.dpi.data_lines = 16, |
311 | .platform_enable = am3517_evm_panel_enable_lcd, | ||
312 | .platform_disable = am3517_evm_panel_disable_lcd, | ||
313 | }; | 319 | }; |
314 | 320 | ||
315 | static int am3517_evm_panel_enable_tv(struct omap_dss_device *dssdev) | 321 | static int am3517_evm_panel_enable_tv(struct omap_dss_device *dssdev) |
@@ -346,13 +352,18 @@ static void am3517_evm_panel_disable_dvi(struct omap_dss_device *dssdev) | |||
346 | dvi_enabled = 0; | 352 | dvi_enabled = 0; |
347 | } | 353 | } |
348 | 354 | ||
355 | static struct panel_generic_dpi_data dvi_panel = { | ||
356 | .name = "generic", | ||
357 | .platform_enable = am3517_evm_panel_enable_dvi, | ||
358 | .platform_disable = am3517_evm_panel_disable_dvi, | ||
359 | }; | ||
360 | |||
349 | static struct omap_dss_device am3517_evm_dvi_device = { | 361 | static struct omap_dss_device am3517_evm_dvi_device = { |
350 | .type = OMAP_DISPLAY_TYPE_DPI, | 362 | .type = OMAP_DISPLAY_TYPE_DPI, |
351 | .name = "dvi", | 363 | .name = "dvi", |
352 | .driver_name = "generic_panel", | 364 | .driver_name = "generic_dpi_panel", |
365 | .data = &dvi_panel, | ||
353 | .phy.dpi.data_lines = 24, | 366 | .phy.dpi.data_lines = 24, |
354 | .platform_enable = am3517_evm_panel_enable_dvi, | ||
355 | .platform_disable = am3517_evm_panel_disable_dvi, | ||
356 | }; | 367 | }; |
357 | 368 | ||
358 | static struct omap_dss_device *am3517_evm_dss_devices[] = { | 369 | static struct omap_dss_device *am3517_evm_dss_devices[] = { |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 486a3de5f401..dac141610666 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <plat/gpmc.h> | 46 | #include <plat/gpmc.h> |
47 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
48 | #include <plat/display.h> | 48 | #include <plat/display.h> |
49 | #include <plat/panel-generic-dpi.h> | ||
49 | #include <plat/mcspi.h> | 50 | #include <plat/mcspi.h> |
50 | 51 | ||
51 | #include <mach/hardware.h> | 52 | #include <mach/hardware.h> |
@@ -351,22 +352,32 @@ static void cm_t35_panel_disable_tv(struct omap_dss_device *dssdev) | |||
351 | { | 352 | { |
352 | } | 353 | } |
353 | 354 | ||
355 | static struct panel_generic_dpi_data lcd_panel = { | ||
356 | .name = "toppoly_tdo35s", | ||
357 | .platform_enable = cm_t35_panel_enable_lcd, | ||
358 | .platform_disable = cm_t35_panel_disable_lcd, | ||
359 | }; | ||
360 | |||
354 | static struct omap_dss_device cm_t35_lcd_device = { | 361 | static struct omap_dss_device cm_t35_lcd_device = { |
355 | .name = "lcd", | 362 | .name = "lcd", |
356 | .driver_name = "toppoly_tdo35s_panel", | ||
357 | .type = OMAP_DISPLAY_TYPE_DPI, | 363 | .type = OMAP_DISPLAY_TYPE_DPI, |
364 | .driver_name = "generic_dpi_panel", | ||
365 | .data = &lcd_panel, | ||
358 | .phy.dpi.data_lines = 18, | 366 | .phy.dpi.data_lines = 18, |
359 | .platform_enable = cm_t35_panel_enable_lcd, | 367 | }; |
360 | .platform_disable = cm_t35_panel_disable_lcd, | 368 | |
369 | static struct panel_generic_dpi_data dvi_panel = { | ||
370 | .name = "generic", | ||
371 | .platform_enable = cm_t35_panel_enable_dvi, | ||
372 | .platform_disable = cm_t35_panel_disable_dvi, | ||
361 | }; | 373 | }; |
362 | 374 | ||
363 | static struct omap_dss_device cm_t35_dvi_device = { | 375 | static struct omap_dss_device cm_t35_dvi_device = { |
364 | .name = "dvi", | 376 | .name = "dvi", |
365 | .driver_name = "generic_panel", | ||
366 | .type = OMAP_DISPLAY_TYPE_DPI, | 377 | .type = OMAP_DISPLAY_TYPE_DPI, |
378 | .driver_name = "generic_dpi_panel", | ||
379 | .data = &dvi_panel, | ||
367 | .phy.dpi.data_lines = 24, | 380 | .phy.dpi.data_lines = 24, |
368 | .platform_enable = cm_t35_panel_enable_dvi, | ||
369 | .platform_disable = cm_t35_panel_disable_dvi, | ||
370 | }; | 381 | }; |
371 | 382 | ||
372 | static struct omap_dss_device cm_t35_tv_device = { | 383 | static struct omap_dss_device cm_t35_tv_device = { |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 451e7ff08b18..00bb1fc5e017 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <plat/nand.h> | 46 | #include <plat/nand.h> |
47 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
48 | #include <plat/display.h> | 48 | #include <plat/display.h> |
49 | #include <plat/panel-generic-dpi.h> | ||
49 | 50 | ||
50 | #include <plat/mcspi.h> | 51 | #include <plat/mcspi.h> |
51 | #include <linux/input/matrix_keypad.h> | 52 | #include <linux/input/matrix_keypad.h> |
@@ -149,23 +150,32 @@ static struct regulator_consumer_supply devkit8000_vmmc1_supply = | |||
149 | static struct regulator_consumer_supply devkit8000_vio_supply = | 150 | static struct regulator_consumer_supply devkit8000_vio_supply = |
150 | REGULATOR_SUPPLY("vcc", "spi2.0"); | 151 | REGULATOR_SUPPLY("vcc", "spi2.0"); |
151 | 152 | ||
153 | static struct panel_generic_dpi_data lcd_panel = { | ||
154 | .name = "generic", | ||
155 | .platform_enable = devkit8000_panel_enable_lcd, | ||
156 | .platform_disable = devkit8000_panel_disable_lcd, | ||
157 | }; | ||
158 | |||
152 | static struct omap_dss_device devkit8000_lcd_device = { | 159 | static struct omap_dss_device devkit8000_lcd_device = { |
153 | .name = "lcd", | 160 | .name = "lcd", |
154 | .driver_name = "generic_panel", | ||
155 | .type = OMAP_DISPLAY_TYPE_DPI, | 161 | .type = OMAP_DISPLAY_TYPE_DPI, |
162 | .driver_name = "generic_dpi_panel", | ||
163 | .data = &lcd_panel, | ||
156 | .phy.dpi.data_lines = 24, | 164 | .phy.dpi.data_lines = 24, |
157 | .reset_gpio = -EINVAL, /* will be replaced */ | ||
158 | .platform_enable = devkit8000_panel_enable_lcd, | ||
159 | .platform_disable = devkit8000_panel_disable_lcd, | ||
160 | }; | 165 | }; |
166 | |||
167 | static struct panel_generic_dpi_data dvi_panel = { | ||
168 | .name = "generic", | ||
169 | .platform_enable = devkit8000_panel_enable_dvi, | ||
170 | .platform_disable = devkit8000_panel_disable_dvi, | ||
171 | }; | ||
172 | |||
161 | static struct omap_dss_device devkit8000_dvi_device = { | 173 | static struct omap_dss_device devkit8000_dvi_device = { |
162 | .name = "dvi", | 174 | .name = "dvi", |
163 | .driver_name = "generic_panel", | ||
164 | .type = OMAP_DISPLAY_TYPE_DPI, | 175 | .type = OMAP_DISPLAY_TYPE_DPI, |
176 | .driver_name = "generic_dpi_panel", | ||
177 | .data = &dvi_panel, | ||
165 | .phy.dpi.data_lines = 24, | 178 | .phy.dpi.data_lines = 24, |
166 | .reset_gpio = -EINVAL, /* will be replaced */ | ||
167 | .platform_enable = devkit8000_panel_enable_dvi, | ||
168 | .platform_disable = devkit8000_panel_disable_dvi, | ||
169 | }; | 179 | }; |
170 | 180 | ||
171 | static struct omap_dss_device devkit8000_tv_device = { | 181 | static struct omap_dss_device devkit8000_tv_device = { |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 0afa3011db0f..ebaa230e67ed 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <plat/gpmc.h> | 31 | #include <plat/gpmc.h> |
32 | #include <plat/usb.h> | 32 | #include <plat/usb.h> |
33 | #include <plat/display.h> | 33 | #include <plat/display.h> |
34 | #include <plat/panel-generic-dpi.h> | ||
34 | #include <plat/onenand.h> | 35 | #include <plat/onenand.h> |
35 | 36 | ||
36 | #include "mux.h" | 37 | #include "mux.h" |
@@ -459,13 +460,18 @@ static void igep2_disable_dvi(struct omap_dss_device *dssdev) | |||
459 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 0); | 460 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 0); |
460 | } | 461 | } |
461 | 462 | ||
463 | static struct panel_generic_dpi_data dvi_panel = { | ||
464 | .name = "generic", | ||
465 | .platform_enable = igep2_enable_dvi, | ||
466 | .platform_disable = igep2_disable_dvi, | ||
467 | }; | ||
468 | |||
462 | static struct omap_dss_device igep2_dvi_device = { | 469 | static struct omap_dss_device igep2_dvi_device = { |
463 | .type = OMAP_DISPLAY_TYPE_DPI, | 470 | .type = OMAP_DISPLAY_TYPE_DPI, |
464 | .name = "dvi", | 471 | .name = "dvi", |
465 | .driver_name = "generic_panel", | 472 | .driver_name = "generic_dpi_panel", |
473 | .data = &dvi_panel, | ||
466 | .phy.dpi.data_lines = 24, | 474 | .phy.dpi.data_lines = 24, |
467 | .platform_enable = igep2_enable_dvi, | ||
468 | .platform_disable = igep2_disable_dvi, | ||
469 | }; | 475 | }; |
470 | 476 | ||
471 | static struct omap_dss_device *igep2_dss_devices[] = { | 477 | static struct omap_dss_device *igep2_dss_devices[] = { |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 6c127605942f..a4fe8e1ee1bd 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <plat/board.h> | 41 | #include <plat/board.h> |
42 | #include <plat/common.h> | 42 | #include <plat/common.h> |
43 | #include <plat/display.h> | 43 | #include <plat/display.h> |
44 | #include <plat/panel-generic-dpi.h> | ||
44 | #include <plat/gpmc.h> | 45 | #include <plat/gpmc.h> |
45 | #include <plat/nand.h> | 46 | #include <plat/nand.h> |
46 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
@@ -194,14 +195,19 @@ static void beagle_disable_dvi(struct omap_dss_device *dssdev) | |||
194 | gpio_set_value(dssdev->reset_gpio, 0); | 195 | gpio_set_value(dssdev->reset_gpio, 0); |
195 | } | 196 | } |
196 | 197 | ||
198 | static struct panel_generic_dpi_data dvi_panel = { | ||
199 | .name = "generic", | ||
200 | .platform_enable = beagle_enable_dvi, | ||
201 | .platform_disable = beagle_disable_dvi, | ||
202 | }; | ||
203 | |||
197 | static struct omap_dss_device beagle_dvi_device = { | 204 | static struct omap_dss_device beagle_dvi_device = { |
198 | .type = OMAP_DISPLAY_TYPE_DPI, | 205 | .type = OMAP_DISPLAY_TYPE_DPI, |
199 | .name = "dvi", | 206 | .name = "dvi", |
200 | .driver_name = "generic_panel", | 207 | .driver_name = "generic_dpi_panel", |
208 | .data = &dvi_panel, | ||
201 | .phy.dpi.data_lines = 24, | 209 | .phy.dpi.data_lines = 24, |
202 | .reset_gpio = 170, | 210 | .reset_gpio = 170, |
203 | .platform_enable = beagle_enable_dvi, | ||
204 | .platform_disable = beagle_disable_dvi, | ||
205 | }; | 211 | }; |
206 | 212 | ||
207 | static struct omap_dss_device beagle_tv_device = { | 213 | static struct omap_dss_device beagle_tv_device = { |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 3de8d9b8ec76..323c3809ce39 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <plat/common.h> | 43 | #include <plat/common.h> |
44 | #include <plat/mcspi.h> | 44 | #include <plat/mcspi.h> |
45 | #include <plat/display.h> | 45 | #include <plat/display.h> |
46 | #include <plat/panel-generic-dpi.h> | ||
46 | 47 | ||
47 | #include "mux.h" | 48 | #include "mux.h" |
48 | #include "sdram-micron-mt46h32m32lf-6.h" | 49 | #include "sdram-micron-mt46h32m32lf-6.h" |
@@ -301,13 +302,18 @@ static void omap3_evm_disable_dvi(struct omap_dss_device *dssdev) | |||
301 | dvi_enabled = 0; | 302 | dvi_enabled = 0; |
302 | } | 303 | } |
303 | 304 | ||
305 | static struct panel_generic_dpi_data dvi_panel = { | ||
306 | .name = "generic", | ||
307 | .platform_enable = omap3_evm_enable_dvi, | ||
308 | .platform_disable = omap3_evm_disable_dvi, | ||
309 | }; | ||
310 | |||
304 | static struct omap_dss_device omap3_evm_dvi_device = { | 311 | static struct omap_dss_device omap3_evm_dvi_device = { |
305 | .name = "dvi", | 312 | .name = "dvi", |
306 | .driver_name = "generic_panel", | ||
307 | .type = OMAP_DISPLAY_TYPE_DPI, | 313 | .type = OMAP_DISPLAY_TYPE_DPI, |
314 | .driver_name = "generic_dpi_panel", | ||
315 | .data = &dvi_panel, | ||
308 | .phy.dpi.data_lines = 24, | 316 | .phy.dpi.data_lines = 24, |
309 | .platform_enable = omap3_evm_enable_dvi, | ||
310 | .platform_disable = omap3_evm_disable_dvi, | ||
311 | }; | 317 | }; |
312 | 318 | ||
313 | static struct omap_dss_device *omap3_evm_dss_devices[] = { | 319 | static struct omap_dss_device *omap3_evm_dss_devices[] = { |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 9df9d9367608..2a2dad447e86 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <plat/nand.h> | 40 | #include <plat/nand.h> |
41 | #include <plat/usb.h> | 41 | #include <plat/usb.h> |
42 | #include <plat/display.h> | 42 | #include <plat/display.h> |
43 | #include <plat/panel-generic-dpi.h> | ||
43 | 44 | ||
44 | #include <plat/mcspi.h> | 45 | #include <plat/mcspi.h> |
45 | #include <linux/input/matrix_keypad.h> | 46 | #include <linux/input/matrix_keypad.h> |
@@ -160,13 +161,18 @@ static void omap3_stalker_disable_lcd(struct omap_dss_device *dssdev) | |||
160 | lcd_enabled = 0; | 161 | lcd_enabled = 0; |
161 | } | 162 | } |
162 | 163 | ||
164 | static struct panel_generic_dpi_data lcd_panel = { | ||
165 | .name = "generic", | ||
166 | .platform_enable = omap3_stalker_enable_lcd, | ||
167 | .platform_disable = omap3_stalker_disable_lcd, | ||
168 | }; | ||
169 | |||
163 | static struct omap_dss_device omap3_stalker_lcd_device = { | 170 | static struct omap_dss_device omap3_stalker_lcd_device = { |
164 | .name = "lcd", | 171 | .name = "lcd", |
165 | .driver_name = "generic_panel", | 172 | .driver_name = "generic_dpi_panel", |
173 | .data = &lcd_panel, | ||
166 | .phy.dpi.data_lines = 24, | 174 | .phy.dpi.data_lines = 24, |
167 | .type = OMAP_DISPLAY_TYPE_DPI, | 175 | .type = OMAP_DISPLAY_TYPE_DPI, |
168 | .platform_enable = omap3_stalker_enable_lcd, | ||
169 | .platform_disable = omap3_stalker_disable_lcd, | ||
170 | }; | 176 | }; |
171 | 177 | ||
172 | static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev) | 178 | static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev) |
@@ -208,13 +214,18 @@ static void omap3_stalker_disable_dvi(struct omap_dss_device *dssdev) | |||
208 | dvi_enabled = 0; | 214 | dvi_enabled = 0; |
209 | } | 215 | } |
210 | 216 | ||
217 | static struct panel_generic_dpi_data dvi_panel = { | ||
218 | .name = "generic", | ||
219 | .platform_enable = omap3_stalker_enable_dvi, | ||
220 | .platform_disable = omap3_stalker_disable_dvi, | ||
221 | }; | ||
222 | |||
211 | static struct omap_dss_device omap3_stalker_dvi_device = { | 223 | static struct omap_dss_device omap3_stalker_dvi_device = { |
212 | .name = "dvi", | 224 | .name = "dvi", |
213 | .driver_name = "generic_panel", | ||
214 | .type = OMAP_DISPLAY_TYPE_DPI, | 225 | .type = OMAP_DISPLAY_TYPE_DPI, |
226 | .driver_name = "generic_dpi_panel", | ||
227 | .data = &dvi_panel, | ||
215 | .phy.dpi.data_lines = 24, | 228 | .phy.dpi.data_lines = 24, |
216 | .platform_enable = omap3_stalker_enable_dvi, | ||
217 | .platform_disable = omap3_stalker_disable_dvi, | ||
218 | }; | 229 | }; |
219 | 230 | ||
220 | static struct omap_dss_device *omap3_stalker_dss_devices[] = { | 231 | static struct omap_dss_device *omap3_stalker_dss_devices[] = { |