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-devkit8000.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-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 26 |
1 files changed, 18 insertions, 8 deletions
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 = { |