soc: nxp: mcx: Do not use family level config

Move all dependencies of the family config to series level,
and put a disclaimer saying not to use the family config.

Change all occurrences of the family config in code to the
MCXNX4X series config.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-08-12 11:52:05 -05:00 committed by Alberto Escolar
commit 6300dc6aa7
6 changed files with 37 additions and 25 deletions

View file

@ -1,10 +1,12 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_NXP_MCX
select HAS_SEGGER_RTT
select CLOCK_CONTROL
select ARM
# Do NOT select anything from the MCX family kconfig,
# and do not make it a dependency of anything else.
# If there is some similarity between series,
# use if SERIES_A || SERIES_B or something of that
# effect rather than the family config.
# This is because MCX series is expected to be very diverse.
if SOC_FAMILY_NXP_MCX

View file

@ -1,27 +1,15 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
#
# Do NOT select anything from the MCX family kconfig,
# and do not make it a dependency of anything else.
# If there is some similarity between series,
# use if SERIES_A || SERIES_B or something of that
# effect rather than the family config.
# This is because MCX series is expected to be very diverse.
if SOC_FAMILY_NXP_MCX
if FLASH_MCUX_FLEXSPI_XIP
# 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
rsource "*/Kconfig.defconfig"
endif # SOC_FAMILY_NXP_MCX

View file

@ -2,6 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_MCXN
select HAS_SEGGER_RTT
select CLOCK_CONTROL
select ARM
select HAS_MCUX
select HAS_MCUX_FLEXCOMM
select CPU_CORTEX_M_HAS_SYSTICK

View file

@ -3,6 +3,25 @@
if SOC_SERIES_MCXN
if FLASH_MCUX_FLEXSPI_XIP
# 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
config NUM_IRQS
default 155