aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYingjoe Chen <yingjoe.chen@mediatek.com>2015-03-13 10:40:52 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-03-18 08:00:16 -0400
commit4a8ade1f6bb19208f0457afcf07dcaf2fb031f57 (patch)
tree9507c33fff15e24532f73a668cda21e774016228
parent61a3557671006434141a6bce24c32bab2f1c9a35 (diff)
pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
ARM64 maintainer doesn't want to add MACH_* for each SoC. Adjust mt8173 pinctrl kconfig entry so user can manually select it. Also make PINCTRL_MT8135 selectable when COMPILE_TEST is enabled. Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/mediatek/Kconfig11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig
index 49b8649b9ae9..5983cf5b2c46 100644
--- a/drivers/pinctrl/mediatek/Kconfig
+++ b/drivers/pinctrl/mediatek/Kconfig
@@ -1,4 +1,4 @@
1if ARCH_MEDIATEK 1if ARCH_MEDIATEK || COMPILE_TEST
2 2
3config PINCTRL_MTK_COMMON 3config PINCTRL_MTK_COMMON
4 bool 4 bool
@@ -7,12 +7,17 @@ config PINCTRL_MTK_COMMON
7 select GPIOLIB 7 select GPIOLIB
8 select OF_GPIO 8 select OF_GPIO
9 9
10# For ARMv7 SoCs
10config PINCTRL_MT8135 11config PINCTRL_MT8135
11 def_bool MACH_MT8135 12 bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
13 default MACH_MT8135
12 select PINCTRL_MTK_COMMON 14 select PINCTRL_MTK_COMMON
13 15
16# For ARMv8 SoCs
14config PINCTRL_MT8173 17config PINCTRL_MT8173
15 def_bool MACH_MT8173 18 bool "Mediatek MT8173 pin control"
19 depends on ARM64 || COMPILE_TEST
20 default ARM64 && ARCH_MEDIATEK
16 select PINCTRL_MTK_COMMON 21 select PINCTRL_MTK_COMMON
17 22
18endif 23endif