2015-03-13 22:40:52 +08:00
|
|
|
if ARCH_MEDIATEK || COMPILE_TEST
|
2015-01-21 13:28:15 +08:00
|
|
|
|
|
|
|
config PINCTRL_MTK_COMMON
|
|
|
|
bool
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-01-21 13:28:15 +08:00
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GPIOLIB
|
|
|
|
select OF_GPIO
|
|
|
|
|
2015-03-13 22:40:52 +08:00
|
|
|
# For ARMv7 SoCs
|
2016-01-27 09:24:42 +08:00
|
|
|
config PINCTRL_MT2701
|
|
|
|
bool "Mediatek MT2701 pin control" if COMPILE_TEST && !MACH_MT2701
|
|
|
|
depends on OF
|
|
|
|
default MACH_MT2701
|
|
|
|
select PINCTRL_MTK_COMMON
|
|
|
|
|
2015-01-21 13:28:15 +08:00
|
|
|
config PINCTRL_MT8135
|
2015-03-13 22:40:52 +08:00
|
|
|
bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-03-13 22:40:52 +08:00
|
|
|
default MACH_MT8135
|
2015-01-21 13:28:15 +08:00
|
|
|
select PINCTRL_MTK_COMMON
|
|
|
|
|
2015-05-19 11:01:32 +08:00
|
|
|
config PINCTRL_MT8127
|
|
|
|
bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127
|
|
|
|
depends on OF
|
|
|
|
default MACH_MT8127
|
|
|
|
select PINCTRL_MTK_COMMON
|
|
|
|
|
2015-03-13 22:40:52 +08:00
|
|
|
# For ARMv8 SoCs
|
2015-01-27 15:13:55 +08:00
|
|
|
config PINCTRL_MT8173
|
2015-03-13 22:40:52 +08:00
|
|
|
bool "Mediatek MT8173 pin control"
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-03-13 22:40:52 +08:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2015-01-27 15:13:55 +08:00
|
|
|
select PINCTRL_MTK_COMMON
|
|
|
|
|
2015-05-19 14:11:17 +08:00
|
|
|
# For PMIC
|
|
|
|
config PINCTRL_MT6397
|
|
|
|
bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397
|
2015-05-20 15:11:23 +08:00
|
|
|
depends on OF
|
2015-05-19 14:11:17 +08:00
|
|
|
default MFD_MT6397
|
|
|
|
select PINCTRL_MTK_COMMON
|
|
|
|
|
2015-01-21 13:28:15 +08:00
|
|
|
endif
|