From 0cb553724da2e424065c482690a2540018f3c60a Mon Sep 17 00:00:00 2001 From: CHLin Date: Thu, 21 Mar 2019 16:42:20 +0800 Subject: util:ecst: add the support of CHIP_VARIANT npcx7m7wc for NPCX7 This CL adds the support for chip variant npcx7m7wc in the ecst utility. BRANCH:none BUG=none TEST=pass "make buildall" TEST=in the follow CL, change CHIP_VARIANT to npcx7m7wc in board/npcx7_evb/build.mk; build the image by "BOARD=npcx7_evb make"; check the image can be built and the image header is correct. Change-Id: I6031a6f188f06e31ca7ce0571065b11ee68b27ab Signed-off-by: CHLin Reviewed-on: https://chromium-review.googlesource.com/1543061 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: CH Lin Reviewed-by: Aseda Aboagye --- util/ecst.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/ecst.c b/util/ecst.c index 328587e8d9..0680f8b1e8 100755 --- a/util/ecst.c +++ b/util/ecst.c @@ -45,7 +45,7 @@ struct chip_info chip_info[] = {{NPCX5M5G_RAM_ADDR, NPCX5M5G_RAM_SIZE}, /* Support chips name strings */ const char *supported_chips = "npcx5m5g, npcx5m6g, npcx7m5g, npcx7m6g, " - "npcx7m6f, npcx7m6fb, npcx7m6fc, or npcx7m7wb"; + "npcx7m6f, npcx7m6fb, npcx7m6fc, npcx7m7wb, or npcx7m7wc"; static unsigned int calc_api_csum_bin(void); static unsigned int initialize_crc_32(void); @@ -239,8 +239,10 @@ int main(int argc, char *argv[]) supported_chips); main_status = FALSE; } else { - if (str_cmp_no_case(main_str_temp, - "npcx7m7wb") == 0) { + if ((str_cmp_no_case(main_str_temp, + "npcx7m7wb") == 0) || + (str_cmp_no_case(main_str_temp, + "npcx7m7wc") == 0)) { if ((bin_params.bin_params & BIN_FW_LOAD_START_ADDR) == 0x00000000) -- cgit v1.2.1