diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2020-08-19 15:27:44 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-25 12:24:05 +0000 |
commit | 81f396b4576d0ab6535dcbb0d06d76caa12d34ea (patch) | |
tree | 2989b2e69c88dd43cbb6c4cad378f4d676efa93b /board/voxel | |
parent | 724001e45080b5e8797e875b37e715e28b5c2071 (diff) | |
download | chrome-ec-81f396b4576d0ab6535dcbb0d06d76caa12d34ea.tar.gz |
voxel: add voxel_npcx797fc build target
Add the voxel_npcx797fc build target to test Voxel boards reworked
with the NPCX797FC EC.
BUG=b:163687531
BRANCH=none
TEST=make buildall, workable on the re-worked Board.
Change-Id: I03ea3957de033c4abe2c66a416c258ef44aeb3d4
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2364332
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voxel')
-rw-r--r-- | board/voxel/board.h | 8 | ||||
-rw-r--r-- | board/voxel/build.mk | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/board/voxel/board.h b/board/voxel/board.h index 422e4adcdd..1194e15999 100644 --- a/board/voxel/board.h +++ b/board/voxel/board.h @@ -15,6 +15,14 @@ #undef NPCX7_PWM1_SEL #define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ +#ifdef BOARD_VOXEL_NPCX797FC +/* + * 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 + #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ #define CONFIG_VBOOT_EFS2 diff --git a/board/voxel/build.mk b/board/voxel/build.mk index b78172d3cf..1621551793 100644 --- a/board/voxel/build.mk +++ b/board/voxel/build.mk @@ -8,7 +8,13 @@ CHIP:=npcx CHIP_FAMILY:=npcx7 +# A limited Voxe boards are reworked with NPCX797FC variant. Set the +# modify the variant type to match. +ifeq ($(BOARD),voxel_npcx797fc) +CHIP_VARIANT:=npcx7m7fc +else CHIP_VARIANT:=npcx7m6fc +endif BASEBOARD:=volteer board-y=board.o |