diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-09 10:25:13 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-30 09:16:53 -0400 |
commit | 870e1a73596244b22a56f69fe4b24458b38ce94b (patch) | |
tree | 0d4f780262e41dfe450e3da59cd2590d1a48779a | |
parent | 1d7a8654e88885137ade1769c574467775fde27b (diff) |
OMAP: stalker: Remove LCD device from board file
OMAP3 Stalker board has definitions for LCD, but uses the generic driver
without any information what kind of LCD it has. The board should use a
particular panel type from panel-generic-dpi driver, not the generic
one.
As I haven't gotten response the signer-off of stalker board about the
issue, this patch removes the LCD support from the board file. This will
allow us to clean up the panel-generic-dpi driver and make it support
only fixed size panels.
CC: Jason Lam <lzg@ema-tech.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 8ab99f1d9e2c..106a2bab776e 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -108,39 +108,6 @@ static void __init omap3_stalker_display_init(void) | |||
108 | return; | 108 | return; |
109 | } | 109 | } |
110 | 110 | ||
111 | static int omap3_stalker_enable_lcd(struct omap_dss_device *dssdev) | ||
112 | { | ||
113 | if (dvi_enabled) { | ||
114 | printk(KERN_ERR "cannot enable LCD, DVI is enabled\n"); | ||
115 | return -EINVAL; | ||
116 | } | ||
117 | gpio_set_value(DSS_ENABLE_GPIO, 1); | ||
118 | gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 1); | ||
119 | lcd_enabled = 1; | ||
120 | return 0; | ||
121 | } | ||
122 | |||
123 | static void omap3_stalker_disable_lcd(struct omap_dss_device *dssdev) | ||
124 | { | ||
125 | gpio_set_value(DSS_ENABLE_GPIO, 0); | ||
126 | gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 0); | ||
127 | lcd_enabled = 0; | ||
128 | } | ||
129 | |||
130 | static struct panel_generic_dpi_data lcd_panel = { | ||
131 | .name = "generic", | ||
132 | .platform_enable = omap3_stalker_enable_lcd, | ||
133 | .platform_disable = omap3_stalker_disable_lcd, | ||
134 | }; | ||
135 | |||
136 | static struct omap_dss_device omap3_stalker_lcd_device = { | ||
137 | .name = "lcd", | ||
138 | .driver_name = "generic_dpi_panel", | ||
139 | .data = &lcd_panel, | ||
140 | .phy.dpi.data_lines = 24, | ||
141 | .type = OMAP_DISPLAY_TYPE_DPI, | ||
142 | }; | ||
143 | |||
144 | static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev) | 111 | static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev) |
145 | { | 112 | { |
146 | return 0; | 113 | return 0; |
@@ -194,7 +161,6 @@ static struct omap_dss_device omap3_stalker_dvi_device = { | |||
194 | }; | 161 | }; |
195 | 162 | ||
196 | static struct omap_dss_device *omap3_stalker_dss_devices[] = { | 163 | static struct omap_dss_device *omap3_stalker_dss_devices[] = { |
197 | &omap3_stalker_lcd_device, | ||
198 | &omap3_stalker_tv_device, | 164 | &omap3_stalker_tv_device, |
199 | &omap3_stalker_dvi_device, | 165 | &omap3_stalker_dvi_device, |
200 | }; | 166 | }; |