File tree Expand file tree Collapse file tree 5 files changed +50
-4
lines changed Expand file tree Collapse file tree 5 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2024 NXP
2
+ # Copyright 2024-2025 NXP
3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
#
8
8
# Flexcomm SDK driver
9
9
zephyr_compile_definitions_ifdef (CONFIG_NXP_LP_FLEXCOMM LPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1 )
10
10
11
+ zephyr_linker_sources_ifdef (CONFIG_NXP_FLEXSPI_BOOT_HEADER
12
+ ROM_START SORT_KEY 0 boot_header.ld )
13
+
14
+ if (CONFIG_NXP_FLEXSPI_BOOT_HEADER )
15
+ zephyr_linker_section_configure (
16
+ SECTION .rom_start
17
+ INPUT ".flexspi_fcb"
18
+ OFFSET ${CONFIG_FLEXSPI_CONFIG_BLOCK_OFFSET}
19
+ KEEP
20
+ PRIO 10
21
+ )
22
+ zephyr_compile_definitions (XIP_EXTERNAL_FLASH )
23
+ endif ()
24
+
11
25
zephyr_sources (soc.c )
12
26
13
27
if (CONFIG_FLASH_MCUX_FLEXSPI_XIP OR CONFIG_FLASH_MCUX_FLEXSPI_NOR )
Original file line number Diff line number Diff line change 1
- # Copyright 2024 NXP
1
+ # Copyright 2024-2025 NXP
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
config SOC_SERIES_MCXN
@@ -77,6 +77,27 @@ config SECOND_CORE_MCUX_ACCESS_LEVEL
77
77
enabled.
78
78
endif
79
79
80
+ config NXP_FLEXSPI_BOOT_HEADER
81
+ bool "Boot header"
82
+ default y if FLASH_MCUX_FLEXSPI_XIP && !BOOTLOADER_MCUBOOT
83
+
84
+ help
85
+ Enable data structures required by the boot ROM to boot the
86
+ application from an external flash device.
87
+
88
+ if NXP_FLEXSPI_BOOT_HEADER
89
+
90
+ config FLEXSPI_CONFIG_BLOCK_OFFSET
91
+ hex "FlexSPI config block offset"
92
+ default 0x400
93
+ help
94
+ FlexSPI configuration block consists of parameters regarding specific
95
+ flash devices including read command sequence, quad mode enablement
96
+ sequence (optional), etc. The boot ROM expects FlexSPI configuration
97
+ parameter to be presented in serial nor flash.
98
+
99
+ endif # NXP_FLEXSPI_BOOT_HEADER
100
+
80
101
rsource "../../common/Kconfig.flexspi_xip"
81
102
82
103
endif # SOC_SERIES_MCXN
Original file line number Diff line number Diff line change 1
- # Copyright 2024 NXP
1
+ # Copyright 2024-2025 NXP
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
if SOC_SERIES_MCXN
@@ -14,6 +14,7 @@ config NUM_IRQS
14
14
15
15
config ROM_START_OFFSET
16
16
default 0x400 if BOOTLOADER_MCUBOOT
17
+ default 0x1000 if !BOOTLOADER_MCUBOOT && FLASH_MCUX_FLEXSPI_XIP
17
18
18
19
config MCUX_LPTMR_TIMER
19
20
default n if (DT_HAS_NXP_OS_TIMER_ENABLED || DT_HAS_ARM_ARMV8M_SYSTICK_ENABLED)
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2025 NXP
3
+ *
4
+ * SPDX-License-Identifier : Apache-2.0
5
+ */
6
+
7
+ #if defined(CONFIG_NXP_FLEXSPI_BOOT_HEADER)
8
+ . = CONFIG_FLEXSPI_CONFIG_BLOCK_OFFSET;
9
+ KEEP(*(.flexspi_fcb))
10
+ #endif
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ manifest:
210
210
groups :
211
211
- hal
212
212
- name : hal_nxp
213
- revision : d0e49d63ac74208e183ed47ebb4bf8d490ab63fb
213
+ revision : 73d478f7afff753c9cf60248e0c0fff4ac572ee0
214
214
path : modules/hal/nxp
215
215
groups :
216
216
- hal
You can’t perform that action at this time.
0 commit comments