From 45d379e715d82ae71ce2bb42882769a4cf4428e4 Mon Sep 17 00:00:00 2001 From: Mahesh Mahadevan Date: Thu, 25 Apr 2024 09:42:12 -0500 Subject: [PATCH] zephyr: boards: Add files needed for NXP FRDM MCXN947 QSPI variant 1. set BOOT_MAX_IMG_SECTORS value for frmd_mcxn947_qspi. W25Q64 flash on the board is very large (8MB), so we must increase the number of max sectors when targeting this board with MCUboot. 2. Set the zephyr,flash chosen node to point to internal flash as this board supports booting from internal flash only. Signed-off-by: Mahesh Mahadevan --- .../boards/frdm_mcxn947_mcxn947_cpu0_qspi.conf | 4 ++++ .../boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.conf create mode 100644 boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay diff --git a/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.conf b/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.conf new file mode 100644 index 00000000..35f90d45 --- /dev/null +++ b/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.conf @@ -0,0 +1,4 @@ +# Copyright 2023 NXP +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_BOOT_MAX_IMG_SECTORS=1024 diff --git a/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay b/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay new file mode 100644 index 00000000..21d18e8b --- /dev/null +++ b/boot/zephyr/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay @@ -0,0 +1,12 @@ +/* + * Copyright 2023 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + zephyr,flash = &flash; + }; +}; +