soc: mcxw71: Enable FMU flash controller

Enable flash controller driver for main FMU on MCXW71

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-09-06 08:26:35 -05:00 committed by Maureen Helm
commit 4405420b33
4 changed files with 14 additions and 2 deletions

View file

@ -55,6 +55,8 @@ The ``frdm_mcxw71`` board target in Zephyr currently supports the following feat
| LPUART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| FMU | on-chip | flash |
+-----------+------------+-------------------------------------+
Programming and Debugging
*************************

View file

@ -17,6 +17,7 @@
chosen {
zephyr,flash = &flash;
zephyr,flash-controller = &fmu;
zephyr,code-partition = &code_partition;
zephyr,sram = &stcm0;
zephyr,console = &lpuart1;
@ -60,3 +61,7 @@
};
};
};
&fmu {
status = "okay";
};

View file

@ -67,13 +67,15 @@
peripheral: peripheral@50000000 {
ranges = <0x0 0x50000000 0x10000000>;
fmu: flash-module@20000 {
fmu: memory-controller@20000 {
ranges = <0x0 0x10000000 DT_SIZE_M(1)>;
#address-cells = <1>;
#size-cells = <1>;
compatible = "nxp,fmu-k4";
compatible = "nxp,iap-msf1";
reg = <0x20000 0x1000>;
interrupts = <27 0>;
status = "disabled";
flash: flash@0 {
reg = <0x0 DT_SIZE_M(1)>;

View file

@ -9,4 +9,7 @@ config NUM_IRQS
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 96000000 if CORTEX_M_SYSTICK
config MCUX_FLASH_K4_API
default y
endif # SOC_SERIES_MCXW