summaryrefslogtreecommitdiff
path: root/zephyr/linker
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-06-03 00:02:36 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-04 22:12:36 +0000
commitff852d9fff09938ac5212ea2aed5e7268a90051b (patch)
tree52f999c1466eedc47a77ed081f65ade92bc46f7b /zephyr/linker
parentc635e1b5ed366d283d669c2dd739261398707d77 (diff)
downloadchrome-ec-ff852d9fff09938ac5212ea2aed5e7268a90051b.tar.gz
zephyr: npcx9: Add linker elements needed for flash api workaround
BRANCH=none BUG=b:188605676 TEST=build brya Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I900f4af147e048a374b56875579d838deaa17eae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2936006 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/linker')
-rw-r--r--zephyr/linker/npcx-lfw.ld14
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/linker/npcx-lfw.ld b/zephyr/linker/npcx-lfw.ld
index bdab9c3546..a6de1df65a 100644
--- a/zephyr/linker/npcx-lfw.ld
+++ b/zephyr/linker/npcx-lfw.ld
@@ -8,3 +8,17 @@ __lfw_text_start = .;
*(.lfw.*)
. = ALIGN(4);
__lfw_text_end = .;
+
+#ifdef CONFIG_PLATFORM_EC_EXTERNAL_STORAGE
+. = ALIGN(4);
+__flash_lpfw_start = .;
+/* Entering deep idle FW for better power consumption */
+KEEP(*(.lowpower_ram))
+. = ALIGN(4);
+__flash_lpfw_end = .;
+__flash_lplfw_start = .;
+/* GDMA utilities for better FW download speed */
+KEEP(*(.lowpower_ram2))
+. = ALIGN(4);
+__flash_lplfw_end = .;
+#endif /* CONFIG_PLATFORM_EC_EXTERNAL_STORAGE */