mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 08:51:31 +01:00
Merge "ipq9574: Add eMMC gpio initialization"
This commit is contained in:
commit
ffbee0b40e
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue