summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorMadhurima Paruchuri <mparuchuri@google.com>2023-03-08 08:58:41 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-08 18:07:34 +0000
commit6c411ac69acbbdf1cc0b26c3f623031003999ba6 (patch)
treeccaedc0f32524d22d00584063bfa828d9a7360d8 /zephyr/include
parent75502bd764cddf269c4028c551f04a12d033227a (diff)
downloadchrome-ec-6c411ac69acbbdf1cc0b26c3f623031003999ba6.tar.gz
binman: Add CBI overlay section of fmap
The CBI section could be enabled if it's imported in the project. The CBI section will be filled with 0xFF in binary. The size and offset could be overridden with device tree config in chip or program or project. Add properties named 'preserve' and 'fill-byte' to flash layout node to support new CBI section properties. BRANCH=None BUG=b:266972341 TEST=dump_fmap <ec.bin location> Change-Id: I95cc4f1847a42e5086e78580d1e5f5fa7fd59dc9 Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4317091 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/cros/cbi_flash.dtsi21
1 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/include/cros/cbi_flash.dtsi b/zephyr/include/cros/cbi_flash.dtsi
new file mode 100644
index 0000000000..adb4f43cde
--- /dev/null
+++ b/zephyr/include/cros/cbi_flash.dtsi
@@ -0,0 +1,21 @@
+/* Copyright 2023 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ binman {
+ wp-ro {
+ ec-ro {
+ cbi_flash: cbi {
+ compatible = "cros-ec,flash-layout";
+ type = "fill";
+ offset = <0x40000>;
+ size = <0>;
+ fill-byte = [ff];
+ preserve;
+ };
+ };
+ };
+ };
+};