From ea2d207cae0dc8f46247d2fb70b5f78053ee005a Mon Sep 17 00:00:00 2001 From: Keith Short Date: Wed, 13 Jan 2021 15:38:28 -0700 Subject: 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 Change-Id: I90d5272921a254a1651baffbff00864f3ff02b84 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2636482 Reviewed-by: Simon Glass --- zephyr/shim/include/board.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zephyr/shim/include/board.h') diff --git a/zephyr/shim/include/board.h b/zephyr/shim/include/board.h index 87ec7ed33a..4c94ac0a0e 100644 --- a/zephyr/shim/include/board.h +++ b/zephyr/shim/include/board.h @@ -21,6 +21,10 @@ #include "i2c_map.h" #endif +#ifdef CONFIG_PWM +#include "pwm_map.h" +#endif + /* Include board specific sensor configuration if motionsense is enabled */ #ifdef CONFIG_MOTIONSENSE #include "sensor_map.h" -- cgit v1.2.1