提交 6970c01e 编写于 作者: T Tomi Valkeinen

ARM: OMAP: H4: use new display drivers

Use new display drivers for H4 board.

The new OMAP display drivers were merged for 3.11, and we can now change
the board files to use the new ones and phase out the old ones.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: NTony Lindgren <tony@atomide.com>
上级 fe0cf7d9
...@@ -194,30 +194,48 @@ static struct platform_device h4_flash_device = { ...@@ -194,30 +194,48 @@ static struct platform_device h4_flash_device = {
.resource = &h4_flash_resource, .resource = &h4_flash_resource,
}; };
static struct platform_device *h4_devices[] __initdata = { static const struct display_timing cm_t35_lcd_videomode = {
&h4_flash_device, .pixelclock = { 0, 6250000, 0 },
};
.hactive = { 0, 240, 0 },
.hfront_porch = { 0, 15, 0 },
.hback_porch = { 0, 60, 0 },
.hsync_len = { 0, 15, 0 },
static struct panel_generic_dpi_data h4_panel_data = { .vactive = { 0, 320, 0 },
.name = "h4", .vfront_porch = { 0, 1, 0 },
.vback_porch = { 0, 1, 0 },
.vsync_len = { 0, 1, 0 },
.flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
}; };
static struct omap_dss_device h4_lcd_device = { static struct panel_dpi_platform_data cm_t35_lcd_pdata = {
.name = "lcd", .name = "lcd",
.driver_name = "generic_dpi_panel", .source = "dpi.0",
.type = OMAP_DISPLAY_TYPE_DPI,
.phy.dpi.data_lines = 16, .data_lines = 16,
.data = &h4_panel_data,
.display_timing = &cm_t35_lcd_videomode,
.enable_gpio = -1,
.backlight_gpio = -1,
};
static struct platform_device cm_t35_lcd_device = {
.name = "panel-dpi",
.id = 0,
.dev.platform_data = &cm_t35_lcd_pdata,
}; };
static struct omap_dss_device *h4_dss_devices[] = { static struct platform_device *h4_devices[] __initdata = {
&h4_lcd_device, &h4_flash_device,
&cm_t35_lcd_device,
}; };
static struct omap_dss_board_info h4_dss_data = { static struct omap_dss_board_info h4_dss_data = {
.num_devices = ARRAY_SIZE(h4_dss_devices), .default_display_name = "lcd",
.devices = h4_dss_devices,
.default_device = &h4_lcd_device,
}; };
/* 2420 Sysboot setup (2430 is different) */ /* 2420 Sysboot setup (2430 is different) */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册