diff --git a/boards/nuvoton/npcm400f_evb/npcm400f_evb_defconfig b/boards/nuvoton/npcm400f_evb/npcm400f_evb_defconfig index 009983fbc6a65a..3ca98aea216620 100644 --- a/boards/nuvoton/npcm400f_evb/npcm400f_evb_defconfig +++ b/boards/nuvoton/npcm400f_evb/npcm400f_evb_defconfig @@ -8,7 +8,6 @@ CONFIG_SRAM_VECTOR_TABLE=y CONFIG_BOOTLOADER_SRAM_SIZE=0 # General Kernel Options CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000 -# CONFIG_ROM_START_OFFSET=0x600 CONFIG_XIP=n # CONFIG_ARM_MPU=y diff --git a/soc/nuvoton/npcm/npcm4/Kconfig.defconfig b/soc/nuvoton/npcm/npcm4/Kconfig.defconfig index 1e0e27c8c4258a..36e8052ba812d7 100644 --- a/soc/nuvoton/npcm/npcm4/Kconfig.defconfig +++ b/soc/nuvoton/npcm/npcm4/Kconfig.defconfig @@ -26,4 +26,8 @@ config FLASH_BASE_ADDRESS normally set by the board's defconfig file and the user should generally avoid modifying it via the menu configuration. +config ROM_START_OFFSET + default 0x600 if XIP + default 0x0 if !XIP + endif # SOC_SERIES_NPCM4