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 /arch/arm/mach-omap2/board-am3517evm.c | |
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>
Diffstat (limited to 'arch/arm/mach-omap2/board-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 23 |
1 files changed, 17 insertions, 6 deletions
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[] = { |