From 844cb221cc3bb7002c902d11189f9d39e9615fb6 Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Tue, 11 May 2021 07:49:43 -0600 Subject: kblight: Set kb backlight enable gpio Set the keyboard backlight enable gpio on enable/disable. This will improve power usage on some boards. BUG=b:187757151 TEST=Set backlight to 0, 50, 0 and observe the enable gpio is 0, 1, 0 BRANCH=None Signed-off-by: Rob Barnes Change-Id: Ie03e98d939d05aea861c7b885a45b7e0c476db59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2887550 Reviewed-by: Daisuke Nojiri --- include/keyboard_backlight.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/keyboard_backlight.h b/include/keyboard_backlight.h index 2389b3dfe0..e0a1f4d30e 100644 --- a/include/keyboard_backlight.h +++ b/include/keyboard_backlight.h @@ -6,6 +6,13 @@ #ifndef __CROS_EC_KEYBOARD_BACKLIGHT_H #define __CROS_EC_KEYBOARD_BACKLIGHT_H +/** + * If GPIO_EN_KEYBOARD_BACKLIGHT is defined, this GPIO will be set when + * the the keyboard backlight is enabled or disabled. This GPIO is used + * to enable or disable the power to the keyboard backlight circuitry. + * GPIO_EN_KEYBOARD_BACKLIGHT must be active high. + */ + struct kblight_conf { const struct kblight_drv *drv; }; -- cgit v1.2.1