summaryrefslogtreecommitdiff
path: root/zephyr/shim/chip
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-07-01 14:11:01 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-12 02:42:52 +0000
commitc40b4340a458721efe98514f36670ca4f03d56ee (patch)
tree85d9dc1c8e5b763cad6bb4b570bb183af454caed /zephyr/shim/chip
parente8f2e4639f3d7b3a1ec71ef69ff151c608f8cc90 (diff)
downloadchrome-ec-c40b4340a458721efe98514f36670ca4f03d56ee.tar.gz
zephyr: cros_system_npcx: Move chip ID to devicetree
UPSTREAM PR(https://github.com/zephyrproject-rtos/zephyr/pull/36663) adds the chip ID information. ``` soc-id { compatible = "nuvoton,npcx-soc-id"; family-id = <0x20>; chip-id = <0xXX>; device-id = <0xXX>; revision-reg = <0xXXXXXXXX X>; }; ``` This CL changes chip information API to use the UPSTREAM devicetree node. For the get_chip_name(), change to compare the ID at devicetree node & return the build part number or the chip id. BUG=none BRANCH=none TEST=zmake testall TEST='version' console command Cq-Depend: chromium:3010788, chromium:3010789 Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ic10c9671ecf466649dbb90a3b4acda97df4f823a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3000362 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim/chip')
-rw-r--r--zephyr/shim/chip/npcx/include/rom_chip.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/zephyr/shim/chip/npcx/include/rom_chip.h b/zephyr/shim/chip/npcx/include/rom_chip.h
index 00b4c0b080..aab166e6f1 100644
--- a/zephyr/shim/chip/npcx/include/rom_chip.h
+++ b/zephyr/shim/chip/npcx/include/rom_chip.h
@@ -54,7 +54,4 @@ typedef void (*download_from_flash_ptr) (
enum API_RETURN_STATUS_T *status /* Status fo download */
);
-#define NPCX_CHIP_REV_ADDR 0x00007FFC
-#define NPCX_CHIP_REV_STR_SIZE 3
-
#endif /* __CROS_EC_ROM_CHIP_H */