soc: nxp: mcx: MCXNx4x: update SOC to use flash_k4 driver

Use flash_k4 driver for internal flash instead of ROM API driver.  One
benefit is the flash program phrase size decreases from 128 Bytes to 16
Bytes.  16 Byte phrases enables this SOC to leverage the Zephyr NVS
subsystem, and the MCUboot swap mode.

Signed-off-by: Derek Snell <derek.snell@nxp.com>

Conflicts:
	west.yml
This commit is contained in:
Derek Snell 2025-05-28 12:52:35 -04:00 committed by Anas Nashif
commit 1fd24fbdbb
4 changed files with 8 additions and 5 deletions

View file

@ -24,8 +24,12 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 16000 if MCUX_LPTMR_TIMER
default 150000000 if CORTEX_M_SYSTICK
config MCUX_FLASH_K4_API
default y if (SOC_MCXN947 || SOC_MCXN547) # Initially, only Nx4x uses the k4 driver
# Set to the minimal size of data which can be written.
config FLASH_FILL_BUFFER_SIZE
default 16 if (SOC_MCXN947 || SOC_MCXN547) # Initially, only Nx4x uses the k4 driver
default 128
# The existing SAI diver cannot initialize the PLL on the board,