diff options
author | Madhurima Paruchuri <mparuchuri@google.com> | 2023-02-15 09:41:24 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-18 10:04:37 +0000 |
commit | b8da04cd148547852447cf643af2a8e9caa9a058 (patch) | |
tree | 064fc9ae0d569cbbb1bbb5de04b828017ea8e3e0 | |
parent | 56eeef68e39f48eeecd718f70da98948316d0b82 (diff) | |
download | chrome-ec-b8da04cd148547852447cf643af2a8e9caa9a058.tar.gz |
binman: Add CBI section to fmap
CBI section is added to fmap. The CBI section will be filled with 0xFF
in binary. The size and offset could be overridden with device tree
config in chip/program/project.
A property named "preserve" is added, to determine the CBI portion
should not be updated during flashing of chip.
BRANCH=None
BUG=b:266972341
TEST=dump_fmap <ec.bin location> && manually checking ec.bin content
Change-Id: I43647285502917bf557b2fb4ce174c24538fb363
Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4253328
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml | 6 | ||||
-rw-r--r-- | zephyr/include/cros/binman.dtsi | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml b/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml index 0ec9bdfbb0..afc716296d 100644 --- a/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml +++ b/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml @@ -37,3 +37,9 @@ properties: required: false description: >- Set if the section should be read-only. + preserve: + type: boolean + required: false + description: >- + Set if the section should be preserved when updating firmware. This is + just a signal. Enforcement of this is upto the updater. diff --git a/zephyr/include/cros/binman.dtsi b/zephyr/include/cros/binman.dtsi index 1ba7a3bde6..dcf494843f 100644 --- a/zephyr/include/cros/binman.dtsi +++ b/zephyr/include/cros/binman.dtsi @@ -28,6 +28,12 @@ size = <32>; text-label = "version"; }; + cbi { + type = "fill"; + size = <0>; + fill-byte = [ff]; + preserve; + }; }; }; ec-rw { |