aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Chen <shchen@google.com>2023-01-11 16:14:25 -0800
committerShelley Chen <shchen@google.com>2023-02-09 03:52:52 +0000
commitd8a85e3d997230395f496f9d3fbacef75ae32262 (patch)
tree0e5590396fe945c307c550f76e65c9f81c208724
parentd8353e714318591dda89398d39b78d9ff48f2e36 (diff)
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 <shchen@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71830 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
-rw-r--r--src/mainboard/google/herobrine/mainboard.c3
1 files changed, 3 insertions, 0 deletions
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 <soc/qupv3_config_common.h>
#include <soc/qup_se_handlers_common.h>
#include <soc/qcom_qup_se.h>
+#include <soc/sdhci.h>
#include <soc/usb/usb_common.h>
#include <soc/usb/snps_usb_phy.h>
@@ -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();