summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2015-10-27 15:51:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-29 10:31:40 -0700
commit49d4254bd40a81b8f37014400bf5a50e7e581e4d (patch)
treedb870841b3d05ecd6db746e95b083f7193cc9eff
parentb347f36b1053342c50990cdc9c711df9ee093af6 (diff)
downloadchrome-ec-49d4254bd40a81b8f37014400bf5a50e7e581e4d.tar.gz
Jerry: enable virtual battery
BUG=chromium:484841 BRANCH=none TEST=check power_supply_info works properly on Jerry Change-Id: I166fd4fc876b2d71f82e8fc7b33e4268a30be567 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/309264 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
-rw-r--r--board/jerry/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/jerry/board.h b/board/jerry/board.h
index 480d77eb3c..ffea9cc738 100644
--- a/board/jerry/board.h
+++ b/board/jerry/board.h
@@ -22,6 +22,7 @@
#define CONFIG_FORCE_CONSOLE_RESUME
#define CONFIG_HOST_COMMAND_STATUS
#define CONFIG_I2C
+#define CONFIG_I2C_VIRTUAL_BATTERY
#define CONFIG_KEYBOARD_COL2_INVERTED
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
#define CONFIG_LED_COMMON
@@ -39,6 +40,7 @@
#define CONFIG_UART_RX_DMA
#define CONFIG_VBOOT_HASH
#undef CONFIG_WATCHDOG_HELP
+#undef CONFIG_CONSOLE_HISTORY
#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1 | STM32_PWR_CSR_EWUP6)
@@ -54,6 +56,7 @@
#define I2C_PORT_MASTER 0
#define I2C_PORT_BATTERY I2C_PORT_MASTER
#define I2C_PORT_CHARGER I2C_PORT_MASTER
+#define I2C_PORT_VIRTUAL_BATTERY I2C_PORT_MASTER
/* Timer selection */
#define TIM_CLOCK32 2