Skip to content

Commit 810e6a1

Browse files
NeilChen93nashif
authored andcommitted
drivers: flash: support flash driver for MCXA156
Add MCXA156 romapi support in flash driver Signed-off-by: Neil Chen <[email protected]>
1 parent 4af2180 commit 810e6a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/flash/soc_flash_mcux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ LOG_MODULE_REGISTER(flash_mcux);
4343

4444
#if defined(SOC_HAS_IAP) && !defined(CONFIG_SOC_LPC55S36)
4545
#include "fsl_iap.h"
46+
#elif defined(CONFIG_SOC_MCXA156)
47+
#include "fsl_romapi.h"
48+
#define FLASH_Erase FLASH_EraseSector
49+
#define FLASH_Program FLASH_ProgramPhrase
4650
#else
4751
#include "fsl_flash.h"
4852
#endif /* SOC_HAS_IAP && !CONFIG_SOC_LPC55S36*/

0 commit comments

Comments
 (0)