diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-05-08 08:25:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-08 14:48:01 +0200 |
commit | 43d8f099272ef82bacdc8044791a051dafeb47b8 (patch) | |
tree | 1419117fcc79eb715f00b653197a3255397431ca /drivers | |
parent | b05574746915fe72802553a848a7537eaf11001d (diff) | |
download | barebox-43d8f099272ef82bacdc8044791a051dafeb47b8.tar.gz barebox-43d8f099272ef82bacdc8044791a051dafeb47b8.tar.xz |
drivers: add COMPILE_TEST prompts to some on-by-default drivers
Many clock source and GPIO controller drivers don't have a prompt, but
are instead default y if their respective platform is enabled. Maintain
this behavior, but add a prompt for when COMPILE_TEST is enabled, so
they can be included in test builds.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clocksource/Kconfig | 12 | ||||
-rw-r--r-- | drivers/gpio/Kconfig | 12 | ||||
-rw-r--r-- | drivers/pinctrl/Kconfig | 8 |
3 files changed, 19 insertions, 13 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 8805cda39e..0a9be0cf2a 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -75,16 +75,18 @@ config CLOCKSOURCE_ATMEL_PIT bool config CLOCKSOURCE_ARM_ARCHITECTED_TIMER - bool + bool "ARM architected timer clock source" if COMPILE_TEST default y depends on ARM && (CPU_64v8 || CPU_V7) config CLOCKSOURCE_ARM_GLOBAL_TIMER - bool - depends on ARM && CPU_V7 + bool "ARM global timer clock source" if COMPILE_TEST + depends on (ARM && CPU_V7) || COMPILE_TEST + config CLOCKSOURCE_IMX_GPT - def_bool y - depends on ARCH_HAS_IMX_GPT + bool "i.MX GPT clock source" if COMPILE_TEST + default y if ARCH_HAS_IMX_GPT + depends on ARCH_HAS_IMX_GPT || COMPILE_TEST config CLOCKSOURCE_DW_APB_TIMER bool "DW APB timer driver" diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 5f0ba7994e..261b6e6662 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -43,13 +43,16 @@ config GPIO_GENERIC_PLATFORM GPIO controllers config GPIO_IMX - def_bool ARCH_IMX + bool "i.MX GPIO controller" if COMPILE_TEST + default y if ARCH_IMX config GPIO_VF610 - def_bool ARCH_VF610 + bool "VF610 GPIO controller" if COMPILE_TEST + default y if ARCH_VF610 config GPIO_MXS - def_bool ARCH_MXS + bool "MXS GPIO controller" if COMPILE_TEST + default y if ARCH_MXS config GPIO_JZ4740 bool "GPIO support for Ingenic SoCs" @@ -76,7 +79,8 @@ config GPIO_MPC8XXX MPC512x/831x/834x/837x/8572/8610/QorIQ GPIOs. config GPIO_OMAP - def_bool ARCH_OMAP + bool "OMAP GPIO controller" if COMPILE_TEST + default y if ARCH_OMAP config GPIO_ORION bool "GPIO support for Marvell Orion/MVEBU SoCs" diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 40223fcc52..589b0e768f 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -73,20 +73,20 @@ config PINCTRL_SINGLE bool "pinctrl single" config PINCTRL_TEGRA20 - bool + bool "Tegra20 pinctrl support" if COMPILE_TEST default y if ARCH_TEGRA_2x_SOC help The pinmux controller found on the Tegra 20 line of SoCs. config PINCTRL_TEGRA30 - bool + bool "Tegra30 pinctrl support" if COMPILE_TEST default y if ARCH_TEGRA_3x_SOC default y if ARCH_TEGRA_124_SOC help The pinmux controller found on the Tegra 30+ line of SoCs. config PINCTRL_TEGRA_XUSB - bool + bool "Tegra SerDes pinmux support" if COMPILE_TEST default y if ARCH_TEGRA_124_SOC select GENERIC_PHY help @@ -102,7 +102,7 @@ config PINCTRL_VF610 Pinmux controller found on Vybrid VF610 family of SoCs config PINCTRL_STM32 - bool + bool "STM32 pinctrl support" if COMPILE_TEST default y if ARCH_STM32MP help Pinmux and GPIO controller found on STM32 family |