diff options
author | CHLin <CHLin56@nuvoton.com> | 2020-08-06 15:57:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-19 06:57:04 +0000 |
commit | 36e23f2576bb4d1bbe8cd3560c655bff26aedb61 (patch) | |
tree | 479e893d5001aaba52331011c031a532212c0bd8 | |
parent | bc42cf5a82db4a77b986a6c609ccaa145900334d (diff) | |
download | chrome-ec-36e23f2576bb4d1bbe8cd3560c655bff26aedb61.tar.gz |
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=<file_name>"
"diff ./build/npcx7_evb/ec.bin <file_name>"
Signed-off-by: CHLin <CHLin56@nuvoton.com>
Change-Id: I09d8763f5f54d364ecafd17135d8ea00de89da30
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2355158
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
-rw-r--r-- | util/uut/main.c | 17 |
1 files 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,20 +100,27 @@ 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, .chip_id = 0x07, |