summaryrefslogtreecommitdiff
path: root/zephyr/test
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-07-08 17:16:48 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-04 18:11:55 +0000
commit05f0f8bdc779e26b661cd6460309e3c3a8acefa0 (patch)
tree923cecab68190e0aad5ff01bf55bfe19864107a6 /zephyr/test
parent9b779dd2ce02e7b43b5bf835c09aff4f3ea3a21f (diff)
downloadchrome-ec-05f0f8bdc779e26b661cd6460309e3c3a8acefa0.tar.gz
zephyr: Move BBRAM access functions to common system.c
NPCX & IT8xxx2 series are both use BBRAM for scratchpad/reset_flags access. cros_bbram API already handles the chip-specific code. This CL moves scratchpad/reset_flags access functions to the common system.c to avoid duplicate those functions. BUG=none BRANCH=none TEST=zmake testall TEST=check reset cause on lazor & npcx_evb Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I0a394e5fbf784ec2e3caea77f194c88ae9d5542e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067156 Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/test')
-rw-r--r--zephyr/test/system/overlay.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/test/system/overlay.dts b/zephyr/test/system/overlay.dts
index 49698a7553..37bac97680 100644
--- a/zephyr/test/system/overlay.dts
+++ b/zephyr/test/system/overlay.dts
@@ -22,5 +22,13 @@
offset = <0x07>;
size = <0x05>;
};
+ scratchpad {
+ offset = <0x0c>;
+ size = <0x04>;
+ };
+ saved-reset-flags {
+ offset = <0x10>;
+ size = <0x04>;
+ };
};
};