diff --git a/boards/arm/npcm400f_evb/npcm400f_evb_defconfig b/boards/arm/npcm400f_evb/npcm400f_evb_defconfig index b20f8803810252..ba99486e2a70d3 100644 --- a/boards/arm/npcm400f_evb/npcm400f_evb_defconfig +++ b/boards/arm/npcm400f_evb/npcm400f_evb_defconfig @@ -11,7 +11,7 @@ CONFIG_BOARD_NPCM400F_EVB=y CONFIG_SRAM_VECTOR_TABLE=y # General Kernel Options CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000 -CONFIG_XIP=y +CONFIG_XIP=n CONFIG_BOOTLOADER_SRAM_SIZE=0 CONFIG_STACK_SENTINEL=y # [main stack size default: 1024] diff --git a/drivers/spi/spi_npcm4xx_spim.c b/drivers/spi/spi_npcm4xx_spim.c index b36b532450e62b..a5047348552b67 100644 --- a/drivers/spi/spi_npcm4xx_spim.c +++ b/drivers/spi/spi_npcm4xx_spim.c @@ -227,6 +227,7 @@ static inline bool spi_nor_npcm4xx_spim_is_erase_command(uint8_t opcode) return false; } +#ifdef CONFIG_XIP /* must be call when disable irq */ RAMFUNC static void spi_nor_npcm4xx_spim_wait_ready(const struct device *dev, const struct spi_config *spi_cfg) { @@ -256,6 +257,7 @@ RAMFUNC static void spi_nor_npcm4xx_spim_wait_ready(const struct device *dev, co inst->SPIM_CTL0 = backup_ctrl0; } +#endif RAMFUNC static void spi_nor_npcm4xx_spim_normal_transceive(const struct device *dev, const struct spi_config *spi_cfg,