pd: increasing the waiting time after pd soft reset.

The original waiting time is 5 mesc, but it isn't enough for Oak during
sysjump from RO to RW, so, increase to 8 msec.

BUG=chrome-os-partner:44584, chrome-os-partner:44952
BRANCH=none
TEST=tested on Oak with a battery, with zinger attached,
Issue EC console commands:
> reboot
> sysjump RW (EC_SYNC isn't enabled in bootloader)
And check the PD status:
> pd 0 state
or
> pd 1 state

Change-Id: I846866a95d7730eef679ea9090883b33313d5007
Signed-off-by: Ben Lok <ben.lok@mediatek.com>
Reviewed-on: https://chromium-review.googlesource.com/298420
Reviewed-by: Alec Berg <alecaberg@chromium.org>
This commit is contained in:
Ben Lok
2015-09-09 20:30:17 +08:00
committed by chrome-bot
parent 456dd27199
commit 4ddce257da

View File

@@ -577,7 +577,7 @@ void pd_prepare_reset(void)
pd_soft_reset();
/* Give time for soft reset to be sent */
usleep(5*MSEC);
usleep(8*MSEC);
}
#ifdef CONFIG_USB_PD_DUAL_ROLE