diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-15 15:57:56 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-25 20:53:23 +0000 |
commit | 61dedac2fab0288e070fcb6d11e26ed23115d492 (patch) | |
tree | a97033af2e34152ac7b8419bd72a04a93bd7c775 | |
parent | 050c7df0118855ea4c33003c176132821c18c794 (diff) | |
download | chrome-ec-61dedac2fab0288e070fcb6d11e26ed23115d492.tar.gz |
ryu: enable inductive charging
Enable inductive charging on Ryu.
BUG=chrome-os-partner:31392
TEST=Sanity check only. Build and boot on Ryu.
BRANCH=None
Change-Id: I97f10d082aa939a982496b84c02c870fd59c3a68
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212716
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | board/ryu/board.c | 1 | ||||
-rw-r--r-- | board/ryu/board.h | 1 | ||||
-rw-r--r-- | board/ryu/gpio.inc | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c index 64b338866b..a187eb909d 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -14,6 +14,7 @@ #include "hooks.h" #include "host_command.h" #include "i2c.h" +#include "inductive_charging.h" #include "power.h" #include "power_button.h" #include "registers.h" diff --git a/board/ryu/board.h b/board/ryu/board.h index 973bcc487f..ffeda6f743 100644 --- a/board/ryu/board.h +++ b/board/ryu/board.h @@ -33,6 +33,7 @@ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_TASK_PROFILING #undef CONFIG_CONSOLE_CMDHELP +#define CONFIG_INDUCTIVE_CHARGING /* Charging/Power configuration */ #undef CONFIG_BATTERY_RYU /* TODO implement */ diff --git a/board/ryu/gpio.inc b/board/ryu/gpio.inc index ac2153ee88..b7579ebdb3 100644 --- a/board/ryu/gpio.inc +++ b/board/ryu/gpio.inc @@ -11,7 +11,7 @@ GPIO(BC_TEMP_ALERT_L, A, 13, GPIO_INT_FALLING, unhandled_evt GPIO(POWER_BUTTON_L, C, 13, GPIO_INT_BOTH, power_button_interrupt) /* active high, the name is for compatibility with existing code */ GPIO(USBC_BC12_INT_L, D, 11, GPIO_INT_FALLING | GPIO_PULL_UP, unhandled_evt) GPIO(LID_OPEN, E, 1, GPIO_INT_BOTH | GPIO_PULL_UP, unhandled_evt) -GPIO(CHARGE_DONE, E, 6, GPIO_INT_RISING, unhandled_evt) +GPIO(CHARGE_DONE, E, 6, GPIO_INT_BOTH, inductive_charging_interrupt) GPIO(LB_INT_L, E, 7, GPIO_INT_FALLING | GPIO_PULL_UP, unhandled_evt) GPIO(LIGHTBAR_EN_L, E, 8, GPIO_INT_FALLING | GPIO_PULL_UP, unhandled_evt) GPIO(AP_IN_SUSPEND, E, 9, GPIO_INT_BOTH | GPIO_PULL_UP, power_signal_interrupt) |