diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index b19e84747f31..3d39ff7a5594 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -524,6 +524,7 @@ config GPIO_ZYNQ config GPIO_ZX bool "ZTE ZX GPIO support" + depends on ARCH_ZX || COMPILE_TEST select GPIOLIB_IRQCHIP help Say yes here to support the GPIO device on ZTE ZX SoCs.