diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2020-12-02 10:45:48 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-11 16:52:54 +0000 |
commit | a98f7d22dc511f3a3a381fe4b7a1fd8ba0ab3e11 (patch) | |
tree | 707137e415aa15628b46c15d546e0602db66c279 | |
parent | e96554d35c8f0e24a02767c1d9b2860c28e6974a (diff) | |
download | chrome-ec-a98f7d22dc511f3a3a381fe4b7a1fd8ba0ab3e11.tar.gz |
Delbin: Add delbin_npcx796fc to support npcx796fc
BUG=b:174106425
BRANCH=firmware-volteer-13521.B
TEST=make BOARD=delbin
make BOARD=delbin_npcx796fc
Manually merged to resolve conflict.
Change-Id: I516994793db07f544ac64065aa05e7adacf6a39d
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567067
Reviewed-by: YH Lin <yueherngl@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
(cherry picked from commit 7e0d430378247d7960699d5c91dc47def536c2f6)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2585854
Commit-Queue: YH Lin <yueherngl@chromium.org>
Tested-by: YH Lin <yueherngl@chromium.org>
-rw-r--r-- | board/delbin/board.h | 8 | ||||
-rw-r--r-- | board/delbin/build.mk | 6 | ||||
l--------- | board/delbin_npcx796fc | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/board/delbin/board.h b/board/delbin/board.h index 57b7341d34..9b9c7fe442 100644 --- a/board/delbin/board.h +++ b/board/delbin/board.h @@ -11,6 +11,14 @@ /* 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 b78172d3cf..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 |