Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: nomadik: enable PINCTRL_NOMADIK where needed

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>

+11 -1
+1
arch/arm/Kconfig
··· 947 947 select CPU_ARM926T 948 948 select CLKDEV_LOOKUP 949 949 select GENERIC_CLOCKEVENTS 950 + select PINCTRL 950 951 select MIGHT_HAVE_CACHE_L2X0 951 952 select ARCH_REQUIRE_GPIOLIB 952 953 help
+1
arch/arm/configs/nhk8815_defconfig
··· 97 97 CONFIG_I2C_CHARDEV=y 98 98 CONFIG_I2C_GPIO=y 99 99 CONFIG_DEBUG_GPIO=y 100 + CONFIG_PINCTRL_NOMADIK=y 100 101 # CONFIG_HWMON is not set 101 102 # CONFIG_VGA_CONSOLE is not set 102 103 CONFIG_RTC_CLASS=y
+1
arch/arm/mach-nomadik/Kconfig
··· 15 15 config I2C_BITBANG_8815NHK 16 16 tristate "Driver for bit-bang busses found on the 8815 NHK" 17 17 depends on I2C && MACH_NOMADIK_8815NHK 18 + depends on PINCTRL_NOMADIK 18 19 select I2C_ALGOBIT 19 20 default y 20 21
+7
arch/arm/plat-nomadik/include/plat/gpio-nomadik.h
··· 62 62 63 63 extern int nmk_gpio_set_slpm(int gpio, enum nmk_gpio_slpm mode); 64 64 extern int nmk_gpio_set_pull(int gpio, enum nmk_gpio_pull pull); 65 + #ifdef CONFIG_PINCTRL_NOMADIK 65 66 extern int nmk_gpio_set_mode(int gpio, int gpio_mode); 67 + #else 68 + static inline int nmk_gpio_set_mode(int gpio, int gpio_mode) 69 + { 70 + return -ENODEV; 71 + } 72 + #endif 66 73 extern int nmk_gpio_get_mode(int gpio); 67 74 68 75 extern void nmk_gpio_wakeups_suspend(void);
+1 -1
drivers/pinctrl/Kconfig
··· 66 66 67 67 config PINCTRL_NOMADIK 68 68 bool "Nomadik pin controller driver" 69 - depends on ARCH_U8500 69 + depends on ARCH_U8500 || ARCH_NOMADIK 70 70 select PINMUX 71 71 select PINCONF 72 72