diff options
author | Yingjoe Chen <yingjoe.chen@mediatek.com> | 2015-03-13 10:40:52 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-18 08:00:16 -0400 |
commit | 4a8ade1f6bb19208f0457afcf07dcaf2fb031f57 (patch) | |
tree | 9507c33fff15e24532f73a668cda21e774016228 | |
parent | 61a3557671006434141a6bce24c32bab2f1c9a35 (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/Kconfig | 11 |
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 @@ | |||
1 | if ARCH_MEDIATEK | 1 | if ARCH_MEDIATEK || COMPILE_TEST |
2 | 2 | ||
3 | config PINCTRL_MTK_COMMON | 3 | config 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 | ||
10 | config PINCTRL_MT8135 | 11 | config 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 | ||
14 | config PINCTRL_MT8173 | 17 | config 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 | ||
18 | endif | 23 | endif |