pinctrl: pistachio: Make it as an option
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 23 Jul 2021 02:25:40 +0000 (10:25 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 12 Aug 2021 14:01:49 +0000 (16:01 +0200)
So it will be avilable for generic MIPS kernel.

--

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
v3: Depend on OF as well
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
drivers/pinctrl/Kconfig

index f38f128..eb98171 100644 (file)
@@ -248,12 +248,15 @@ config PINCTRL_SX150X
          - 16 bits: sx1509q, sx1506q
 
 config PINCTRL_PISTACHIO
-       def_bool y if MACH_PISTACHIO
+       bool "IMG Pistachio SoC pinctrl driver"
+       depends on OF && (MIPS || COMPILE_TEST)
        depends on GPIOLIB
        select PINMUX
        select GENERIC_PINCONF
        select GPIOLIB_IRQCHIP
        select OF_GPIO
+    help
+         This support pinctrl and gpio driver for IMG Pistachio SoC.
 
 config PINCTRL_ST
        bool