Commit 09bc6ff2 authored by Tomi Valkeinen's avatar Tomi Valkeinen

ARM: OMAP: 2430SDP: use new display drivers

Use new display drivers for 2430SDP 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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
parent c78fb21d
...@@ -100,39 +100,52 @@ static struct platform_device sdp2430_flash_device = { ...@@ -100,39 +100,52 @@ static struct platform_device sdp2430_flash_device = {
.resource = &sdp2430_flash_resource, .resource = &sdp2430_flash_resource,
}; };
static struct platform_device *sdp2430_devices[] __initdata = {
&sdp2430_flash_device,
};
/* LCD */ /* LCD */
#define SDP2430_LCD_PANEL_BACKLIGHT_GPIO 91 #define SDP2430_LCD_PANEL_BACKLIGHT_GPIO 91
#define SDP2430_LCD_PANEL_ENABLE_GPIO 154 #define SDP2430_LCD_PANEL_ENABLE_GPIO 154
static struct panel_generic_dpi_data sdp2430_panel_data = { static const struct display_timing sdp2430_lcd_videomode = {
.name = "nec_nl2432dr22-11b", .pixelclock = { 0, 5400000, 0 },
.num_gpios = 2,
.gpios = { .hactive = { 0, 240, 0 },
SDP2430_LCD_PANEL_ENABLE_GPIO, .hfront_porch = { 0, 3, 0 },
SDP2430_LCD_PANEL_BACKLIGHT_GPIO, .hback_porch = { 0, 39, 0 },
}, .hsync_len = { 0, 3, 0 },
.vactive = { 0, 320, 0 },
.vfront_porch = { 0, 2, 0 },
.vback_porch = { 0, 7, 0 },
.vsync_len = { 0, 1, 0 },
.flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
}; };
static struct omap_dss_device sdp2430_lcd_device = { static struct panel_dpi_platform_data sdp2430_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 = &sdp2430_panel_data,
.display_timing = &sdp2430_lcd_videomode,
.enable_gpio = SDP2430_LCD_PANEL_ENABLE_GPIO,
.backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO,
}; };
static struct omap_dss_device *sdp2430_dss_devices[] = { static struct platform_device sdp2430_lcd_device = {
&sdp2430_lcd_device, .name = "panel-dpi",
.id = 0,
.dev.platform_data = &sdp2430_lcd_pdata,
}; };
static struct omap_dss_board_info sdp2430_dss_data = { static struct omap_dss_board_info sdp2430_dss_data = {
.num_devices = ARRAY_SIZE(sdp2430_dss_devices), .default_display_name = "lcd",
.devices = sdp2430_dss_devices, };
.default_device = &sdp2430_lcd_device,
static struct platform_device *sdp2430_devices[] __initdata = {
&sdp2430_flash_device,
&sdp2430_lcd_device,
}; };
#if IS_ENABLED(CONFIG_SMC91X) #if IS_ENABLED(CONFIG_SMC91X)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment