diff options
author | Keith Short <keithshort@chromium.org> | 2021-01-13 15:38:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-01 19:26:43 +0000 |
commit | ea2d207cae0dc8f46247d2fb70b5f78053ee005a (patch) | |
tree | 574ccea4b4b53f3aaf9c388ef871552e87b24b37 /include/led_pwm.h | |
parent | ae55d5c3cbc70dac5ac52cf79fbedb92958398f8 (diff) | |
download | chrome-ec-ea2d207cae0dc8f46247d2fb70b5f78053ee005a.tar.gz |
zephyr: Add PWM LED support
Enable CONFIG_LED_COMMON and CONFIG_LED_PWM options for Zephyr
BUG=b:174851299
BRANCH=none
TEST=make buildall
TEST=zmake testall
TEST=Verify power and charging LEDs on Volteer.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I90d5272921a254a1651baffbff00864f3ff02b84
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2636482
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/led_pwm.h')
-rw-r--r-- | include/led_pwm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/led_pwm.h b/include/led_pwm.h index 42f2f5caad..e372f02aab 100644 --- a/include/led_pwm.h +++ b/include/led_pwm.h @@ -8,6 +8,10 @@ #include "ec_commands.h" +#ifdef CONFIG_ZEPHYR +#include "pwm/pwm.h" +#endif + #define PWM_LED_NO_CHANNEL -1 struct pwm_led { |