Signed-off-by: Bryan Wu <bryan.wu@xxxxxxxxxxxxx> --- arch/arm/mach-omap2/board-3430sdp.c | 18 +++++++++++++++--- arch/arm/mach-omap2/board-omap3evm.c | 20 +++++++++++++++++--- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 1ca0156..4c7eaf0 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c @@ -261,14 +261,25 @@ static void sdp3430_panel_disable_tv(struct omap_dss_device *dssdev) { } +static struct panel_generic_dpi_data lcd_panel = { + .name = "sharp_ls", + .platform_enable = sdp3430_panel_enable_lcd, + .platform_disable = sdp3430_panel_disable_lcd, +}; static struct omap_dss_device sdp3430_lcd_device = { .name = "lcd", - .driver_name = "sharp_ls_panel", .type = OMAP_DISPLAY_TYPE_DPI, + .driver_name = "generic_dpi_panel", + .data = &lcd_panel, .phy.dpi.data_lines = 16, - .platform_enable = sdp3430_panel_enable_lcd, - .platform_disable = sdp3430_panel_disable_lcd, +}; + +static struct platform_device sdp3430_lcd_backlight_device = { + .name = "sharp-ls-bl", + .dev = { + .platform_data = &sdp3430_lcd_device, + }, }; static struct panel_generic_dpi_data dvi_panel = { @@ -322,6 +333,7 @@ static struct regulator_consumer_supply sdp3430_vdda_dac_supply = { static struct platform_device *sdp3430_devices[] __initdata = { &sdp3430_dss_device, + &sdp3430_lcd_backlight_device, }; static struct omap_board_config_kernel sdp3430_config[] __initdata = { diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 369cbdc..4c507de 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -255,15 +255,28 @@ static void omap3_evm_disable_lcd(struct omap_dss_device *dssdev) lcd_enabled = 0; } +static struct panel_generic_dpi_data lcd_panel = { + .name = "sharp_ls", + .platform_enable = omap3_evm_enable_lcd, + .platform_disable = omap3_evm_disable_lcd, +}; + static struct omap_dss_device omap3_evm_lcd_device = { .name = "lcd", - .driver_name = "sharp_ls_panel", .type = OMAP_DISPLAY_TYPE_DPI, + .driver_name = "generic_dpi_panel", + .data = &lcd_panel, .phy.dpi.data_lines = 18, - .platform_enable = omap3_evm_enable_lcd, - .platform_disable = omap3_evm_disable_lcd, }; +static struct platform_device omap3_evm_lcd_backlight_device = { + .name = "sharp-ls-bl", + .dev = { + .platform_data = &omap3_evm_lcd_device, + }, +}; + + static int omap3_evm_enable_tv(struct omap_dss_device *dssdev) { return 0; @@ -636,6 +649,7 @@ static void __init omap3_evm_init_irq(void) static struct platform_device *omap3_evm_devices[] __initdata = { &omap3_evm_dss_device, + &omap3_evm_lcd_backlight_device, }; static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html