summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-08-13 12:02:28 -0600
committerCommit Bot <commit-bot@chromium.org>2021-05-12 00:24:27 +0000
commit790b46ba9c7056c47cf1228afe22710c83d0b5cc (patch)
treee8b4d1c888b7ac061a405fb3199b8f90fb33bfdc
parent868d67e6eb73e26e19dd80495ab81981a74287af (diff)
downloadchrome-ec-790b46ba9c7056c47cf1228afe22710c83d0b5cc.tar.gz
volteer: add volteer_npcx797fc build target
Add the volteer_npcx797fc build target to test Volteer boards reworked with the NPCX797FC EC. BUG=b:163910671 BRANCH=none TEST=make buildall TEST=Verify memory map of volteer_npcx797fc ELF file. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I188f1d2df5d570be8c49b717a4c64f4346f45ae4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2354804 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--board/volteer/board.h8
-rw-r--r--board/volteer/build.mk6
l---------board/volteer_npcx797fc1
3 files changed, 15 insertions, 0 deletions
diff --git a/board/volteer/board.h b/board/volteer/board.h
index 363ba5c438..a9d3d24f1a 100644
--- a/board/volteer/board.h
+++ b/board/volteer/board.h
@@ -19,6 +19,14 @@
#define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY
#endif
+#ifdef BOARD_VOLTEER_NPCX797FC
+/*
+ * The RAM and flash size combination on the the NPCX797FC does not leave
+ * any unused flash space that can be used to store the .init_rom section.
+ */
+#undef CONFIG_CHIP_INIT_ROM_REGION
+#endif
+
/* Optional features */
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
diff --git a/board/volteer/build.mk b/board/volteer/build.mk
index 6479c8246b..abd41ab0a4 100644
--- a/board/volteer/build.mk
+++ b/board/volteer/build.mk
@@ -8,7 +8,13 @@
CHIP:=npcx
CHIP_FAMILY:=npcx7
+# A limited Volteer boards are reworked with NPCX797FC variant. Set the
+# modify the variant type to match.
+ifeq ($(BOARD),volteer_npcx797fc)
+CHIP_VARIANT:=npcx7m7fc
+else
CHIP_VARIANT:=npcx7m6fc
+endif
BASEBOARD:=volteer
board-y=board.o
diff --git a/board/volteer_npcx797fc b/board/volteer_npcx797fc
new file mode 120000
index 0000000000..f2f3e1d253
--- /dev/null
+++ b/board/volteer_npcx797fc
@@ -0,0 +1 @@
+volteer \ No newline at end of file