summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2015-10-21 10:51:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-27 11:52:34 -0700
commitcb4a76e8022c73fb0a0b50700912d86f41ea3dbb (patch)
tree0cfcc8ead036350e3ad994ee8229dac69a7f5b28 /include/config.h
parent95e8bc2e0bed68b040d2b19d1dd62a4debcc1852 (diff)
downloadchrome-ec-cb4a76e8022c73fb0a0b50700912d86f41ea3dbb.tar.gz
i2c: get battery information from charge state
ARM systems currently use SBS kernel driver which talks to the battery through I2C passthu in the EC. Instead when asking for battery information try getting it from the charge state machine first, and then try the battery if charge state does not have the information. This reduces latency by cutting out the battery response time. BUG=chromium:484841 BRANCH=none TEST=check that power_supply_info works properly on Jerry Change-Id: If4da15ccabe412adc31fc94b189089ebb3e9265c Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/307905 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 9bd278359c..26fced9a46 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1048,6 +1048,7 @@
#undef CONFIG_I2C_DEBUG_PASSTHRU
#undef CONFIG_I2C_PASSTHROUGH
#undef CONFIG_I2C_PASSTHRU_RESTRICTED
+#undef CONFIG_I2C_VIRTUAL_BATTERY
/* For EC that is only an I2C slave */
#undef CONFIG_I2C_SLAVE_ONLY