summaryrefslogtreecommitdiff
path: root/include/keyboard_backlight.h
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-05-11 07:49:43 -0600
committerCommit Bot <commit-bot@chromium.org>2021-05-14 23:47:49 +0000
commit844cb221cc3bb7002c902d11189f9d39e9615fb6 (patch)
tree38e59cb04a8a4cca6866d4872fa15f36b491e49a /include/keyboard_backlight.h
parent15c38c9a9b5588a566e5ff7fa639ff07d10426af (diff)
downloadchrome-ec-844cb221cc3bb7002c902d11189f9d39e9615fb6.tar.gz
kblight: Set kb backlight enable gpiostabilize-13974.B-main
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 <robbarnes@google.com> Change-Id: Ie03e98d939d05aea861c7b885a45b7e0c476db59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2887550 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/keyboard_backlight.h')
-rw-r--r--include/keyboard_backlight.h7
1 files changed, 7 insertions, 0 deletions
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;
};