summaryrefslogtreecommitdiff
path: root/zephyr/linker/mchp-xec-lfw.ld
diff options
context:
space:
mode:
authormartin yan <martin.yan@microchip.corp-partner.google.com>2022-03-31 10:22:04 -0400
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-06 20:44:15 +0000
commit1f829ec6b60bea55954cb53deb2cd89be21ed374 (patch)
treea82c8da0a714c469c151ea2f70bf44a49639f634 /zephyr/linker/mchp-xec-lfw.ld
parent7caa408fe4e757ea4fe308f43b159597c3deba1c (diff)
downloadchrome-ec-1f829ec6b60bea55954cb53deb2cd89be21ed374.tar.gz
zephyr: mchp: Add zephyr Kconfig and CMakeLists
Add zephyr Kconfig and CMakeLists to support shim layer code BUG=none BRANCH=main TEST=zmake testall and make buildall -j$(nproc) Signed-off-by: martin yan <martin.yan@microchip.corp-partner.google.com> Change-Id: I248ad8289b40e1d5a921f0b0eecf1d00dbfb8e24 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3563498 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/linker/mchp-xec-lfw.ld')
-rw-r--r--zephyr/linker/mchp-xec-lfw.ld19
1 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/linker/mchp-xec-lfw.ld b/zephyr/linker/mchp-xec-lfw.ld
new file mode 100644
index 0000000000..4c28f16bdf
--- /dev/null
+++ b/zephyr/linker/mchp-xec-lfw.ld
@@ -0,0 +1,19 @@
+/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+. = ALIGN(4);
+__lfw_text_start = .;
+*(.lfw.*)
+. = ALIGN(4);
+__lfw_text_end = .;
+
+#ifdef CONFIG_PLATFORM_EC_EXTERNAL_STORAGE
+. = ALIGN(4);
+__flash_lplfw_start = .;
+/* QSPI load and jump to EC image */
+KEEP(*(.code_in_sram2))
+. = ALIGN(4);
+__flash_lplfw_end = .;
+#endif /* CONFIG_PLATFORM_EC_EXTERNAL_STORAGE */