summaryrefslogtreecommitdiff
path: root/zephyr/include/cros/nuvoton/npcx.dtsi
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2021-12-02 15:31:46 +1100
committerCommit Bot <commit-bot@chromium.org>2021-12-08 02:49:59 +0000
commit4c170fe6c0299023884a063ffbdc7e54cc515743 (patch)
treeb3544887b4af3ec4cf3432f0fa0d7be9c37edec3 /zephyr/include/cros/nuvoton/npcx.dtsi
parent517800e82a8c3c6a2441e2cc26bbb9ea08b394de (diff)
downloadchrome-ec-4c170fe6c0299023884a063ffbdc7e54cc515743.tar.gz
zephyr: use a chosen device for bbram shim
Rather than assume the bbram device is named 'bbram', get the device from a chosen cros-ec,bbram node instead. To accommodate this in testing, this also converts the system test that exercises bbram shimming to use a Zephyr emulated bbram device rather than rolling its own that replaces the one in the shim only. An unused include file is also removed. BUG=b:205615358 TEST=zmake testall BRANCH=none Change-Id: I68c31b7be6b63c065ada65aba3b49ec0e6df7448 Signed-off-by: Peter Marheine <pmarheine@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3312509 Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/include/cros/nuvoton/npcx.dtsi')
-rw-r--r--zephyr/include/cros/nuvoton/npcx.dtsi1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/include/cros/nuvoton/npcx.dtsi b/zephyr/include/cros/nuvoton/npcx.dtsi
index d4103a2bdc..eecc533c74 100644
--- a/zephyr/include/cros/nuvoton/npcx.dtsi
+++ b/zephyr/include/cros/nuvoton/npcx.dtsi
@@ -12,6 +12,7 @@
/ {
chosen {
cros-ec,adc = &adc0;
+ cros-ec,bbram = &bbram;
cros-ec,espi = &espi0;
cros-ec,flash = &fiu0;
cros-ec,watchdog = &twd0;