diff options
author | Jun Lin <CHLin56@nuvoton.com> | 2021-11-04 10:31:52 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-12 20:44:32 +0000 |
commit | 7a544b16076115135a146a343d6d8b5c8cbebadb (patch) | |
tree | c857c07ea04cfb6159f279a678fb707ed1e98ac9 /zephyr/boards/arm/volteer/volteer_defconfig | |
parent | 6faaf44daa8b3d1847df90bcea27d35bd0953da4 (diff) | |
download | chrome-ec-7a544b16076115135a146a343d6d8b5c8cbebadb.tar.gz |
zephyr: flash: npcx: move the flash operations to upstream
In PR:39644, the SPI (FIU/UMA) driver is added to the Zephyr upstream.
The flash access now can be via the flash APIs in spi_nor driver,
including flash write/read/erase/read_jedec_id. Note that because
there is no API in the flash driver to read/write the status register,
it is implemented here via the spi_transceive API.
BRANCH=none
BUG=b:202295086
TEST=pass "zmake testall"
TEST=enable flash console command on volteer and npcx9_evb,
test the following flash related commands:
flashread/flashwrite/flasherase/flashwp/flashchip/flashinfo.
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Cq-Depend: chromium:3261416
Change-Id: I012ea359695a22cbb54d39124b4b78ff95cca36d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3261447
Tested-by: CH Lin <chlin56@nuvoton.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/boards/arm/volteer/volteer_defconfig')
-rw-r--r-- | zephyr/boards/arm/volteer/volteer_defconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/boards/arm/volteer/volteer_defconfig b/zephyr/boards/arm/volteer/volteer_defconfig index a3f184dff8..16eee231a3 100644 --- a/zephyr/boards/arm/volteer/volteer_defconfig +++ b/zephyr/boards/arm/volteer/volteer_defconfig @@ -43,3 +43,11 @@ CONFIG_SOC_POWER_MANAGEMENT_TRACE=y # BBRAM CONFIG_BBRAM=y CONFIG_BBRAM_NPCX=y + +# SPI +CONFIG_SPI=y + +# Flash +CONFIG_FLASH=y +CONFIG_SPI_NOR=y +CONFIG_FLASH_JESD216_API=y |