diff options
author | Todd Broch <tbroch@chromium.org> | 2013-03-11 11:30:40 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-13 11:14:55 -0700 |
commit | eefc0ac8c5e3b167d902997e28324e5f57e0a932 (patch) | |
tree | 2c1d6bde44058cbafe35b7d9a75be79f8adabf67 /board/spring | |
parent | cb03fa5c63546f7a77ffe737ce053bb50c6a3906 (diff) | |
download | chrome-ec-eefc0ac8c5e3b167d902997e28324e5f57e0a932.tar.gz |
spring: stm32: Generate battery key when charging status changes.
In order to update charger status we have added a virtual keystroke to
signal change to the kernel via the MKBP interface.
CL creates the virtual key press and calls it from within the
USB charging code.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BUG=chrome-os-partner:17927
BRANCH=spring
TEST=manual
1. Compile for daisy,snow,spring.
2. Test on spring.
Change-Id: I0afa0fc82c96fa3fd8119523a113b5028c8f64a3
Reviewed-on: https://gerrit.chromium.org/gerrit/45126
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'board/spring')
-rw-r--r-- | board/spring/usb_charging.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index 464732c593..d7ba332047 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -11,6 +11,7 @@ #include "hooks.h" #include "gpio.h" #include "lp5562.h" +#include "keyboard_scan.h" #include "pmu_tpschrome.h" #include "registers.h" #include "smart_battery.h" @@ -420,6 +421,8 @@ static void usb_device_change(int dev_type) else CPRINTF("Unknown]\n"); + keyboard_send_battery_key(); + current_dev_type = dev_type; } |