soc: arm: nxp_imx: don't default CONFIG_DEVICE_CONFIGURATION_DATA=y

Don't default CONFIG_DEVICE_CONFIGURATION_DATA to enabled for iMX RT
SOCs, as this configuration block is only used when the board needs
peripherals like the external memory controller setup from reset by the
bootrom.

Enable this feature on all in tree boards that will require it,
and document the change to the default value in release notes.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2023-07-26 15:25:18 -05:00 committed by Mahesh Mahadevan
commit c85d3dd828
13 changed files with 47 additions and 6 deletions

View file

@ -1,6 +1,6 @@
# MIMXRT1020-EVK board
# Copyright (c) 2018, NXP
# Copyright 2018,2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MIMXRT1020_EVK
@ -12,6 +12,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
if NETWORKING
config NET_L2_ETHERNET

View file

@ -1,6 +1,6 @@
# MIMXRT1024-EVK board
# Copyright (c) 2020, NXP
# Copyright 2020,2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MIMXRT1024_EVK
@ -12,6 +12,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
config I2C_MCUX_LPI2C_BUS_RECOVERY
default y
depends on I2C_MCUX_LPI2C && PINCTRL

View file

@ -10,4 +10,7 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
endif # BOARD_MIMXRT1040_EVK

View file

@ -13,6 +13,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
if FLASH
config FLASH_MCUX_FLEXSPI_HYPERFLASH

View file

@ -14,6 +14,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
if FLASH
config FLASH_MCUX_FLEXSPI_NOR

View file

@ -12,6 +12,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
if NETWORKING
config NET_L2_ETHERNET

View file

@ -1,6 +1,6 @@
# MIMXRT1064-EVK board
# Copyright (c) 2018, NXP
# Copyright 2018,2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MIMXRT1064_EVK
@ -12,6 +12,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI2
endchoice
config DEVICE_CONFIGURATION_DATA
default y
config KSCAN
default y if LVGL

View file

@ -1,6 +1,6 @@
# MIMXRT1160-EVK board
# Copyright (c) 2021, NXP
# Copyright 2021,2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MIMXRT1160_EVK_CM7 || BOARD_MIMXRT1160_EVK_CM4
@ -15,6 +15,10 @@ choice CODE_LOCATION
default CODE_SRAM0 if BOARD_MIMXRT1160_EVK_CM4
endchoice
# Only use DCD when booting primary core (M7)
config DEVICE_CONFIGURATION_DATA
default y if CPU_CORTEX_M7
if SECOND_CORE_MCUX && BOARD_MIMXRT1160_EVK_CM4
config BUILD_OUTPUT_INFO_HEADER

View file

@ -18,6 +18,10 @@ choice CODE_LOCATION
default CODE_SRAM0 if CPU_CORTEX_M4
endchoice
# Only use DCD when booting primary core (M7)
config DEVICE_CONFIGURATION_DATA
default y if CPU_CORTEX_M7
if SECOND_CORE_MCUX && CPU_CORTEX_M4
config BUILD_OUTPUT_INFO_HEADER

View file

@ -1,6 +1,7 @@
# MM-FEATHER board
# Copyright (c) 2021, MADMACHINE LIMITED
# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MM_FEATHER
@ -12,6 +13,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
config DISK_DRIVER_SDMMC
default y if DISK_DRIVERS

View file

@ -1,6 +1,7 @@
# MM-SWIFTIO board
# Copyright (c) 2019, MADMACHINE LIMITED
# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MM_SWIFTIO
@ -12,6 +13,9 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config DEVICE_CONFIGURATION_DATA
default y
config DISK_DRIVER_SDMMC
default y if DISK_DRIVERS

View file

@ -94,6 +94,9 @@ Boards & SoC Support
* Made these changes in other SoC series:
* i.MX RT SOCs no longer enable CONFIG_DEVICE_CONFIGURATION_DATA by default.
boards using external SDRAM should set CONFIG_DEVICE_CONFIGURATION_DATA
* Added support for these ARC boards:
* Added support for these ARM boards:

View file

@ -749,10 +749,11 @@ config IMAGE_VECTOR_TABLE_OFFSET
config DEVICE_CONFIGURATION_DATA
bool "Device configuration data"
default y if HAS_MCUX_SEMC
help
Device configuration data (DCD) provides a sequence of commands to
the boot ROM to initialize components such as an SDRAM.
the boot ROM to initialize components such as an SDRAM. This is
useful if your application expects components like SDRAM to be
initialized at boot time.
endif # NXP_IMX_RT_BOOT_HEADER