summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.keyboard
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.keyboard
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.keyboard')
-rw-r--r--zephyr/Kconfig.keyboard5
1 files changed, 2 insertions, 3 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard
index 51cf7bf433..ef8bd3585d 100644
--- a/zephyr/Kconfig.keyboard
+++ b/zephyr/Kconfig.keyboard
@@ -180,11 +180,10 @@ config PLATFORM_EC_CONSOLE_CMD_KEYBOARD
kblog - Print or toggle keyboard event log (current disabled)
typematic - Get/set typematic delays
-DT_COMPAT_CROS_EC_KBLIGHT_PWM := cros-ec,kblight-pwm
-
config PLATFORM_EC_PWM_KBLIGHT
bool "PWM keyboard backlight"
- default $(dt_compat_enabled,$(DT_COMPAT_CROS_EC_KBLIGHT_PWM))
+ default y
+ depends on DT_HAS_CROS_EC_KBLIGHT_PWM_ENABLED
select PLATFORM_EC_PWM_HC
help
Enables a PWM-controlled keyboard backlight controlled by a PWM signal