diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2017-04-03 18:03:36 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-08 17:34:09 -0700 |
commit | 045e3340d928912091d877ef164b6d16cb48c0f2 (patch) | |
tree | dea9cd206aaf5bc9cee46df403e4d0eebf7f2eb5 /board/glkrvp/board.c | |
parent | 501e3101dd8d3d7c8a090fcc9424bfd74dbe5927 (diff) | |
download | chrome-ec-045e3340d928912091d877ef164b6d16cb48c0f2.tar.gz |
glkrvp: Enable charger & smart battery
GLKRVP uses ISL9238 Charger & SMP-CA-445 Smart Battery.
BUG=b:64452259
BRANCH=glkrvp
TEST=EC command 'charger' & 'battery' work.
Change-Id: I41adf9bc3264a64850a3f609e7529c2d51df88d0
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/604731
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/glkrvp/board.c')
-rw-r--r-- | board/glkrvp/board.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/board/glkrvp/board.c b/board/glkrvp/board.c index b00db01077..878ccf4b3d 100644 --- a/board/glkrvp/board.c +++ b/board/glkrvp/board.c @@ -7,6 +7,7 @@ #include "chipset.h" #include "console.h" +#include "extpower.h" #include "gpio.h" #include "hooks.h" #include "host_command.h" @@ -49,15 +50,16 @@ const struct i2c_port_t i2c_ports[] = { {"master0-1", NPCX_I2C_PORT0_1, 400, GPIO_I2C0_SCL1, GPIO_I2C0_SDA1}, {"master1", NPCX_I2C_PORT1, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, {"master2", NPCX_I2C_PORT2, 100, GPIO_I2C2_SCL, GPIO_I2C2_SDA}, - {"master3", NPCX_I2C_PORT3, 100, GPIO_I2C3_SCL, GPIO_I2C3_SDA}, + {"charger", NPCX_I2C_PORT3, 100, GPIO_I2C3_SCL, GPIO_I2C3_SDA}, }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* Wake-up pins for hibernate */ const enum gpio_signal hibernate_wake_pins[] = { + GPIO_AC_PRESENT, + GPIO_LID_OPEN, GPIO_POWER_BUTTON_L, }; - const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); /* Called by APL power state machine when transitioning from G3 to S5 */ @@ -147,21 +149,6 @@ void board_hibernate(void) ; } -int charge_prevent_power_on(int power_button_pressed) -{ - return 0; -} - -int extpower_is_present(void) -{ - return 1; -} - -int charge_want_shutdown(void) -{ - return 0; -} - static void pmic_init(void) { /* No need to re-init PMIC since settings are sticky across sysjump. */ |