diff options
author | CHLin <CHLin56@nuvoton.com> | 2020-07-31 16:12:13 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-18 06:15:06 +0000 |
commit | 9a98beb97bd816aa8691b68716670f8e5b06a2b7 (patch) | |
tree | 4645b74d87b330c88dbe48c92ad9f34821d39e58 /util/ecst.h | |
parent | 1b9a55b24634c699eb3cec3467e665e77a7205dd (diff) | |
download | chrome-ec-9a98beb97bd816aa8691b68716670f8e5b06a2b7.tar.gz |
util: ecst: add support for chip variant npcx7m7fc
Allow ecst tool to compose the correct firmware header for npcx7m7fc.
BRANCH:none
BUG=b:163910671
TEST=pass "make buildall"
TEST=with the related CLs, change CHIP_VARIANT to npcx7m7fc in
board/npcx7_evb/build.mk; "BOARD=npcx7_evb make";
check the image can be built and the image header is correct.
Signed-off-by: CHLin <CHLin56@nuvoton.com>
Change-Id: If1eb6bc34e53c1ddd9e8f049414dc1e307e6d2c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2355155
Tested-by: CH Lin <chlin56@nuvoton.com>
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
Diffstat (limited to 'util/ecst.h')
-rw-r--r-- | util/ecst.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/util/ecst.h b/util/ecst.h index 423f65a102..f99caf4ed8 100644 --- a/util/ecst.h +++ b/util/ecst.h @@ -161,11 +161,14 @@ #define MAX_FLASH_SIZE 0x03ffffff /* Chips: convert from name to index. */ -#define NPCX5M5G 0 -#define NPCX5M6G 1 -#define NPCX7M5 2 -#define NPCX7M6 3 -#define NPCX7M7 4 +enum npcx_chip_ram_variant { + NPCX5M5G = 0, + NPCX5M6G = 1, + NPCX7M5 = 2, + NPCX7M6 = 3, + NPCX7M7 = 4, + NPCX_CHIP_RAM_VAR_NONE +}; #define DEFAULT_CHIP NPCX5M5G |