diff options
author | Jett Rink <jettrink@chromium.org> | 2018-01-17 16:53:59 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-18 05:09:37 -0800 |
commit | d52ba1a4d4801fdba129be64fa4c1c53a7ced817 (patch) | |
tree | 65cfc3e4ddbc51ff66abfee280783c83ae09a3d6 /include/backlight.h | |
parent | 289347ad6aa4aae56cb90b42b6655ae49ecbb337 (diff) | |
download | chrome-ec-d52ba1a4d4801fdba129be64fa4c1c53a7ced817.tar.gz |
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 <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/872233
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/backlight.h')
-rw-r--r-- | include/backlight.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |