diff options
author | Shelley Chen <shchen@google.com> | 2023-01-30 15:11:53 -0800 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2023-02-08 16:59:35 +0000 |
commit | 8488b5948d52e208dc07bfdf621756ee0cbf6db4 (patch) | |
tree | 06a6f017ff722f5d85c05497990be1f3ff108db6 /src/soc/qualcomm/common/include | |
parent | 8c692d7dfaede453d8c974819c3f3bec67b24e55 (diff) |
soc/qualcomm/common: Add sdhci_msm_init function
Porting from depthcharge changes for supporting eMMC driver
functionality with standard SDHC controller on Qualcomm chipsets.
sdhci_msm_init() needs to be run before the standard
sdhci_mem_controller initiailzation.
BUG=b:254092907
BRANCH=None
TEST=emerge-herobrine coreboot
Change-Id: I6f4fd1360af1082b335f9cc3046871ce9963b5d0
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72634
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/qualcomm/common/include')
-rw-r--r-- | src/soc/qualcomm/common/include/soc/sdhci_msm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/soc/qualcomm/common/include/soc/sdhci_msm.h b/src/soc/qualcomm/common/include/soc/sdhci_msm.h new file mode 100644 index 0000000000..90a073fbc7 --- /dev/null +++ b/src/soc/qualcomm/common/include/soc/sdhci_msm.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __SDHCI_MSM_H__ +#define __SDHCI_MSM_H__ + +#include "soc/sdhci.h" + +/* SDHC specific defines */ +#define SDCC_HC_VENDOR_SPECIFIC_FUNC3 0x250 +#define VENDOR_SPEC_FUN3_POR_VAL 0x02226040 +#define SDCC_HC_VENDOR_SPECIFIC_CAPABILITIES0 0x21C + +struct sd_mmc_ctrlr *new_sdhci_msm_host(void *ioaddr); + +#endif /* __SDHCI_MSM_H__ */ |