omap: mux: Mux Apollon LCD power in board-apollon.c
authorTony Lindgren <tony@atomide.com>
Mon, 5 Jul 2010 13:31:39 +0000 (16:31 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 5 Jul 2010 13:31:39 +0000 (16:31 +0300)
Use the new mux function for that.

Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-apollon.c
drivers/video/omap/lcd_apollon.c

index b86a8790dd98979007865edb1a7541d73394fa6f..bc67026088f60a542a6f183747079af7e860f3c8 100644 (file)
@@ -332,6 +332,9 @@ static void __init omap_apollon_init(void)
        /* REVISIT: where's the correct place */
        omap_cfg_reg(W19_24XX_SYS_NIRQ);
 
+       /* LCD PWR_EN */
+       omap_mux_init_signal("mcbsp2_dr.gpio_11", OMAP_PULL_ENA | OMAP_PULL_UP);
+
        /* Use Interal loop-back in MMC/SDIO Module Input Clock selection */
        v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
        v |= (1 << 24);
index 2be94eb3bbf518319bbd952e220af96c7d6c49e4..10459d8bd9a01268f99321aee171d8be0abf4294 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/platform_device.h>
 
 #include <mach/gpio.h>
-#include <plat/mux.h>
 
 #include "omapfb.h"
 
@@ -34,8 +33,6 @@
 static int apollon_panel_init(struct lcd_panel *panel,
                                struct omapfb_device *fbdev)
 {
-       /* configure LCD PWR_EN */
-       omap_cfg_reg(M21_242X_GPIO11);
        return 0;
 }