Skip to content

Commit 7e367c1

Browse files
committed
ARM: OMAP2+: Fix LCD panel backlight regression for LDP legacy booting
Looks like the LCD panel on LDP has been broken quite a while, and recently got fixed by commit 0b2aa8b (gpio: twl4030: Fix regression for twl gpio output). However, there's still an issue left where the panel backlight does not come on if the LCD drivers are built into the kernel. Fix the issue by registering the DPI LCD panel only after the twl4030 GPIO has probed. Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> [tony@atomide.com: updated per Tomi's comments] Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 413541d commit 7e367c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/arm/mach-omap2/board-ldp.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,18 @@ static void __init ldp_display_init(void)
242242

243243
static int ldp_twl_gpio_setup(struct device *dev, unsigned gpio, unsigned ngpio)
244244
{
245+
int res;
246+
245247
/* LCD enable GPIO */
246248
ldp_lcd_pdata.enable_gpio = gpio + 7;
247249

248250
/* Backlight enable GPIO */
249251
ldp_lcd_pdata.backlight_gpio = gpio + 15;
250252

253+
res = platform_device_register(&ldp_lcd_device);
254+
if (res)
255+
pr_err("Unable to register LCD: %d\n", res);
256+
251257
return 0;
252258
}
253259

@@ -346,7 +352,6 @@ static struct omap2_hsmmc_info mmc[] __initdata = {
346352

347353
static struct platform_device *ldp_devices[] __initdata = {
348354
&ldp_gpio_keys_device,
349-
&ldp_lcd_device,
350355
};
351356

352357
#ifdef CONFIG_OMAP_MUX

0 commit comments

Comments
 (0)