diff options
author | YongBeum.Ha <ybha@samsung.corp-partner.google.com> | 2021-02-02 16:15:59 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-03 20:40:29 +0000 |
commit | bda320e9925df461690945c488a1cc979a2c3ee4 (patch) | |
tree | 056309e9cc9bad8d8a66431b2b4ad48573f9f053 /driver | |
parent | 3b7c9893afc5291d36d778921dcb7c8f5154c583 (diff) | |
download | chrome-ec-bda320e9925df461690945c488a1cc979a2c3ee4.tar.gz |
sasuke : change prochot debounce time
change PROCHOT debounc time : 1ms -> 500us
BUG=b:178064079
BRANCH=None
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: Id28aadb53e0f70309fc4864653a2f8f4258782ee
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666561
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/charger/isl923x.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c index 94c1cd3492..1167419379 100644 --- a/driver/charger/isl923x.c +++ b/driver/charger/isl923x.c @@ -598,9 +598,14 @@ static void isl923x_init(int chgnum) if (!IS_ENABLED(CONFIG_CHARGER_RAA489000)) reg |= ISL923X_C2_OTG_DEBOUNCE_150; + + if (IS_ENABLED(CONFIG_CHARGER_RAA489000)) + reg |= ISL923X_C2_PROCHOT_DEBOUNCE_500; + else + reg |= ISL923X_C2_PROCHOT_DEBOUNCE_1000; + if (raw_write16(chgnum, ISL923X_REG_CONTROL2, reg | - ISL923X_C2_PROCHOT_DEBOUNCE_1000 | ISL923X_C2_ADAPTER_DEBOUNCE_150)) goto init_fail; |