diff options
author | tongjian <tongjian@huaqin.corp-partner.google.com> | 2021-06-03 11:15:13 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-04 03:31:03 +0000 |
commit | 7f462b762b504e185f27078ea7693975edd67751 (patch) | |
tree | 1352aa58154411c2b2d1c4f2926b2fb78ea9a7dd /board/homestar | |
parent | b082ceb12632f123a1419d38cf4ee0bd6eb30f04 (diff) | |
download | chrome-ec-7f462b762b504e185f27078ea7693975edd67751.tar.gz |
Homestar:POGO: Set POGO VBUS setup later then PP3300_HUB
The HUB Spec requires the HUB to power up
before it is plugged into the device.
BUG=b:189191440
TEST=make -j BOARD=homestar
1.Verify build on EVT board
2.Use oscilloscope to observe the timing of POGO VBUS and PP3300_HUB
3.POGO VBUS setup is later then PP3300_HUB
BRANCH=Trogdo
Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com>
Change-Id: I7ca46298b58e5f38a88ccbaa99a38b1d2555e05f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2935642
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/homestar')
-rw-r--r-- | board/homestar/base_detect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/homestar/base_detect.c b/board/homestar/base_detect.c index 53688777c1..45fd6174be 100644 --- a/board/homestar/base_detect.c +++ b/board/homestar/base_detect.c @@ -22,6 +22,9 @@ #define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ## args) #define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ## args) +/* Make sure POGO VBUS starts later then PP3300_HUB when power on */ +#define BASE_DETECT_EN_LATER_US (600 * MSEC) + /* Base detection and debouncing */ #define BASE_DETECT_EN_DEBOUNCE_US (350 * MSEC) #define BASE_DETECT_DIS_DEBOUNCE_US (20 * MSEC) @@ -185,7 +188,8 @@ static void base_enable(void) { /* Enable base detection interrupt. */ base_detect_debounce_time = get_time().val; - hook_call_deferred(&base_detect_deferred_data, 0); + hook_call_deferred(&base_detect_deferred_data, + BASE_DETECT_EN_LATER_US); gpio_enable_interrupt(GPIO_BASE_DET_L); } DECLARE_HOOK(HOOK_CHIPSET_STARTUP, base_enable, HOOK_PRIO_DEFAULT); |