summaryrefslogtreecommitdiff
path: root/board/kodama
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@chromium.org>2019-11-25 10:09:29 +0000
committerCommit Bot <commit-bot@chromium.org>2019-11-29 11:13:28 +0000
commit81beef1408aa58c2aa88e4440e1f1560f2967873 (patch)
tree4a2b17fd9bb75618551a72393e062c6272c5cc78 /board/kodama
parent3a90729933c1fa96662bd1361b5454db0ff3ff54 (diff)
downloadchrome-ec-81beef1408aa58c2aa88e4440e1f1560f2967873.tar.gz
Revert "kukui: remove virtual battery for devices with smart battery"
This reverts commit c1edf25f4d3000529994be1ac1af166c69df47a3. Reason for revert: still need virtual battery on kodama/jacuzzi to let OS side has a more stable data. Original change's description: > kukui: remove virtual battery for devices with smart battery > > CONFIG_I2C_VIRTUAL_BATTERY/CONFIG_I2C_PASSTHRU_RESTRICTED is for devices > with dumb battery to simulate smart battery interface. Remove these > flags for devices with smart battery. > > BUG=b:140847169 > TEST=ectool i2cread 8 1 0x16 <reg>, where reg = 0x00~0x03 > BRANCH=master > > Change-Id: I6088f66596e626f62320ee4ab181e972016aa80c > Signed-off-by: Ting Shen <phoenixshen@chromium.org> > Reviewed-on: http://crrev.com/c/1799289 > Reviewed-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com> > Reviewed-by: Yilun Lin <yllin@chromium.org> > Tested-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com> > Commit-Queue: Sean Abraham <seanabraham@chromium.org> BUG=b:144195782 TEST=`ectool i2cxfer 2 0x0B 16 0x21` multiple times. BRANCH=master Change-Id: I999328cd22561fd9f15eef23bc15be980b66bb8d Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1933793 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kodama')
-rw-r--r--board/kodama/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/kodama/board.h b/board/kodama/board.h
index b73ee6e9bc..c51ebb628b 100644
--- a/board/kodama/board.h
+++ b/board/kodama/board.h
@@ -57,6 +57,7 @@
#define I2C_PORT_TCPC0 0
#define I2C_PORT_USB_MUX 0
#define I2C_PORT_BATTERY 1
+#define I2C_PORT_VIRTUAL_BATTERY I2C_PORT_BATTERY
#define I2C_PORT_ACCEL 1
/* Define the host events which are allowed to wakeup AP in S3. */