diff options
author | Vic Yang <victoryang@chromium.org> | 2013-06-05 14:13:49 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-06 19:53:08 -0700 |
commit | c9caf9da43c4f21192b67f3cdf77e3b95c3386ec (patch) | |
tree | 728ae6a2fd8f8febeb55b85cb6531b7ce1eaf87d | |
parent | da85dac523d764b86314863be5aac9fc4a9f29b6 (diff) | |
download | chrome-ec-c9caf9da43c4f21192b67f3cdf77e3b95c3386ec.tar.gz |
Reset TSU6721 on initialization
Sometimes TSU6721 falls into a weird state where video dongle is
recognized as non-standard charger. Let's reset TSU6721 when EC boots,
so that we are guaranteed to have a clean state after initialization.
BUG=None
TEST=Keep doing Power+F3 reset. Doesn't see weird state anymore.
BRANCH=spring
Original-Change-Id: Id09bb1721ae79804dc9b3300a2f3def850c2f70a
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/57575
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 127b0531099f1a4ccc3dab333fdb44e792f13e74)
Change-Id: I0593019375436ebb7b75b4a86e322a7f7164fd08
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/57695
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | common/pmu_tps65090_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/pmu_tps65090_charger.c b/common/pmu_tps65090_charger.c index 5201f06110..469f9b3e1b 100644 --- a/common/pmu_tps65090_charger.c +++ b/common/pmu_tps65090_charger.c @@ -441,7 +441,7 @@ void pmu_charger_task(void) */ msleep(500); - tsu6721_init(); /* Init here until we can do with HOOK_INIT */ + tsu6721_reset(); /* Init here until we can do with HOOK_INIT */ gpio_enable_interrupt(GPIO_USB_CHG_INT); msleep(100); /* TSU6721 doesn't work properly right away. */ board_usb_charge_update(1); |