From d8a85e3d997230395f496f9d3fbacef75ae32262 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Wed, 11 Jan 2023 16:14:25 -0800 Subject: mb/google/herobrine: Enable early eMMC init in coreboot Move eMMC init from depthcharge into coreboot to remove it from the critical boot path. Doing so saves us almost 35ms on villager: before change: finished storage device initialization 50,783 after change: finished storage device initialization 16,255 BUG=b:254092907,b:218406702 BRANCH=None TEST=flash new FW onto villager and make sure can boot from eMMC Change-Id: I1af1ec162029120332e7f531f75c3780266d322b Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/71830 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Eric Lai --- src/mainboard/google/herobrine/mainboard.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainboard/google/herobrine') diff --git a/src/mainboard/google/herobrine/mainboard.c b/src/mainboard/google/herobrine/mainboard.c index 5a58f52065..e2c4199287 100644 --- a/src/mainboard/google/herobrine/mainboard.c +++ b/src/mainboard/google/herobrine/mainboard.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -109,6 +110,8 @@ static void mainboard_init(struct device *dev) { /* Configure clock for eMMC */ clock_configure_sdcc1(384 * MHz); + qc_emmc_early_init(); + /* Configure clock for SD card */ clock_configure_sdcc2(50 * MHz); configure_sdhci(); -- cgit v1.2.3