From 978b47463e534c2b8325ebd9c86464555d96d4b6 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Wed, 11 Jan 2023 16:10:07 -0800 Subject: soc/qualcomm/sc7280: init eMMC Use common sdhci driver in coreboot to initialize eMMC for sc7280. This should allow us to initialize eMMC earlier in the boot process, taking it out of the critical path. BUG=b:254092907 BRANCH=None TEST=emerge-herobrine coreboot chromeos-bootimage Change-Id: Ifa88da500e82b44d7523f2e68763e01399c89f4d Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/71829 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/soc/qualcomm/sc7280/include/soc/addressmap.h | 3 +++ src/soc/qualcomm/sc7280/include/soc/sdhci.h | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/soc/qualcomm/sc7280/include/soc/sdhci.h (limited to 'src/soc/qualcomm/sc7280/include') diff --git a/src/soc/qualcomm/sc7280/include/soc/addressmap.h b/src/soc/qualcomm/sc7280/include/soc/addressmap.h index 31f7d64f8f..342de9f9a4 100644 --- a/src/soc/qualcomm/sc7280/include/soc/addressmap.h +++ b/src/soc/qualcomm/sc7280/include/soc/addressmap.h @@ -91,4 +91,7 @@ /* PHY BCR */ #define GCC_PCIE_1_PHY_BCR 0x18E01C +/* eMMC base address */ +#define SDC1_HC_BASE 0x007C4000 + #endif /* __SOC_QUALCOMM_SC7280_ADDRESS_MAP_H__ */ diff --git a/src/soc/qualcomm/sc7280/include/soc/sdhci.h b/src/soc/qualcomm/sc7280/include/soc/sdhci.h new file mode 100644 index 0000000000..70635c08d3 --- /dev/null +++ b/src/soc/qualcomm/sc7280/include/soc/sdhci.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _SOC_QUALCOMM_SC7280_SDHCI_H__ +#define _SOC_QUALCOMM_SC7280_SDHCI_H__ + +int qc_emmc_early_init(void); + +#endif // _SOC_QUALCOMM_SC7280_SDHCI_H__ -- cgit v1.2.3