rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | if ARCH_MEDIATEK || COMPILE_TEST |
| 2 | |
| 3 | config EINT_MTK |
| 4 | bool "MediaTek External Interrupt Support" |
| 5 | depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST |
| 6 | select GPIOLIB |
| 7 | select IRQ_DOMAIN |
| 8 | |
| 9 | config PINCTRL_MTK |
| 10 | bool |
| 11 | depends on OF |
| 12 | select PINMUX |
| 13 | select GENERIC_PINCONF |
| 14 | select GPIOLIB |
| 15 | select OF_GPIO |
| 16 | |
| 17 | config PINCTRL_MTK_PARIS |
| 18 | bool "MediaTek Paris Core that implements vendor binding" |
| 19 | depends on OF |
| 20 | select PINMUX |
| 21 | select GENERIC_PINCONF |
| 22 | select GPIOLIB |
| 23 | select EINT_MTK |
| 24 | select OF_GPIO |
| 25 | |
| 26 | # For ARMv7 SoCs |
| 27 | config PINCTRL_MT2701 |
| 28 | bool "Mediatek MT2701 pin control" |
| 29 | depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST |
| 30 | depends on OF |
| 31 | default MACH_MT2701 |
| 32 | select PINCTRL_MTK |
| 33 | |
| 34 | config PINCTRL_MT8135 |
| 35 | bool "Mediatek MT8135 pin control" |
| 36 | depends on MACH_MT8135 || COMPILE_TEST |
| 37 | depends on OF |
| 38 | default MACH_MT8135 |
| 39 | select PINCTRL_MTK |
| 40 | |
| 41 | config PINCTRL_MT8127 |
| 42 | bool "Mediatek MT8127 pin control" |
| 43 | depends on MACH_MT8127 || COMPILE_TEST |
| 44 | depends on OF |
| 45 | default MACH_MT8127 |
| 46 | select PINCTRL_MTK |
| 47 | |
| 48 | # For ARMv8 SoCs |
| 49 | config PINCTRL_MT2731 |
| 50 | bool "Mediatek MT2731 pin control" |
| 51 | depends on OF |
| 52 | depends on MACH_MT2731 || COMPILE_TEST |
| 53 | default MACH_MT2731 |
| 54 | select PINCTRL_MTK_PARIS |
| 55 | |
| 56 | config PINCTRL_MT8173 |
| 57 | bool "Mediatek MT8173 pin control" |
| 58 | depends on OF |
| 59 | depends on ARM64 || COMPILE_TEST |
| 60 | default ARM64 && ARCH_MEDIATEK |
| 61 | select PINCTRL_MTK |
| 62 | |
| 63 | config PINCTRL_MT8183 |
| 64 | bool "Mediatek MT8183 pin control" |
| 65 | depends on OF |
| 66 | depends on ARM64 || COMPILE_TEST |
| 67 | default ARM64 && ARCH_MEDIATEK |
| 68 | select PINCTRL_MTK |
| 69 | |
| 70 | # For PMIC |
| 71 | config PINCTRL_MT6397 |
| 72 | bool "Mediatek MT6397 pin control" |
| 73 | depends on MFD_MT6397 || COMPILE_TEST |
| 74 | depends on OF |
| 75 | default MFD_MT6397 |
| 76 | select PINCTRL_MTK |
| 77 | |
| 78 | # For pintcrl command debug |
| 79 | config PINCTRL_MTK_DEBUG |
| 80 | bool "Mediatek pin control common debug" |
| 81 | depends on OF |
| 82 | default ARM64 && ARCH_MEDIATEK |
| 83 | select PINCTRL_MTK |
| 84 | help |
| 85 | Say yes here to enable support for MediaTek pinctrl debug command. |
| 86 | It can provide gpio status debug shell command. |
| 87 | We also can use these shell command to change gpio status. |
| 88 | |
| 89 | endif |