From d52ba1a4d4801fdba129be64fa4c1c53a7ced817 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Wed, 17 Jan 2018 16:53:59 -0800 Subject: backlight: Adding support for active low GPIO signal BUG=b:72007261 BRANCH=none TEST=Verified with grunt board (with is active low) Change-Id: I9a58148b8d92065bec982071ed1d97a466197e9a Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/872233 Reviewed-by: Simon Glass Reviewed-by: Randall Spangler Reviewed-by: Edward Hill --- include/backlight.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/backlight.h') diff --git a/include/backlight.h b/include/backlight.h index 4a11e15a4a..8cce6338fa 100644 --- a/include/backlight.h +++ b/include/backlight.h @@ -22,4 +22,9 @@ void backlight_interrupt(enum gpio_signal signal); static inline void backlight_interrupt(enum gpio_signal signal) { } #endif /* !CONFIG_BACKLIGHT_REQ_GPIO */ +/** + * Activate/Deactivate the backlight GPIO pin considering active high or low. + */ +void enable_backlight(int enabled); + #endif /* __CROS_EC_BACKLIGHT_H */ -- cgit v1.2.1