Merge "ipq9574: Add eMMC gpio initialization"

This commit is contained in:
Linux Build Service Account 2021-07-29 09:08:54 -07:00 committed by Gerrit - the friendly Code Review server
commit ffbee0b40e

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;