From cdf92d7797c988db2e5a74c5dbebdbc6bdf67e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Dul=C4=99ba?= Date: Fri, 28 Apr 2023 10:24:20 +0000 Subject: zephyr: Make EC fan options depend on PLATFORM_EC_FAN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Keith Short Commit-Queue: Kornel Dulęba --- zephyr/Kconfig.temperature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1