]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
ARM: nomadik: enable PINCTRL_NOMADIK where needed
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 May 2012 11:24:34 +0000 (11:24 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 15 May 2012 12:42:57 +0000 (14:42 +0200)
The nomadik gpio code has been converted to pinctrl, but the nomadik platform
still expects the old code to be present. Change it to use the new one instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/Kconfig
arch/arm/configs/nhk8815_defconfig
arch/arm/mach-nomadik/Kconfig
arch/arm/plat-nomadik/include/plat/gpio-nomadik.h
drivers/pinctrl/Kconfig

index c67494fc05a77404fc63f61bc2b128d821bb7d46..e6da552695d69ae042d29c65af239739ae1ae7af 100644 (file)
@@ -947,6 +947,7 @@ config ARCH_NOMADIK
        select CPU_ARM926T
        select CLKDEV_LOOKUP
        select GENERIC_CLOCKEVENTS
+       select PINCTRL
        select MIGHT_HAVE_CACHE_L2X0
        select ARCH_REQUIRE_GPIOLIB
        help
index 37207d1bf44b664c3a679bf14f906e38f4756bb0..bf123c5384d4b345c3e0ddad9d8803c880410d59 100644 (file)
@@ -97,6 +97,7 @@ CONFIG_I2C=y
 CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_GPIO=y
 CONFIG_DEBUG_GPIO=y
+CONFIG_PINCTRL_NOMADIK=y
 # CONFIG_HWMON is not set
 # CONFIG_VGA_CONSOLE is not set
 CONFIG_RTC_CLASS=y
index 3c5e0f522e9ce507f6ceb95fcd605ef3bd734334..365879b47c0e3218a32f42b4acc8a46b6a532ae2 100644 (file)
@@ -15,6 +15,7 @@ config NOMADIK_8815
 config I2C_BITBANG_8815NHK
        tristate "Driver for bit-bang busses found on the 8815 NHK"
        depends on I2C && MACH_NOMADIK_8815NHK
+       depends on PINCTRL_NOMADIK
        select I2C_ALGOBIT
        default y
 
index 3e8b7f16fb7819716f62a6442a99b7ad7752ab03..826de74bfdd127a8ca5b763aa79336ccfda75dd8 100644 (file)
@@ -62,7 +62,14 @@ enum nmk_gpio_slpm {
 
 extern int nmk_gpio_set_slpm(int gpio, enum nmk_gpio_slpm mode);
 extern int nmk_gpio_set_pull(int gpio, enum nmk_gpio_pull pull);
+#ifdef CONFIG_PINCTRL_NOMADIK
 extern int nmk_gpio_set_mode(int gpio, int gpio_mode);
+#else
+static inline int nmk_gpio_set_mode(int gpio, int gpio_mode)
+{
+       return -ENODEV;
+}
+#endif
 extern int nmk_gpio_get_mode(int gpio);
 
 extern void nmk_gpio_wakeups_suspend(void);
index cc01c758bbfc2d27755c5b16fd39541cc2da15c7..ce2e756b19ad4e0deaeef67e36a0ef4f13efd3b2 100644 (file)
@@ -66,7 +66,7 @@ config PINCTRL_IMX28
 
 config PINCTRL_NOMADIK
        bool "Nomadik pin controller driver"
-       depends on ARCH_U8500
+       depends on ARCH_U8500 || ARCH_NOMADIK
        select PINMUX
        select PINCONF