summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-07-22 15:01:45 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-29 11:43:01 +0000
commited5fc8f4ec773392fe75e341f73ed0d176dd616a (patch)
tree0dc20e246fee5b1d607254cd2691fdce291ae90e /zephyr/Kconfig
parent2ef2b298e78d9c483ad35dbaf0f2227df2c1931a (diff)
downloadchrome-ec-ed5fc8f4ec773392fe75e341f73ed0d176dd616a.tar.gz
zephyr: Kconfig: use devicetree Kconfig symbols
Replace all instances of $(dt_compat_enabled, ...) with the equivalent auto-generated Kconfig symbols. BRANCH=none BUG=none TEST=zmake testall TEST=zmake build brya and diff the .config Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:3776850 Change-Id: I3a86a934182d3277aab7e5a545a4ca2d5cfedfb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779894 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig5
1 files changed, 2 insertions, 3 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 42c6a8220c..601af45022 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -549,11 +549,10 @@ config PLATFORM_EC_PWM_HC
Enable the PWM (Pulse Width Modulation) host command support. This
implements EC_CMD_PWM_SET_DUTY and EC_CMD_PWM_GET_DUTY.
-DT_COMPAT_CROS_EC_DISPLIGHT := cros-ec,displight
-
config PLATFORM_EC_PWM_DISPLIGHT
bool "PWM display backlight"
- default $(dt_compat_enabled,$(DT_COMPAT_CROS_EC_DISPLIGHT))
+ default y
+ depends on DT_HAS_CROS_EC_DISPLIGHT_ENABLED
select PLATFORM_EC_PWM_HC
help
Enables display backlight controlled by a PWM signal connected