summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2021-05-04 10:08:42 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-05 10:51:02 +0000
commit5c5ab750e63d350eb7d7f09120a9c9373ea898e5 (patch)
tree6b76b57708a08dafa89847c638431901f41d7c6d
parent191e710f5452e27426db5c2a4f8f43fc35528bf2 (diff)
downloadchrome-ec-5c5ab750e63d350eb7d7f09120a9c9373ea898e5.tar.gz
voema: add voema_npcx796fc build target
supports npcx796fc build target to switch npce796fc/797fc chip select. BUG=b:187096310 BRANCH=none TEST=make buildall, workable on the re-worked Board. Change-Id: I0c6eff0a4ba11ff7dc07333f8230d3df34f21d64 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2870885 Reviewed-by: YH Lin <yueherngl@chromium.org>
-rw-r--r--board/voema/board.h8
-rw-r--r--board/voema/build.mk7
l---------board/voema_npcx796fc1
3 files changed, 16 insertions, 0 deletions
diff --git a/board/voema/board.h b/board/voema/board.h
index 19a5ed83a0..b1e629df41 100644
--- a/board/voema/board.h
+++ b/board/voema/board.h
@@ -11,6 +11,14 @@
/* Baseboard features */
#include "baseboard.h"
+#ifdef BOARD_VOEMA
+/*
+ * 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. */
#define CONFIG_BYPASS_CBI_EEPROM_WP_CHECK /* bypass cbi wp check in dev. */
diff --git a/board/voema/build.mk b/board/voema/build.mk
index b78172d3cf..0a0929babc 100644
--- a/board/voema/build.mk
+++ b/board/voema/build.mk
@@ -8,7 +8,14 @@
CHIP:=npcx
CHIP_FAMILY:=npcx7
+# Limited boards with 796 variant and will use 797 moving forward. Set the
+# modify the variant type to match.
+ifeq ($(BOARD),voema_npcx796fc)
CHIP_VARIANT:=npcx7m6fc
+else
+CHIP_VARIANT:=npcx7m7fc
+endif
+
BASEBOARD:=volteer
board-y=board.o
diff --git a/board/voema_npcx796fc b/board/voema_npcx796fc
new file mode 120000
index 0000000000..172bf9e9be
--- /dev/null
+++ b/board/voema_npcx796fc
@@ -0,0 +1 @@
+voema \ No newline at end of file