diff options
author | Diana Z <dzigterman@chromium.org> | 2020-08-07 16:35:06 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-10 21:15:54 +0000 |
commit | 4c6ca033f30dfd2fb3042cc877ab02a800f32bee (patch) | |
tree | bc376c1c53fe45fb8233c6347f4071d4a40395cd /driver/charger | |
parent | 1a182fd225d9a39c535058d8ce1d48a5ad1c96bc (diff) | |
download | chrome-ec-4c6ca033f30dfd2fb3042cc877ab02a800f32bee.tar.gz |
SM5803: Update inits
New inits suggested by the vendor to help with 5V output and with
charging issues.
BRANCH=None
BUG=b:153899150,b:161863873,b:160918663
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I18941bfa66ed624c237d4ec87246318c9079c38a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2343757
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/charger')
-rw-r--r-- | driver/charger/sm5803.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/driver/charger/sm5803.c b/driver/charger/sm5803.c index 0dd77f8d73..c1571e16b6 100644 --- a/driver/charger/sm5803.c +++ b/driver/charger/sm5803.c @@ -311,6 +311,7 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x22, 0xB3); + rv |= chg_write8(chgnum, 0x4B, 0xA6); rv |= chg_write8(chgnum, 0x4F, 0xBF); rv |= chg_write8(chgnum, 0x52, 0x77); @@ -318,8 +319,8 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x54, 0x02); rv |= chg_write8(chgnum, 0x55, 0xD1); rv |= chg_write8(chgnum, 0x56, 0x7F); - rv |= chg_write8(chgnum, 0x57, 0x02); - rv |= chg_write8(chgnum, 0x58, 0xD1); + rv |= chg_write8(chgnum, 0x57, 0x01); + rv |= chg_write8(chgnum, 0x58, 0x50); rv |= chg_write8(chgnum, 0x59, 0x7F); rv |= chg_write8(chgnum, 0x5A, 0x13); rv |= chg_write8(chgnum, 0x5B, 0x50); @@ -354,11 +355,11 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x54, 0x02); rv |= chg_write8(chgnum, 0x55, 0xD1); rv |= chg_write8(chgnum, 0x56, 0x7F); - rv |= chg_write8(chgnum, 0x57, 0x02); - rv |= chg_write8(chgnum, 0x58, 0xD1); + rv |= chg_write8(chgnum, 0x57, 0x01); + rv |= chg_write8(chgnum, 0x58, 0x50); rv |= chg_write8(chgnum, 0x59, 0x7F); rv |= chg_write8(chgnum, 0x5A, 0x13); - rv |= chg_write8(chgnum, 0x5B, 0x50); + rv |= chg_write8(chgnum, 0x5B, 0x52); rv |= chg_write8(chgnum, 0x5D, 0xD0); rv |= chg_write8(chgnum, 0x60, 0x44); |