diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-04-12 12:38:10 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-22 18:19:00 +0000 |
commit | 88666854bc2756c77c1a856e9a5ae8fc5e556158 (patch) | |
tree | 9704229adf86d863ed0ddfb1d112c91e2706f910 /zephyr/Kconfig.keyboard | |
parent | 9a53f5a83fe3022fab7f1d744279ba8d6353edeb (diff) | |
download | chrome-ec-88666854bc2756c77c1a856e9a5ae8fc5e556158.tar.gz |
zephyr: kblight-pwm: make the option dt node based
Change the Kconfig kblight-pwm option to enable automatically if a a
cros-ec,kblight-pwm node is defined.
Also move the option out of the "choice" block, as that was made for
port expander support, but the driver has since been ported to the
Zephyr PWM APIs, so once we'll have an IT8801 PWM driver available,
it'll work with the existing driver automatically.
BRANCH=none
BUG=b:217741090
TEST=compared the .config on brya
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I46ddff2613b901440162e22b89895e591435bb8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578648
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r-- | zephyr/Kconfig.keyboard | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard index 90c65e387d..847c1c9880 100644 --- a/zephyr/Kconfig.keyboard +++ b/zephyr/Kconfig.keyboard @@ -174,29 +174,17 @@ config PLATFORM_EC_CONSOLE_CMD_KEYBOARD kblog - Print or toggle keyboard event log (current disabled) typematic - Get/set typematic delays -choice PLATFORM_EC_KBLIGHT_MODE - prompt "Keyboard backlight" - optional - help - Enable support for EC control of a keyboard backlight. This enables - the "kblight" console command for manual control of the keyboard - backlight. This also enables the EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT and - EC_CMD_PWM_GET_KEYBOARD_BACKLIGHT host commands for automatic control - by the AP. - - TODO: support CONFIG_IO_EXPANDER_IT8801 driver which provides - PWM keyboard support. +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)) select PLATFORM_EC_PWM_HC help Enables a PWM-controlled keyboard backlight controlled by a PWM signal connected directly to the EC chipset. The board devicetree file must define a "cros-ec,kblight-pwm" compatible device node. -endchoice # PLATFORM_EC_KBLIGHT_MODE - config PLATFORM_EC_KBLIGHT_ENABLE_PIN bool "Keyboard backlight enable pin" help |