ARM: imx51: build in pinctrl support
authorShawn Guo <shawn.guo@linaro.org>
Mon, 13 Aug 2012 11:55:37 +0000 (19:55 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 11 Sep 2012 08:26:58 +0000 (16:26 +0800)
With the imx51 DT board having pinctrl setup define in device tree,
it's time to remove dummy pinctrl state and build in the real imx51
pinctrl support.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/imx51-dt.c

index 374fcc256d431ca5167becccf621246684ce11c1..7ca5fe45945f2afafb900cd67a808364b72f3016 100644 (file)
@@ -101,6 +101,8 @@ config      SOC_IMX51
        select SOC_IMX5
        select ARCH_MX5
        select ARCH_MX51
+       select PINCTRL
+       select PINCTRL_IMX51
 
 if ARCH_IMX_V4_V5
 
index 8604165b2a57dd1bf0de786bc4a7932fc62dd232..306cddca6c7c330f4844b937d1b42ac7418c4d6e 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/irq.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
-#include <linux/pinctrl/machine.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/time.h>
 #include <mach/common.h>
@@ -55,8 +54,6 @@ static void __init imx51_dt_init(void)
        const struct of_device_id *of_id;
        void (*func)(void);
 
-       pinctrl_provide_dummies();
-
        node = of_find_matching_node(NULL, imx51_iomuxc_of_match);
        if (node) {
                of_id = of_match_node(imx51_iomuxc_of_match, node);