diff options
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 69c0acf5aa63..87e41a8b8d46 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -194,30 +194,48 @@ static struct platform_device h4_flash_device = { | |||
194 | .resource = &h4_flash_resource, | 194 | .resource = &h4_flash_resource, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | static struct platform_device *h4_devices[] __initdata = { | 197 | static const struct display_timing cm_t35_lcd_videomode = { |
198 | &h4_flash_device, | 198 | .pixelclock = { 0, 6250000, 0 }, |
199 | |||
200 | .hactive = { 0, 240, 0 }, | ||
201 | .hfront_porch = { 0, 15, 0 }, | ||
202 | .hback_porch = { 0, 60, 0 }, | ||
203 | .hsync_len = { 0, 15, 0 }, | ||
204 | |||
205 | .vactive = { 0, 320, 0 }, | ||
206 | .vfront_porch = { 0, 1, 0 }, | ||
207 | .vback_porch = { 0, 1, 0 }, | ||
208 | .vsync_len = { 0, 1, 0 }, | ||
209 | |||
210 | .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH | | ||
211 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, | ||
199 | }; | 212 | }; |
200 | 213 | ||
201 | static struct panel_generic_dpi_data h4_panel_data = { | 214 | static struct panel_dpi_platform_data cm_t35_lcd_pdata = { |
202 | .name = "h4", | 215 | .name = "lcd", |
216 | .source = "dpi.0", | ||
217 | |||
218 | .data_lines = 16, | ||
219 | |||
220 | .display_timing = &cm_t35_lcd_videomode, | ||
221 | |||
222 | .enable_gpio = -1, | ||
223 | .backlight_gpio = -1, | ||
203 | }; | 224 | }; |
204 | 225 | ||
205 | static struct omap_dss_device h4_lcd_device = { | 226 | static struct platform_device cm_t35_lcd_device = { |
206 | .name = "lcd", | 227 | .name = "panel-dpi", |
207 | .driver_name = "generic_dpi_panel", | 228 | .id = 0, |
208 | .type = OMAP_DISPLAY_TYPE_DPI, | 229 | .dev.platform_data = &cm_t35_lcd_pdata, |
209 | .phy.dpi.data_lines = 16, | ||
210 | .data = &h4_panel_data, | ||
211 | }; | 230 | }; |
212 | 231 | ||
213 | static struct omap_dss_device *h4_dss_devices[] = { | 232 | static struct platform_device *h4_devices[] __initdata = { |
214 | &h4_lcd_device, | 233 | &h4_flash_device, |
234 | &cm_t35_lcd_device, | ||
215 | }; | 235 | }; |
216 | 236 | ||
217 | static struct omap_dss_board_info h4_dss_data = { | 237 | static struct omap_dss_board_info h4_dss_data = { |
218 | .num_devices = ARRAY_SIZE(h4_dss_devices), | 238 | .default_display_name = "lcd", |
219 | .devices = h4_dss_devices, | ||
220 | .default_device = &h4_lcd_device, | ||
221 | }; | 239 | }; |
222 | 240 | ||
223 | /* 2420 Sysboot setup (2430 is different) */ | 241 | /* 2420 Sysboot setup (2430 is different) */ |