summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2023-04-05 11:50:50 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-08 20:14:24 +0000
commit6fec89af8998b606489ff5b93c3cc5873a21d9c4 (patch)
treec304fb19633c7840420e731e6914ec441ae5863d
parent1dbb4df1fb4a11c9c0b6c95c34a4b6dedbd4e32f (diff)
downloadchrome-ec-6fec89af8998b606489ff5b93c3cc5873a21d9c4.tar.gz
uartupdatetool: Add device ID for NPCX997
Add entry for the NPCX 997 EC to the UART update tool. This is used by flash_ec to communicate with the EC, but the missing entry only broke being able to read the EC flash. flash_ec would fail with "Unknown NPCX device ID:0x22 chip ID:0x09". rebuilt uartupdatetool with "sudo emerge ec-devutils -j". BRANCH=none BUG=b:280058857 TEST="util/flash_ec --read /tmp/e.bin" now works Change-Id: I081f81ee28206b0e8cdeb83e9da65b885e2e0ed1 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4400342 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com> Reviewed-by: CH Lin <chlin56@nuvoton.com>
-rw-r--r--util/uut/main.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/uut/main.cc b/util/uut/main.cc
index 7f7923b2bf..df34191acc 100644
--- a/util/uut/main.cc
+++ b/util/uut/main.cc
@@ -141,6 +141,12 @@ const static struct npcx_chip_info chip_info[] = {
.chip_id = 0x09,
.flash_size = 512 * 1024,
},
+ {
+ /* NPCX997F */
+ .device_id = 0x22,
+ .chip_id = 0x09,
+ .flash_size = 1024 * 1024,
+ },
};
/*---------------------------------------------------------------------------
* Functions prototypes