Skip to content

Commit

Permalink
boards: arm: npcm400f: disable CONFIG_XIP
Browse files Browse the repository at this point in the history
disable CONFIG_XIP.

Signed-off-by: cpchiang <[email protected]>
  • Loading branch information
cpchiang authored and maxdog988 committed Feb 6, 2024
1 parent b0b8cae commit c18c49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boards/arm/npcm400f_evb/npcm400f_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions drivers/spi/spi_npcm4xx_spim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c18c49e

Please sign in to comment.