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 18:39:29 +0000
commit8fc5f8d3beb7ab3ba79d04c1bd9e84c2c38d9d16 (patch)
treed4b483aa98ae1a1a5d0a5b8020cd468e46eaf303
parent04edf7255756a63529cb39ee63ca651d0964446a (diff)
downloadchrome-ec-8fc5f8d3beb7ab3ba79d04c1bd9e84c2c38d9d16.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> (cherry picked from commit 5c5ab750e63d350eb7d7f09120a9c9373ea898e5) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875465 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org> Tested-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