summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-06-29 18:01:00 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-30 15:38:04 +0000
commit9ff5d3c2286c7d9c1c1219f5cc51546998847861 (patch)
treeab3170e26386924bee21d36b28fd9b03f5ba9b3f /zephyr/include
parent4ceafce3bcd0ab0592f1de227e660b6d4d7f1b75 (diff)
downloadchrome-ec-9ff5d3c2286c7d9c1c1219f5cc51546998847861.tar.gz
zephyr: implement ro/rw packing for hayato
The "npcx" packer in zmake was hard-coded for Nuvoton devices. Restructure into a new packer, BinmanPacker, which makes no Nuvoton assumptions, and subclass it for the NpcxPacker. Note: there's some file size check here which was coded for Nuvoton only. I think it's not actually necessary since binman already checks to see if the region overflowed, and will error if it did. The best thing to do here is to keep the existing behavior and evaluate if that Nuvoton-only size check can just be removed from zmake. BUG=b:192401039 BRANCH=none TEST=zmake testall TEST=inspected fmap of hayato image, note I don't have a device to test on right now Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ic45a030d0dd02451834161305f048487f7b273e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2995602 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/cros/ite/it8xxx2.dtsi12
1 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/include/cros/ite/it8xxx2.dtsi b/zephyr/include/cros/ite/it8xxx2.dtsi
index 12ba51388d..2e7b17106e 100644
--- a/zephyr/include/cros/ite/it8xxx2.dtsi
+++ b/zephyr/include/cros/ite/it8xxx2.dtsi
@@ -64,4 +64,16 @@
label = "FLASH";
};
};
+
+ /* it8xxx2 has 1MB of flash */
+ binman {
+ wp-ro {
+ offset = <0x0>;
+ size = <0x80000>;
+ };
+ ec-rw {
+ offset = <0x80000>;
+ size = <0x80000>;
+ };
+ };
};