summaryrefslogtreecommitdiff
path: root/board/magolor
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2020-11-23 19:15:35 +0800
committerJustin TerAvest <teravest@chromium.org>2020-11-25 21:00:18 +0000
commit20f7ec106e4e5c410d930931b4ed2b2dba1a94cd (patch)
tree25500c27b7e84ce83e16ebef74fa26ebf0add40e /board/magolor
parentb67a2783ff93fd66980eb3b7d26d80ff38c3328e (diff)
downloadchrome-ec-20f7ec106e4e5c410d930931b4ed2b2dba1a94cd.tar.gz
magolor: support npcx797fc build target
Build target to test Magolro boards reworked with the NPCX797FC EC. BUG=b:168608382 BRANCH=none TEST=make buildall, workable on the re-worked Board. Change-Id: I74f3da25f5f968bad715d773b034f025e01e90d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2554657 Reviewed-by: Justin TerAvest <teravest@chromium.org> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Justin TerAvest <teravest@chromium.org> Tested-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'board/magolor')
-rw-r--r--board/magolor/board.h9
-rw-r--r--board/magolor/build.mk6
2 files changed, 15 insertions, 0 deletions
diff --git a/board/magolor/board.h b/board/magolor/board.h
index 3cdf433772..8865863dc4 100644
--- a/board/magolor/board.h
+++ b/board/magolor/board.h
@@ -12,8 +12,17 @@
#include "baseboard.h"
#define CONFIG_USB_PD_DEBUG_LEVEL 2
+
+#ifdef BOARD_MAGOLOR_LEGACY
/* this change saves 1656 bytes of RW flash space */
#define CONFIG_CHIP_INIT_ROM_REGION
+#else
+/*
+ * 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
/*
* Keep the system unlocked in early development.
diff --git a/board/magolor/build.mk b/board/magolor/build.mk
index 3cbadc55d7..eaf099983c 100644
--- a/board/magolor/build.mk
+++ b/board/magolor/build.mk
@@ -8,7 +8,13 @@
CHIP:=npcx
CHIP_FAMILY:=npcx7
+# A limited Magolor_legacy boards are reworked with NPCX796FC variant.
+# Set the modify the variant type to match.
+ifeq ($(BOARD),magolor_legacy)
CHIP_VARIANT:=npcx7m6fc
+else
+CHIP_VARIANT:=npcx7m7fc
+endif
BASEBOARD:=dedede
board-y=board.o battery.o led.o usb_pd_policy.o