diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-15 15:52:31 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-25 20:52:32 +0000 |
commit | 050c7df0118855ea4c33003c176132821c18c794 (patch) | |
tree | 877eaf25e1f3ffc9f78896b9ed1087e9062f0ec7 /board/host | |
parent | b0f622543c098d3335bcf12a859c33ff215d7530 (diff) | |
download | chrome-ec-050c7df0118855ea4c33003c176132821c18c794.tar.gz |
Add inductive charging control module
This module controls the inductive charging transmitter. For now, the
policy is to charge whenever possible.
BUG=chrome-os-partner:31392
TEST=Unit test passed
BRANCH=None
Change-Id: Ie48a38ad92fe2bc3329c4962e96572f2bc40b4e6
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212715
Diffstat (limited to 'board/host')
-rw-r--r-- | board/host/board.c | 1 | ||||
-rw-r--r-- | board/host/board.h | 1 | ||||
-rw-r--r-- | board/host/gpio.inc | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/board/host/board.c b/board/host/board.c index 055fad8192..c43a36ae8b 100644 --- a/board/host/board.c +++ b/board/host/board.c @@ -7,6 +7,7 @@ #include "button.h" #include "extpower.h" #include "gpio.h" +#include "inductive_charging.h" #include "lid_switch.h" #include "motion_sense.h" #include "power_button.h" diff --git a/board/host/board.h b/board/host/board.h index b8ce98513a..19890b6504 100644 --- a/board/host/board.h +++ b/board/host/board.h @@ -15,6 +15,7 @@ #define CONFIG_POWER_BUTTON #undef CONFIG_WATCHDOG #define CONFIG_SWITCH +#define CONFIG_INDUCTIVE_CHARGING #undef CONFIG_CONSOLE_HISTORY #define CONFIG_CONSOLE_HISTORY 4 diff --git a/board/host/gpio.inc b/board/host/gpio.inc index 578e97c066..9e0df82334 100644 --- a/board/host/gpio.inc +++ b/board/host/gpio.inc @@ -15,3 +15,8 @@ GPIO(PCH_BKLTEN, 0, 0, 0, NULL) GPIO(ENABLE_BACKLIGHT, 0, 0, 0, NULL) GPIO(BUTTON_VOLUME_DOWN_L, 0, 0, GPIO_INT_BOTH, button_interrupt) GPIO(BUTTON_VOLUME_UP, 0, 0, GPIO_INT_BOTH, button_interrupt) + +/* Inductive charging */ +GPIO(CHARGE_EN, 0, 0, 0, NULL) +GPIO(CHARGE_DONE, 0, 0, GPIO_INT_BOTH, inductive_charging_interrupt) +GPIO(BASE_CHG_VDD_EN, 0, 0, 0, NULL) |