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 | |
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')
-rw-r--r-- | zephyr/boards/arm/brya/brya_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx9/npcx9_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/trogdor/trogdor_defconfig | 8 | ||||
-rw-r--r-- | zephyr/boards/arm/volteer/volteer_defconfig | 8 |
7 files changed, 56 insertions, 0 deletions
diff --git a/zephyr/boards/arm/brya/brya_defconfig b/zephyr/boards/arm/brya/brya_defconfig index e8c412a592..09c80a57a8 100644 --- a/zephyr/boards/arm/brya/brya_defconfig +++ b/zephyr/boards/arm/brya/brya_defconfig @@ -39,3 +39,11 @@ CONFIG_WATCHDOG=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 diff --git a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9_defconfig b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9_defconfig index 907ae9ed34..609a8312f1 100644 --- a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9_defconfig +++ b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9_defconfig @@ -38,3 +38,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 diff --git a/zephyr/boards/arm/npcx9/npcx9_defconfig b/zephyr/boards/arm/npcx9/npcx9_defconfig index d20fd87f3a..f8cfd551af 100644 --- a/zephyr/boards/arm/npcx9/npcx9_defconfig +++ b/zephyr/boards/arm/npcx9/npcx9_defconfig @@ -31,3 +31,11 @@ CONFIG_WATCHDOG=y CONFIG_BBRAM=y CONFIG_BBRAM_NPCX=y + +# SPI +CONFIG_SPI=y + +# Flash +CONFIG_FLASH=y +CONFIG_SPI_NOR=y +CONFIG_FLASH_JESD216_API=y diff --git a/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig b/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig index b2fc879cbc..b2da6c4631 100644 --- a/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig +++ b/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig @@ -53,3 +53,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 diff --git a/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig index 9a946584ef..6d0f10d1ed 100644 --- a/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig +++ b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig @@ -52,3 +52,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 diff --git a/zephyr/boards/arm/trogdor/trogdor_defconfig b/zephyr/boards/arm/trogdor/trogdor_defconfig index 2a61f3dd5c..e5ca49969f 100644 --- a/zephyr/boards/arm/trogdor/trogdor_defconfig +++ b/zephyr/boards/arm/trogdor/trogdor_defconfig @@ -38,3 +38,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 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 |