From 36e23f2576bb4d1bbe8cd3560c655bff26aedb61 Mon Sep 17 00:00:00 2001 From: CHLin Date: Thu, 6 Aug 2020 15:57:07 +0800 Subject: util: uut: add npcx7m7fc to the device-to-flash_size mapping table uut maintains a mapping table to look up the internal flash size with the device id (chip variant.) This CL adds a new entry in the table for npcx7m7fc. BRANCH=none BUG=b:163910671 TEST=pass "make buildall" TEST="./build/npcx7_evb/util/uartupdatetool --port=pts/15 --baudrate=115200 --read-flash --file=" "diff ./build/npcx7_evb/ec.bin " Signed-off-by: CHLin Change-Id: I09d8763f5f54d364ecafd17135d8ea00de89da30 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2355158 Tested-by: CH Lin Reviewed-by: Keith Short Reviewed-by: caveh jalali Commit-Queue: CH Lin --- util/uut/main.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/util/uut/main.c b/util/uut/main.c index 3ac8032739..5446835588 100644 --- a/util/uut/main.c +++ b/util/uut/main.c @@ -100,19 +100,26 @@ const static struct npcx_chip_info chip_info[] = { }, { - /* NPCX797WB */ - .device_id = 0x24, + /* NPCX796FC */ + .device_id = 0x29, .chip_id = 0x07, - .flash_size = 1024 * 1024, + .flash_size = 512 * 1024, }, { - /* NPCX796FC */ - .device_id = 0x29, + /* NPCX797FC */ + .device_id = 0x20, .chip_id = 0x07, .flash_size = 512 * 1024, }, + { + /* NPCX797WB */ + .device_id = 0x24, + .chip_id = 0x07, + .flash_size = 1024 * 1024, + }, + { /* NPCX797WC */ .device_id = 0x2C, -- cgit v1.2.1