soc: nxp: mcx: Fix Kconfig files and MFD config
The Kconfig defaults should be in Kconfig.defconfig. MFD should not be made dependent on the LP flexcomm being enabled, since MFD can be for other things than just flexcomm. Change from depends on to an if. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
5360c57dc4
commit
9d9d2f8178
2 changed files with 28 additions and 8 deletions
|
@ -35,12 +35,4 @@ config FLASH_MCUX_FLEXSPI_XIP_MEM
|
||||||
|
|
||||||
endif # FLASH_MCUX_FLEXSPI_XIP
|
endif # FLASH_MCUX_FLEXSPI_XIP
|
||||||
|
|
||||||
config MFD
|
|
||||||
default y
|
|
||||||
depends on DT_HAS_NXP_LP_FLEXCOMM_ENABLED
|
|
||||||
|
|
||||||
choice USB_MCUX_CONTROLLER_TYPE
|
|
||||||
default USB_DC_NXP_EHCI
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
endif # SOC_FAMILY_NXP_MCX
|
endif # SOC_FAMILY_NXP_MCX
|
||||||
|
|
|
@ -5,4 +5,32 @@ if SOC_FAMILY_NXP_MCX
|
||||||
|
|
||||||
rsource "*/Kconfig.defconfig"
|
rsource "*/Kconfig.defconfig"
|
||||||
|
|
||||||
|
if FLASH_MCUX_FLEXSPI_XIP
|
||||||
|
|
||||||
|
# Avoid RWW hazards by defaulting logging to disabled
|
||||||
|
choice FLASH_LOG_LEVEL_CHOICE
|
||||||
|
default FLASH_LOG_LEVEL_OFF
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
choice MEMC_LOG_LEVEL_CHOICE
|
||||||
|
default MEMC_LOG_LEVEL_OFF
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
# Code relocation is needed when FLASH_MCUX_FLEXSPI_XIP is enabled
|
||||||
|
config CODE_DATA_RELOCATION_SRAM
|
||||||
|
default y
|
||||||
|
|
||||||
|
config FLASH_MCUX_FLEXSPI_XIP_MEM
|
||||||
|
string
|
||||||
|
default "RAM"
|
||||||
|
|
||||||
|
endif # FLASH_MCUX_FLEXSPI_XIP
|
||||||
|
|
||||||
|
config MFD
|
||||||
|
default y if DT_HAS_NXP_LP_FLEXCOMM_ENABLED
|
||||||
|
|
||||||
|
choice USB_MCUX_CONTROLLER_TYPE
|
||||||
|
default USB_DC_NXP_EHCI
|
||||||
|
endchoice
|
||||||
|
|
||||||
endif # SOC_FAMILY_NXP_MCX
|
endif # SOC_FAMILY_NXP_MCX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue