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 <anshuld@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2026-03-16 19:24:19 -06:00
parent bdbe24b2a2
commit 0da1866a8f
13 changed files with 18 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ config TARGET_EN7523
bool "Airoha EN7523 SoC" bool "Airoha EN7523 SoC"
select CPU_V7A select CPU_V7A
select ARMV7_SET_CORTEX_SMPEN select ARMV7_SET_CORTEX_SMPEN
select REGMAP
help help
The Airoha EN7523 family (en7523/en7529/en7562) is an ARM-based The Airoha EN7523 family (en7523/en7529/en7562) is an ARM-based
SoCs with a dual-core CPU. It comes with Wi-Fi 5/6 support and SoCs with a dual-core CPU. It comes with Wi-Fi 5/6 support and

View File

@@ -18,6 +18,7 @@ config ASPEED_AST2500
bool "Support Aspeed AST2500 SoC" bool "Support Aspeed AST2500 SoC"
select CPU_ARM1176 select CPU_ARM1176
select DM_RESET select DM_RESET
select REGMAP
help help
The Aspeed AST2500 is a ARM-based SoC with arm1176 CPU. The Aspeed AST2500 is a ARM-based SoC with arm1176 CPU.
It is used as Board Management Controller on many server boards, It is used as Board Management Controller on many server boards,

View File

@@ -73,6 +73,7 @@ config TARGET_KMTEPR2
config TARGET_GAZERBEAM config TARGET_GAZERBEAM
bool "Support gazerbeam" bool "Support gazerbeam"
select ARCH_MPC8308 select ARCH_MPC8308
select REGMAP
select SYS_FSL_ERRATUM_ESDHC111 select SYS_FSL_ERRATUM_ESDHC111
imply ENV_IS_IN_FLASH imply ENV_IS_IN_FLASH
help help

View File

@@ -149,7 +149,6 @@ CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX8M=y CONFIG_PINCTRL_IMX8M=y
CONFIG_POWER_DOMAIN=y CONFIG_POWER_DOMAIN=y
CONFIG_PROT_TCP_SACK=y CONFIG_PROT_TCP_SACK=y
CONFIG_REGMAP=y
CONFIG_RGMII=y CONFIG_RGMII=y
CONFIG_RTC_M41T62=y CONFIG_RTC_M41T62=y
CONFIG_SF_DEFAULT_SPEED=50000000 CONFIG_SF_DEFAULT_SPEED=50000000

View File

@@ -92,7 +92,6 @@ CONFIG_ETHPRIME="eth0"
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SYS_RX_ETH_BUFFER=8 CONFIG_SYS_RX_ETH_BUFFER=8
CONFIG_SPL_DM=y CONFIG_SPL_DM=y
CONFIG_REGMAP=y
CONFIG_SYSCON=y CONFIG_SYSCON=y
CONFIG_SPL_OF_TRANSLATE=y CONFIG_SPL_OF_TRANSLATE=y
CONFIG_CLK=y CONFIG_CLK=y

View File

@@ -28,7 +28,6 @@ CONFIG_ENV_SECT_SIZE_AUTO=y
CONFIG_ENV_REDUNDANT=y CONFIG_ENV_REDUNDANT=y
CONFIG_ENV_RELOC_GD_ENV_ADDR=y CONFIG_ENV_RELOC_GD_ENV_ADDR=y
CONFIG_REGMAP=y
CONFIG_SYSCON=y CONFIG_SYSCON=y
CONFIG_DM_GPIO=y CONFIG_DM_GPIO=y

View File

@@ -117,7 +117,6 @@ CONFIG_TFTP_TSIZE=y
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_DM=y CONFIG_SPL_DM=y
CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_REGMAP=y
CONFIG_SYSCON=y CONFIG_SYSCON=y
CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_LIMIT=y
CONFIG_BOOTCOUNT_ENV=y CONFIG_BOOTCOUNT_ENV=y

View File

@@ -115,7 +115,6 @@ CONFIG_TFTP_TSIZE=y
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_DM=y CONFIG_SPL_DM=y
CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_REGMAP=y
CONFIG_SYSCON=y CONFIG_SYSCON=y
CONFIG_ADC=y CONFIG_ADC=y
CONFIG_ADC_IMX93=y CONFIG_ADC_IMX93=y

View File

@@ -6,7 +6,6 @@ CONFIG_CMD_TEMPERATURE=y
CONFIG_DM_THERMAL=y CONFIG_DM_THERMAL=y
CONFIG_PHY_ANEG_TIMEOUT=20000 CONFIG_PHY_ANEG_TIMEOUT=20000
CONFIG_RCAR_GEN3_THERMAL=y CONFIG_RCAR_GEN3_THERMAL=y
CONFIG_REGMAP=y
CONFIG_REMAKE_ELF=y CONFIG_REMAKE_ELF=y
CONFIG_RENESAS_RPC_SPI=y CONFIG_RENESAS_RPC_SPI=y
CONFIG_SUPPORT_RAW_INITRD=y CONFIG_SUPPORT_RAW_INITRD=y

View File

@@ -2,6 +2,5 @@ config CLK_MPFS
bool "Clock support for Microchip PolarFire SoC" bool "Clock support for Microchip PolarFire SoC"
depends on CLK && CLK_CCF depends on CLK && CLK_CCF
depends on SYSCON depends on SYSCON
depends on REGMAP
help help
This enables support clock driver for Microchip PolarFire SoC platform. This enables support clock driver for Microchip PolarFire SoC platform.

View File

@@ -195,7 +195,7 @@ config DM_DMA
the physical address space. the physical address space.
config REGMAP config REGMAP
bool "Support register maps" bool
depends on DM depends on DM
select DEVRES select DEVRES
help help
@@ -206,7 +206,7 @@ config REGMAP
direct memory access. direct memory access.
config SPL_REGMAP config SPL_REGMAP
bool "Support register maps in SPL" bool
depends on SPL_DM depends on SPL_DM
help help
Hardware peripherals tend to have one or more sets of registers Hardware peripherals tend to have one or more sets of registers
@@ -216,7 +216,7 @@ config SPL_REGMAP
direct memory access. direct memory access.
config TPL_REGMAP config TPL_REGMAP
bool "Support register maps in TPL" bool
depends on TPL_DM depends on TPL_DM
help help
Hardware peripherals tend to have one or more sets of registers Hardware peripherals tend to have one or more sets of registers
@@ -226,7 +226,7 @@ config TPL_REGMAP
direct memory access. direct memory access.
config VPL_REGMAP config VPL_REGMAP
bool "Support register maps in VPL" bool
depends on VPL_DM depends on VPL_DM
help help
Hardware peripherals tend to have one or more sets of registers Hardware peripherals tend to have one or more sets of registers
@@ -237,7 +237,7 @@ config VPL_REGMAP
config SYSCON config SYSCON
bool "Support system controllers" bool "Support system controllers"
depends on REGMAP select REGMAP
help help
Many SoCs have a number of system controllers which are dealt with Many SoCs have a number of system controllers which are dealt with
as a group by a single driver. Some common functionality is provided as a group by a single driver. Some common functionality is provided
@@ -246,7 +246,8 @@ config SYSCON
config SPL_SYSCON config SPL_SYSCON
bool "Support system controllers in SPL" bool "Support system controllers in SPL"
depends on SPL_REGMAP depends on SPL_DM
select SPL_REGMAP
help help
Many SoCs have a number of system controllers which are dealt with Many SoCs have a number of system controllers which are dealt with
as a group by a single driver. Some common functionality is provided as a group by a single driver. Some common functionality is provided
@@ -255,7 +256,8 @@ config SPL_SYSCON
config TPL_SYSCON config TPL_SYSCON
bool "Support system controllers in TPL" bool "Support system controllers in TPL"
depends on TPL_REGMAP depends on TPL_DM
select TPL_REGMAP
help help
Many SoCs have a number of system controllers which are dealt with Many SoCs have a number of system controllers which are dealt with
as a group by a single driver. Some common functionality is provided as a group by a single driver. Some common functionality is provided
@@ -264,7 +266,8 @@ config TPL_SYSCON
config VPL_SYSCON config VPL_SYSCON
bool "Support system controllers in VPL" bool "Support system controllers in VPL"
depends on VPL_REGMAP depends on VPL_DM
select VPL_REGMAP
help help
Many SoCs have a number of system controllers which are dealt with Many SoCs have a number of system controllers which are dealt with
as a group by a single driver. Some common functionality is provided as a group by a single driver. Some common functionality is provided

View File

@@ -351,7 +351,8 @@ config MXS_OCOTP
config NPCM_HOST config NPCM_HOST
bool "Enable support espi or LPC for Host" bool "Enable support espi or LPC for Host"
depends on REGMAP && SYSCON depends on SYSCON
select REGMAP
help help
Enable NPCM BMC espi or LPC support for Host reading and writing. Enable NPCM BMC espi or LPC support for Host reading and writing.

View File

@@ -627,8 +627,9 @@ config MMC_SDHCI_AM654
depends on ARCH_K3 depends on ARCH_K3
depends on MMC_SDHCI depends on MMC_SDHCI
depends on OF_CONTROL depends on OF_CONTROL
depends on REGMAP
select MMC_SDHCI_IO_ACCESSORS select MMC_SDHCI_IO_ACCESSORS
select REGMAP
select SPL_REGMAP if SPL_MMC
help help
Support for Secure Digital Host Controller Interface (SDHCI) Support for Secure Digital Host Controller Interface (SDHCI)
controllers present on TI's AM654 SOCs. controllers present on TI's AM654 SOCs.