summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornel Dulęba <korneld@google.com>2023-04-28 10:24:20 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-09 06:45:55 +0000
commitcdf92d7797c988db2e5a74c5dbebdbc6bdf67e86 (patch)
treef7a46c286260837e2a89e89092a020affe8b7f9e
parent726c2c151d04ba3c4f6b565c82036a6b4006fbe8 (diff)
downloadchrome-ec-cdf92d7797c988db2e5a74c5dbebdbc6bdf67e86.tar.gz
zephyr: Make EC fan options depend on PLATFORM_EC_FAN
Both PLATFORM_EC_CUSTOM_FAN_CONTROL and PLATFORM_EC_CUSTOM_FAN_DUTY_CONTROL make sense only if PLATFORM_EC_FAN config is enabled. Move them under "if PLATFORM_EC_FAN" block. BUG=none TEST=make try_build_boards TEST=emerge-skyrim chromeos-zephyr Change-Id: I93e7b4bd5909415e15d64009569c77971cc57e85 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4488131 Tested-by: Kornel Dulęba <korneld@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Kornel Dulęba <korneld@google.com>
-rw-r--r--zephyr/Kconfig.temperature3
1 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/Kconfig.temperature b/zephyr/Kconfig.temperature
index 84e65907e4..37a62185e2 100644
--- a/zephyr/Kconfig.temperature
+++ b/zephyr/Kconfig.temperature
@@ -110,6 +110,8 @@ config PLATFORM_EC_FAN
available. Also enables a periodic task (1s) to verify fan is
running (is not stalled).
+if PLATFORM_EC_FAN
+
config PLATFORM_EC_CUSTOM_FAN_CONTROL
bool "Fan custom control support"
default n
@@ -125,7 +127,6 @@ config PLATFORM_EC_CUSTOM_FAN_DUTY_CONTROL
their own fan duty control mechanism by implementing
the routine board_override_fan_control_duty().
-if PLATFORM_EC_FAN
config PLATFORM_EC_NUM_FANS
int "Number of fans"