summaryrefslogtreecommitdiff
path: root/board/metaknight
diff options
context:
space:
mode:
authorYu-An Chen <yu-an.chen@quanta.corp-partner.google.com>2020-11-25 14:24:43 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-01 02:41:20 +0000
commitd8ba7887892ac541f5beccaa2f50e35b1176462b (patch)
tree3a469cf0f634d685192c1a5c0d4caf0a36650fe9 /board/metaknight
parent104f5257a6b5527574904ec0bb94061f4790f423 (diff)
downloadchrome-ec-d8ba7887892ac541f5beccaa2f50e35b1176462b.tar.gz
Metaknight: Change EC chip from NPCX796FC0BX to NPCX797FC0BX
Change EC chip from NPCX796FC0BX to NPCX797FC0BX BUG=b:173464184 BRANCH=master TEST=make BOARD=metaknight TEST=make BOARD=metaknight_legacy TEST=new ec is working after rework. Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: Icb81a4a89c71db183994d3737fa8ed807353e06c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2557775 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/metaknight')
-rw-r--r--board/metaknight/board.h9
-rw-r--r--board/metaknight/build.mk6
2 files changed, 15 insertions, 0 deletions
diff --git a/board/metaknight/board.h b/board/metaknight/board.h
index 47a9fd2e17..c58a320110 100644
--- a/board/metaknight/board.h
+++ b/board/metaknight/board.h
@@ -130,7 +130,16 @@
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
+#ifdef BOARD_METAKNIGHT_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
#ifndef __ASSEMBLER__
diff --git a/board/metaknight/build.mk b/board/metaknight/build.mk
index 3cbadc55d7..727233e17b 100644
--- a/board/metaknight/build.mk
+++ b/board/metaknight/build.mk
@@ -8,7 +8,13 @@
CHIP:=npcx
CHIP_FAMILY:=npcx7
+# A limited metaknight_legacy boards are reworked with NPCX796FC variant.
+# Set the modify the variant type to match.
+ifeq ($(BOARD),metaknight_legacy)
CHIP_VARIANT:=npcx7m6fc
+else
+CHIP_VARIANT:=npcx7m7fc
+endif
BASEBOARD:=dedede
board-y=board.o battery.o led.o usb_pd_policy.o