Browse Source

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>
pull/77441/head
Declan Snyder 11 months ago committed by Alberto Escolar
parent
commit
6300dc6aa7
  1. 2
      drivers/clock_control/clock_control_mcux_syscon.c
  2. 2
      include/zephyr/drivers/ethernet/eth_nxp_enet_qos.h
  3. 10
      soc/nxp/mcx/Kconfig
  4. 26
      soc/nxp/mcx/Kconfig.defconfig
  5. 3
      soc/nxp/mcx/mcxn/Kconfig
  6. 19
      soc/nxp/mcx/mcxn/Kconfig.defconfig

2
drivers/clock_control/clock_control_mcux_syscon.c

@ -206,7 +206,7 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate( @@ -206,7 +206,7 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
#if (defined(FSL_FEATURE_SOC_USDHC_COUNT) && FSL_FEATURE_SOC_USDHC_COUNT)
#if CONFIG_SOC_FAMILY_NXP_MCX
#if CONFIG_SOC_SERIES_MCXN
case MCUX_USDHC1_CLK:
*rate = CLOCK_GetUsdhcClkFreq();
break;

2
include/zephyr/drivers/ethernet/eth_nxp_enet_qos.h

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#include <zephyr/drivers/clock_control.h>
/* Different platforms named the peripheral different in the register definitions */
#ifdef CONFIG_SOC_FAMILY_NXP_MCX
#ifdef CONFIG_SOC_SERIES_MCXN
#undef ENET
#define ENET_QOS_NAME ENET
#define ENET_QOS_ALIGNMENT 4

10
soc/nxp/mcx/Kconfig

@ -1,10 +1,12 @@ @@ -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

26
soc/nxp/mcx/Kconfig.defconfig

@ -1,27 +1,15 @@ @@ -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

3
soc/nxp/mcx/mcxn/Kconfig

@ -2,6 +2,9 @@ @@ -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

19
soc/nxp/mcx/mcxn/Kconfig.defconfig

@ -3,6 +3,25 @@ @@ -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

Loading…
Cancel
Save