# SPDX-License-Identifier: GPL-2.0-only
-if ARCH_U8500
+if (ARCH_U8500 || COMPILE_TEST)
 
 config PINCTRL_ABX500
        bool "ST-Ericsson ABx500 family Mixed Signal Circuit gpio functions"
-       depends on AB8500_CORE
+       depends on AB8500_CORE || COMPILE_TEST
        select GENERIC_PINCONF
        help
          Select this to enable the ABx500 family IC GPIO driver
 
 config PINCTRL_AB8500
        bool "AB8500 pin controller driver"
-       depends on PINCTRL_ABX500 && ARCH_U8500
+       depends on PINCTRL_ABX500 && (ARCH_U8500 || COMPILE_TEST)
 
 config PINCTRL_AB8505
        bool "AB8505 pin controller driver"
-       depends on PINCTRL_ABX500 && ARCH_U8500
+       depends on PINCTRL_ABX500 && (ARCH_U8500 || COMPILE_TEST)
 
 endif