summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-02-02 10:35:31 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-03 22:15:18 +0000
commit5f46d1c0e957bc294651ae065348ac7ff114fb3a (patch)
tree1be68c3f717687a90825fc4922093c528c6967bb
parent4746e5235a4ce23a415b66728d1d6d4561ac3b39 (diff)
downloadchrome-ec-5f46d1c0e957bc294651ae065348ac7ff114fb3a.tar.gz
zephyr: mark ROM resident configs as not supported
ROM resident support is not needed in Zephyr at this time. BUG=b:179153863 BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I08b6e6f47b9cb165b70138b6afd6b590ea1f62a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668184 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/shim/include/config_chip.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index db5e5ad1b4..3e3d076cff 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -21,6 +21,33 @@
#define CONFIG_ZEPHYR
#define CHROMIUM_EC
+/*
+ * Obsolete configs - these are options that are not needed, either because
+ * Zephyr features directly replace the option, or because the config option
+ * will not be used with Zephyr OS.
+ */
+
+/*
+ * ROM resident support. The ROM resident capabilities in the Chromium OS
+ * code are used with EC chipsets that provide more flash space than
+ * executable RAM. These options allow storing the initialized data into
+ * an unused area of flash where it is copied directly from flash into data
+ * RAM by the early boot code.
+ *
+ * When ROM resident is disabled, the initialized data is stored in the main
+ * image, copied from flash to executable RAM by the chip boot loader, and
+ * then copied from executable RAM to data RAM by the early boot code.
+ *
+ * Supporting this under Zephyr would require linker changes to the common
+ * Zephyr linking.
+ */
+#undef CONFIG_CHIP_DATA_IN_INIT_ROM
+#undef CONFIG_CHIP_INIT_ROM_REGION
+#undef CONFIG_RO_ROM_RESIDENT_MEM_OFF
+#undef CONFIG_RO_ROM_RESIDENT_SIZE
+#undef CONFIG_RW_ROM_RESIDENT_MEM_OFF
+#undef CONFIG_RW_ROM_RESIDENT_SIZE
+
/* EC chipset configuration */
#define HOOK_TICK_INTERVAL CONFIG_CROS_EC_HOOK_TICK_INTERVAL