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-omap3beagle.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-omap3beagle.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 12 |
1 files changed, 9 insertions, 3 deletions
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 = { |