From 7e0d430378247d7960699d5c91dc47def536c2f6 Mon Sep 17 00:00:00 2001 From: Zhuohao Lee Date: Wed, 2 Dec 2020 10:45:48 +0800 Subject: Delbin: Add delbin_npcx796fc to support npcx796fc BUG=b:174106425 BRANCH=firmware-volteer-13521.B TEST=make BOARD=delbin make BOARD=delbin_npcx796fc Change-Id: I516994793db07f544ac64065aa05e7adacf6a39d Signed-off-by: Zhuohao Lee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567067 Reviewed-by: YH Lin Reviewed-by: Keith Short Commit-Queue: Keith Short --- board/delbin/board.h | 2 ++ board/delbin/build.mk | 6 ++++++ board/delbin_npcx796fc | 1 + 3 files changed, 9 insertions(+) create mode 120000 board/delbin_npcx796fc diff --git a/board/delbin/board.h b/board/delbin/board.h index df499eeffc..fbeac48f62 100644 --- a/board/delbin/board.h +++ b/board/delbin/board.h @@ -11,11 +11,13 @@ /* Baseboard features */ #include "baseboard.h" +#ifndef BOARD_DELBIN_NPCX796FC /* * The RAM and flash size combination on the NPCX797FC dose not leave * any unused flash space that can be used to store the .init_rom section. */ #undef CONFIG_CHIP_INIT_ROM_REGION +#endif #undef NPCX_PWM1_SEL #define NPCX_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ diff --git a/board/delbin/build.mk b/board/delbin/build.mk index 838d6a16ce..65deb98a8a 100644 --- a/board/delbin/build.mk +++ b/board/delbin/build.mk @@ -8,7 +8,13 @@ CHIP:=npcx CHIP_FAMILY:=npcx7 + +# Old Delbin boards are using with NPCX796FC variant. +ifeq ($(BOARD),delbin_npcx796fc) +CHIP_VARIANT:=npcx7m6fc +else CHIP_VARIANT:=npcx7m7fc +endif BASEBOARD:=volteer board-y=board.o diff --git a/board/delbin_npcx796fc b/board/delbin_npcx796fc new file mode 120000 index 0000000000..64b6d51894 --- /dev/null +++ b/board/delbin_npcx796fc @@ -0,0 +1 @@ +delbin \ No newline at end of file -- cgit v1.2.1