summaryrefslogtreecommitdiff
path: root/board/kukui/emmc.c
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-01-28 16:59:31 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-28 07:22:48 -0800
commit818bbeda2631a2121647630ebd73cef660347277 (patch)
tree6dd785bedabf1e028052a254beabd9974147e229 /board/kukui/emmc.c
parent88824c6ffae8ec3b2b89fc67c16a07058897ccf9 (diff)
downloadchrome-ec-818bbeda2631a2121647630ebd73cef660347277.tar.gz
kukui/emmc: Reduce the period of polling AP booted signal.
Not until GPIO_SPI1_NSS interrupt is enabled can AP send host command to EC. GPIO_SPI1_NSS interrupt is enabled when AP notify EC that AP booted by deassertting GPIO_BOOTBLOCK_EN_L. The polling period is way too long so that we often see that AP is stucked at waitting EC's reply, and seeing the boot time excessiving the requirement. This CL reduces the polling period to 10 ms, and effectively reduce the boot time. TEST=make BOARD=kukui -j BUG=b:122495379 BRANCH=None Change-Id: Ia6cf720845cddee60a152e6453e93f2c845fe551 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1436660 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui/emmc.c')
-rw-r--r--board/kukui/emmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/kukui/emmc.c b/board/kukui/emmc.c
index f9fd0f9a1b..9740dc968c 100644
--- a/board/kukui/emmc.c
+++ b/board/kukui/emmc.c
@@ -254,7 +254,7 @@ static void emmc_enable_spi(void)
boot_deadline.val = get_time().val + BOOT_TIMEOUT;
/* Check if AP has booted periodically. */
- hook_call_deferred(&emmc_check_status_data, 100 * MSEC);
+ hook_call_deferred(&emmc_check_status_data, 10 * MSEC);
}
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, emmc_enable_spi, HOOK_PRIO_FIRST);