From 0da1866a8fdd4d4bc4837ef2af281dbe010ae16b Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 16 Mar 2026 19:24:19 -0600 Subject: core: Rework REGMAP symbols implementation As exposed by "make randconfig", we have an issue with the dependencies for REGMAP (and xPL variants). As this is a library function, it should always be selected and not depended on by other functionality. This is largely done correctly today, so just correct the few outliers. Acked-by: Anshul Dalal Signed-off-by: Tom Rini --- drivers/core/Kconfig | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'drivers/core') diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index c9253099e6e..5419bf65b5d 100644 --- a/drivers/core/Kconfig +++ b/drivers/core/Kconfig @@ -195,7 +195,7 @@ config DM_DMA the physical address space. config REGMAP - bool "Support register maps" + bool depends on DM select DEVRES help @@ -206,7 +206,7 @@ config REGMAP direct memory access. config SPL_REGMAP - bool "Support register maps in SPL" + bool depends on SPL_DM help Hardware peripherals tend to have one or more sets of registers @@ -216,7 +216,7 @@ config SPL_REGMAP direct memory access. config TPL_REGMAP - bool "Support register maps in TPL" + bool depends on TPL_DM help Hardware peripherals tend to have one or more sets of registers @@ -226,7 +226,7 @@ config TPL_REGMAP direct memory access. config VPL_REGMAP - bool "Support register maps in VPL" + bool depends on VPL_DM help Hardware peripherals tend to have one or more sets of registers @@ -237,7 +237,7 @@ config VPL_REGMAP config SYSCON bool "Support system controllers" - depends on REGMAP + select REGMAP help Many SoCs have a number of system controllers which are dealt with as a group by a single driver. Some common functionality is provided @@ -246,7 +246,8 @@ config SYSCON config SPL_SYSCON bool "Support system controllers in SPL" - depends on SPL_REGMAP + depends on SPL_DM + select SPL_REGMAP help Many SoCs have a number of system controllers which are dealt with as a group by a single driver. Some common functionality is provided @@ -255,7 +256,8 @@ config SPL_SYSCON config TPL_SYSCON bool "Support system controllers in TPL" - depends on TPL_REGMAP + depends on TPL_DM + select TPL_REGMAP help Many SoCs have a number of system controllers which are dealt with as a group by a single driver. Some common functionality is provided @@ -264,7 +266,8 @@ config TPL_SYSCON config VPL_SYSCON bool "Support system controllers in VPL" - depends on VPL_REGMAP + depends on VPL_DM + select VPL_REGMAP help Many SoCs have a number of system controllers which are dealt with as a group by a single driver. Some common functionality is provided -- cgit v1.2.3