Skip to content

Commit

Permalink
soc: mcxw71: Enable FMU flash controller
Browse files Browse the repository at this point in the history
Enable flash controller driver for main FMU on MCXW71

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny committed Sep 17, 2024
1 parent 2fec70d commit cb9b288
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions boards/nxp/frdm_mcxw71/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
*************************
Expand Down
5 changes: 5 additions & 0 deletions boards/nxp/frdm_mcxw71/frdm_mcxw71.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

chosen {
zephyr,flash = &flash;
zephyr,flash-controller = &fmu;
zephyr,code-partition = &code_partition;
zephyr,sram = &stcm0;
zephyr,console = &lpuart1;
Expand Down Expand Up @@ -60,3 +61,7 @@
};
};
};

&fmu {
status = "okay";
};
6 changes: 4 additions & 2 deletions dts/arm/nxp/nxp_mcxw71.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
Expand Down
3 changes: 3 additions & 0 deletions soc/nxp/mcx/mcxw/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cb9b288

Please sign in to comment.