summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/zte/Kconfig
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2017-04-24 15:01:13 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-05-22 10:39:23 +0200
commitcbff0c4d27f4f4b7dc11d137d51ac7b139a94d50 (patch)
treeeed13ede492b86117e39d0abc0999750fae4f8ea /drivers/pinctrl/zte/Kconfig
parentdt-bindings: add bindings doc for ZTE pinctrl (diff)
downloadlinux-cbff0c4d27f4f4b7dc11d137d51ac7b139a94d50.tar.xz
linux-cbff0c4d27f4f4b7dc11d137d51ac7b139a94d50.zip
pinctrl: add ZTE ZX pinctrl driver support
The pin controller on ZTE ZX platforms is kinda of hybrid. It consists of a main controller and an auxiliary one. For example, on ZX296718 SoC, the main controller is TOP_PMM and the auxiliary one is AON_IOCFG. Both controllers work together to control pin multiplexing and configuration. For most of pins, the pinmux function is controlled by main controller only, and this type of pins are meant by term 'TOP pins'. For other pins, the pinmux is controlled by both main and auxiliary controllers, as the available multiplexing functions for the pin spread in both controllers. This type of pins are called 'AON pins'. Though pinmux implementation is quite different, pinconf is same for both types of pins. Both are controlled by auxiliary controller, i.e. AON_IOCFG on ZX296718. The patch adds the ZTE ZX core pinctrl driver to support this hybrid pin controller as well as ZX296718 SoC specific pin data. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/zte/Kconfig')
-rw-r--r--drivers/pinctrl/zte/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pinctrl/zte/Kconfig b/drivers/pinctrl/zte/Kconfig
new file mode 100644
index 000000000000..0d97352a24ec
--- /dev/null
+++ b/drivers/pinctrl/zte/Kconfig
@@ -0,0 +1,13 @@
+config PINCTRL_ZX
+ bool
+ select PINMUX
+ select GENERIC_PINCONF
+ select GENERIC_PINCTRL_GROUPS
+ select GENERIC_PINMUX_FUNCTIONS
+
+config PINCTRL_ZX296718
+ bool "ZTE ZX296718 pinctrl driver"
+ depends on OF && ARCH_ZX
+ select PINCTRL_ZX
+ help
+ Say Y here to enable the ZX296718 pinctrl driver