summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-04-08 16:14:06 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-14 09:25:52 +0000
commit82a02ccb826edbb8ecb6b9f2eb93accf198a3a98 (patch)
treecb459c25b51d41e9a81c09198ca3f583d9b2a75d /zephyr/Kconfig
parent78b5c132cfbac962931ba43b363008ec27892812 (diff)
downloadchrome-ec-82a02ccb826edbb8ecb6b9f2eb93accf198a3a98.tar.gz
zephyr: shim: drop the shim PWM code
Drop the shim PWM code, all drivers of Zephyr enable projects are now using the Zephyr PWM APIs. The pwm.c file only contains the PWM host command now, so rename the corresponding Kconfig option and file to reflect that. BRANCH=none BUG=b:217741090 TEST=cq dry run TEST=build and run on brya Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I3837a81be98c4c2a9c2f7ceea24e05fe7940c7d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578701 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig10
1 files changed, 4 insertions, 6 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 8b727e6aca..cbcb0bee4b 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -543,17 +543,15 @@ config PLATFORM_EC_POWER_BUTTON
This requires a GPIO named GPIO_POWER_BUTTON_L in gpio_map.h.
-config PLATFORM_EC_PWM
+config PLATFORM_EC_PWM_HC
bool
- default y if PWM
help
- Enable the PWM (Pulse Width Modulation) module. This module is used to
- support variable brightness LEDs, backlight controls, and
- variable-speed fans.
+ Enable the PWM (Pulse Width Modulation) host command support. This
+ implements EC_CMD_PWM_SET_DUTY and EC_CMD_PWM_GET_DUTY.
config PLATFORM_EC_PWM_DISPLIGHT
bool "PWM display backlight"
- depends on PLATFORM_EC_PWM
+ select PLATFORM_EC_PWM_HC
help
Enables display backlight controlled by a PWM signal connected
directly to the EC chipset. The board devicetree file must define a