boards: frdm_mcxn947: Add MCUboot support
Add support for MCUboot running from internal flash. Remove the MCUboot conditional check. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
68ed426751
commit
ee3db01d1a
4 changed files with 28 additions and 3 deletions
|
@ -48,8 +48,6 @@ void power_mode_od(void)
|
||||||
|
|
||||||
static int frdm_mcxn947_init(void)
|
static int frdm_mcxn947_init(void)
|
||||||
{
|
{
|
||||||
/* Do not re-run this clock init code if using MCUBoot */
|
|
||||||
#ifndef CONFIG_BOOTLOADER_MCUBOOT
|
|
||||||
enable_lpcac();
|
enable_lpcac();
|
||||||
|
|
||||||
power_mode_od();
|
power_mode_od();
|
||||||
|
@ -87,7 +85,6 @@ static int frdm_mcxn947_init(void)
|
||||||
|
|
||||||
/* Set AHBCLKDIV divider to value 1 */
|
/* Set AHBCLKDIV divider to value 1 */
|
||||||
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U);
|
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U);
|
||||||
#endif /* CONFIG_BOOTLOADER_MCUBOOT */
|
|
||||||
|
|
||||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcomm4), okay)
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcomm4), okay)
|
||||||
CLOCK_SetClkDiv(kCLOCK_DivFlexcom4Clk, 1u);
|
CLOCK_SetClkDiv(kCLOCK_DivFlexcom4Clk, 1u);
|
||||||
|
|
|
@ -61,6 +61,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| CLOCK | on-chip | clock_control |
|
| CLOCK | on-chip | clock_control |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| FLASH | on-chip | soc flash |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
Targets available
|
Targets available
|
||||||
==================
|
==================
|
||||||
|
|
|
@ -63,3 +63,28 @@
|
||||||
&os_timer {
|
&os_timer {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flash {
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
boot_partition: partition@0 {
|
||||||
|
label = "mcuboot";
|
||||||
|
reg = <0x00000000 DT_SIZE_K(64)>;
|
||||||
|
};
|
||||||
|
slot0_partition: partition@10000 {
|
||||||
|
label = "image-0";
|
||||||
|
reg = <0x00010000 DT_SIZE_K(960)>;
|
||||||
|
};
|
||||||
|
slot1_partition: partition@100000 {
|
||||||
|
label = "image-1";
|
||||||
|
reg = <0x00100000 DT_SIZE_K(960)>;
|
||||||
|
};
|
||||||
|
scratch_partition: partition@1f0000 {
|
||||||
|
label = "image-scratch";
|
||||||
|
reg = <0x001f0000 DT_SIZE_K(64)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash;
|
zephyr,flash = &flash;
|
||||||
zephyr,flash-controller = &fmu;
|
zephyr,flash-controller = &fmu;
|
||||||
|
zephyr,code-partition = &slot0_partition;
|
||||||
zephyr,console = &flexcomm4_lpuart4;
|
zephyr,console = &flexcomm4_lpuart4;
|
||||||
zephyr,shell-uart = &flexcomm4_lpuart4;
|
zephyr,shell-uart = &flexcomm4_lpuart4;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue