bd9995x: Do not set IADP monitoring enable bit

IADP monitoring bit was set to the default value for the devices
with an RO image which clears the bit (and causes the issue).

This patch removes the code so that we do not touch the IADP
monitoring bit since transitioning from 0->1 may cause other issues.

BUG=b:35647661
BRANCH=reef
TEST=none

Change-Id: I4413e0bd2de3f4e3912cbe6e73b8cad641ee9245
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/453400
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/453798
This commit is contained in:
Daisuke Nojiri
2017-03-13 08:55:34 -07:00
committed by chrome-bot
parent 2784e922ae
commit 584cd06c9c

View File

@@ -796,14 +796,6 @@ static void bd9995x_init(void)
ch_raw_write16(BD9995X_CMD_CHGOP_SET2, reg,
BD9995X_EXTENDED_COMMAND);
/* Disable IADP pin current limit */
if (ch_raw_read16(BD9995X_CMD_VM_CTRL_SET, &reg,
BD9995X_EXTENDED_COMMAND))
return;
reg &= ~BD9995X_CMD_VM_CTRL_SET_EXTIADPEN;
ch_raw_write16(BD9995X_CMD_VM_CTRL_SET, reg,
BD9995X_EXTENDED_COMMAND);
/* Define battery charging profile */
bd9995x_battery_charging_profile_settings();