diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2021-12-03 08:22:24 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-18 19:04:08 +0000 |
commit | 1550d516f34d0be2e10488517d7023c1a236082d (patch) | |
tree | 2ad4997f4f53af28bb6305235cd575842370279a /zephyr/boards/arm | |
parent | 3fe7264eedf033ff984c56a9f58074bae4cf8208 (diff) | |
download | chrome-ec-1550d516f34d0be2e10488517d7023c1a236082d.tar.gz |
zephyr: flash: clean up the shim layer
Investigate if there is a possibility to call Zephyr flash drivers
directly in the shim layer, not via CrosEC drivers. Unfortunately, it
is possible only for the read operation. Other operations require
additional actions depending on the chip type e.g. splitting into
smaller parts or refreshing watchdog.
Also, move locking of physical flash operations to the CrosEC drivers
from the shim layer.
BUG=b:205175314
TEST=zmake testall && make sure SoftwareSync works to verify flash
operations
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I9c947d46244a255573ebde9a5cd7432a3ee9389c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3389268
Tested-by: Dawid Niedźwiecki <dn@semihalf.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/boards/arm')
-rw-r--r-- | zephyr/boards/arm/brya/brya.dts | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx9/npcx9.dts | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx_evb.dtsi | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/trogdor/trogdor.dts | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/volteer/volteer.dts | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/boards/arm/brya/brya.dts b/zephyr/boards/arm/brya/brya.dts index a37b8f6650..de72be7ab4 100644 --- a/zephyr/boards/arm/brya/brya.dts +++ b/zephyr/boards/arm/brya/brya.dts @@ -18,6 +18,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; cros,rtc = &mtc; }; diff --git a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts index 6fb5fd8384..62064f52f0 100644 --- a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts +++ b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts @@ -19,6 +19,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; cros,rtc = &pcf85063a; }; diff --git a/zephyr/boards/arm/npcx9/npcx9.dts b/zephyr/boards/arm/npcx9/npcx9.dts index 143cdf8926..171e0f12e0 100644 --- a/zephyr/boards/arm/npcx9/npcx9.dts +++ b/zephyr/boards/arm/npcx9/npcx9.dts @@ -26,6 +26,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; }; named-i2c-ports { diff --git a/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi b/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi index af5d6218bb..23f0e06345 100644 --- a/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi +++ b/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi @@ -13,6 +13,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; cros,rtc = &mtc; }; diff --git a/zephyr/boards/arm/trogdor/trogdor.dts b/zephyr/boards/arm/trogdor/trogdor.dts index d930907cf8..b6e3bb3b7b 100644 --- a/zephyr/boards/arm/trogdor/trogdor.dts +++ b/zephyr/boards/arm/trogdor/trogdor.dts @@ -28,6 +28,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; cros,rtc = &mtc; }; diff --git a/zephyr/boards/arm/volteer/volteer.dts b/zephyr/boards/arm/volteer/volteer.dts index cbc8227760..227e940721 100644 --- a/zephyr/boards/arm/volteer/volteer.dts +++ b/zephyr/boards/arm/volteer/volteer.dts @@ -30,6 +30,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + zephyr,flash-controller = &int_flash; cros,rtc = &mtc; }; |