diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-08-06 14:16:34 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-18 01:33:10 +0000 |
commit | dac94834ba1fe8a60ec6e6b0f3884782dd95a270 (patch) | |
tree | 67e734e4917024406fa7a72f222e2bab4a4771e0 /zephyr/shim/src/CMakeLists.txt | |
parent | 1f723e545eafada64da2ce0bd9b5b9e5d183d5aa (diff) | |
download | chrome-ec-dac94834ba1fe8a60ec6e6b0f3884782dd95a270.tar.gz |
zephyr: provide unified method to get sku id and board version
Previously, functions for reading board version and sku id were defined
in board.c files which are not compiled in Zephyr builds.
Logic from board.c files should be moved to the DeviceTree files.
This commit adds support for defining board version and sku id
pins and numeral system used to decode them.
BRANCH=main
BUG=b:194136536
TEST=Call system_get_sku_id and system_get_board_version
on CrOS EC and Zephyr, values should be correct and
the same on both versions
Change-Id: I61b5e205cb2a2299ad86c5dff38c05a9659eb2d3
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3048102
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/shim/src/CMakeLists.txt')
-rw-r--r-- | zephyr/shim/src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/shim/src/CMakeLists.txt b/zephyr/shim/src/CMakeLists.txt index 5fee14dfbd..e9f6f55eab 100644 --- a/zephyr/shim/src/CMakeLists.txt +++ b/zephyr/shim/src/CMakeLists.txt @@ -5,6 +5,7 @@ zephyr_library_sources(console.c) zephyr_library_sources(crc.c) zephyr_library_sources(gpio.c) +zephyr_library_sources(gpio_id.c) zephyr_library_sources(util.c) if (DEFINED CONFIG_ARCH_POSIX) |