summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.board_version
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2021-07-02 16:47:58 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-09 21:10:26 +0000
commit2c37de83e78e98820ce2a7473932afdec029d2a6 (patch)
treec4c43bcced79adabb1cf6b785633f122b64e8329 /zephyr/Kconfig.board_version
parent107738848df07a66ae4d7c5af8f73a98ca555224 (diff)
downloadchrome-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 'zephyr/Kconfig.board_version')
-rw-r--r--zephyr/Kconfig.board_version17
1 files changed, 3 insertions, 14 deletions
diff --git a/zephyr/Kconfig.board_version b/zephyr/Kconfig.board_version
index 500dae21c3..e24957764d 100644
--- a/zephyr/Kconfig.board_version
+++ b/zephyr/Kconfig.board_version
@@ -2,10 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-if PLATFORM_EC_BOARD_VERSION
-
-choice "Version source"
- prompt "Select the source of the version number"
+choice PLATFORM_EC_BOARD_VERSION_SOURCE
+ prompt "Select the source of the board version number"
+ optional
help
This allow selection of the source of the board version number
information. Several options are available, but BOARD_VERSION_CBI is
@@ -32,14 +31,4 @@ config PLATFORM_EC_BOARD_VERSION_GPIO
The GPIOs should have external pull-up/pull-down resistors installed
at the factory to select the correct value.
-config PLATFORM_EC_BOARD_VERSION_CUSTOM
- bool "Custom board-specific algortihm"
- help
- Choose this if none of the standard methods is available and you must
- perform special logic to find the board version. If this is chosen,
- then the system code will call board_get_version() to find out the
- version, so you should implement this function in your board code.
-
endchoice
-
-endif # PLATFORM_EC_BOARD_VERSION