ARM: OMAP3EVM: Marking omap3_evm_display_init() with CONFIG_BROKEN
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 13 Jun 2013 10:53:58 +0000 (16:23 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 18 Jun 2013 10:10:53 +0000 (03:10 -0700)
On 37xx EVM non-dt boot fails with current mainline,
because of broken GPIO numbering in the board file
that uses hardcoded GPIOs.

So marking omap3_evm_display_init() with CONFIG_BROKEN
for now as suggested by Tony as per the below link:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg90399.html

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Tested-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3evm.c

index f76d0de7b406bb0c1cb170ecb9b1982c2c4f63d2..8c026269bacaa379ec583dbeb81bd6f3ef9568b9 100644 (file)
@@ -174,6 +174,7 @@ static struct panel_sharp_ls037v7dw01_data omap3_evm_lcd_data = {
        .ud_gpio = OMAP3EVM_LCD_PANEL_UD,
 };
 
+#ifdef CONFIG_BROKEN
 static void __init omap3_evm_display_init(void)
 {
        int r;
@@ -193,6 +194,7 @@ static void __init omap3_evm_display_init(void)
        else
                gpio_set_value_cansleep(OMAP3EVM_LCD_PANEL_BKLIGHT_GPIO, 1);
 }
+#endif
 
 static struct omap_dss_device omap3_evm_lcd_device = {
        .name                   = "lcd",
@@ -715,7 +717,9 @@ static void __init omap3_evm_init(void)
 
        omap_ads7846_init(1, OMAP3_EVM_TS_GPIO, 310, NULL);
        omap3evm_init_smsc911x();
+#ifdef CONFIG_BROKEN
        omap3_evm_display_init();
+#endif
        omap3_evm_wl12xx_init();
        omap_twl4030_audio_init("omap3evm", NULL);
 }