diff options
author | Philip Chen <philipchen@google.com> | 2021-07-02 16:47:58 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-09 21:10:26 +0000 |
commit | 2c37de83e78e98820ce2a7473932afdec029d2a6 (patch) | |
tree | c4c43bcced79adabb1cf6b785633f122b64e8329 /include/system.h | |
parent | 107738848df07a66ae4d7c5af8f73a98ca555224 (diff) | |
download | chrome-ec-2c37de83e78e98820ce2a7473932afdec029d2a6.tar.gz |
system: Clean up system_get_board_version()
Refactor system_get_board_version() a bit so that we can remove
CONFIG_BOARD_VERSION_CUSTOM and CONFIG_BOARD_VERSION from config.h.
BRANCH=None
BUG=b:186264627
TEST=make buildall -j
TEST=zmake testall
Cq-Depend: chromium:3015243
Change-Id: Id5ab809493c297b7d330ea13dcd6934ec00042a6
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3004112
Commit-Queue: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 230141fffe..c721e2565a 100644 --- a/include/system.h +++ b/include/system.h @@ -382,6 +382,11 @@ const char *system_get_chip_revision(void); int system_get_chip_unique_id(uint8_t **id); /** + * Optional board-level function to read board version. + */ +__override_proto int board_get_version(void); + +/** * Optional board-level function to pulse EC_ENTERING_RW. * * This should ONLY be overridden in very rare circumstances! AKA there better |