Driver: isl9237: configures ACOK assertion to switching time

Isl9237 default setting sets 1.3s debounce time from ACOK assertion
to switching. It's too long for EC being notified AC is present.
Change the value to 150ms.

BUG=none
BRANCH=glados
TEST=In Kunimitsu system, plug in Zinger and capture timestamp when EC
receive AC_PRESENT interrupt, it's reduced by ~1.2s.

Change-Id: I2b027eef816949527138f7b8b53d5408fc823093
Signed-off-by: li feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/326844
Commit-Ready: Li1 Feng <li1.feng@intel.com>
Tested-by: Li1 Feng <li1.feng@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
li feng
2016-02-08 17:04:26 -08:00
committed by chrome-bot
parent d790358250
commit c7b96d514d

View File

@@ -235,7 +235,9 @@ int charger_post_init(void)
return rv;
rv = raw_write16(ISL9237_REG_CONTROL2,
reg | ISL9237_C2_PROCHOT_DEBOUNCE_1000);
reg |
ISL9237_C2_PROCHOT_DEBOUNCE_1000 |
ISL9237_C2_ADAPTER_DEBOUNCE_150);
if (rv)
return rv;