ipq9574: Add eMMC gpio initialization

Change-Id: I195549e196f30a40743a014cd7e092a824f6b4a0
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
This commit is contained in:
Vandhiadevan Karunamoorthy 2021-07-28 19:50:51 +05:30
parent 44a15e92ad
commit 1139fab2a6

View file

@ -148,6 +148,8 @@ int board_mmc_init(bd_t *bis)
{
int node;
int ret = 0;
int gpio_node;
qca_smem_flash_info_t *sfi = &qca_smem_flash_info;
node = fdt_path_offset(gd->fdt_blob, "mmc");
@ -156,6 +158,11 @@ int board_mmc_init(bd_t *bis)
return -1;
}
gpio_node = fdt_path_offset(gd->fdt_blob, "/sdhci@7804000/mmc_gpio");
if (gpio_node >= 0) {
qca_gpio_init(gpio_node);
}
mmc_host.ioaddr = (void *)MSM_SDC1_SDHCI_BASE;
mmc_host.voltages = MMC_VDD_165_195;
mmc_host.version = SDHCI_SPEC_300;