diff options
author | Diana Z <dzigterman@chromium.org> | 2022-04-28 11:30:59 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-02 15:57:02 +0000 |
commit | ec36c0d8dd87a2fa4c85c65cdcd54b3203967f70 (patch) | |
tree | 9f2c871ad9622276ae2e244c3f6d897335a869be /zephyr/Kconfig.temperature | |
parent | 8e51ac6168794eeafb3e7ad57c672eac61114bac (diff) | |
download | chrome-ec-ec36c0d8dd87a2fa4c85c65cdcd54b3203967f70.tar.gz |
Zephyr: Add CONFIG_FANS to config_chip.h scope
Multiple files need access to CONFIG_FANS in order to ascertain whether
the fans are a supported feature. Add this to the config_chip.h logic
and add a default Kconfig option of 1 for it.
BRANCH=None
BUG=b:230694498
TEST=on skyrim, ensure ectool pwmgetnumfans now returns 1
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I926ab8682fa1c76039ceb610edaf2d9ca98b0a24
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615030
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.temperature')
-rw-r--r-- | zephyr/Kconfig.temperature | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/Kconfig.temperature b/zephyr/Kconfig.temperature index 6963b6ecf5..1718a8dc53 100644 --- a/zephyr/Kconfig.temperature +++ b/zephyr/Kconfig.temperature @@ -90,3 +90,14 @@ config PLATFORM_EC_FAN EC_CMD_PWM_SET_FAN_DUTY, EC_CMD_THERMAL_AUTO_FAN_CTRL are available. Also enables a periodic task (1s) to verify fan is running (is not stalled). + +if PLATFORM_EC_FAN + +config PLATFORM_EC_NUM_FANS + int "Number of fans" + default 1 + help + Declare the number of fans supported on this board and avilable + for control through fan APIs. + +endif # PLATFORM_EC_FAN |