mmc: Added device tree entry for sdhci

Change-Id: I9d567df69e1915a8780bb7b7859ffdefcd3c59c7
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-04-26 12:39:07 +05:30 committed by Gerrit - the friendly Code Review server
parent 3ba39922f9
commit f9dff38ca8
5 changed files with 13 additions and 0 deletions

View file

@ -26,6 +26,7 @@
i2c0 = "/i2c@78b6000";
pci0 = "/pci@20000000";
pci1 = "/pci@10000000";
mmc = "/sdhci@07824000";
};
ess-switch {
switch_mac_mode = <0x5>;

View file

@ -26,6 +26,7 @@
i2c0 = "/i2c@78b6000";
pci0 = "/pci@20000000";
pci1 = "/pci@10000000";
mmc = "/sdhci@07824000";
};
ess-switch {
switch_mac_mode = <0x0>;

View file

@ -26,6 +26,7 @@
i2c0 = "/i2c@78b6000";
pci0 = "/pci@20000000";
pci1 = "/pci@10000000";
mmc = "/sdhci@07824000";
};
ess-switch {
switch_mac_mode = <0x0>;

View file

@ -335,4 +335,7 @@
};
mmc: sdhci@07824000 {
compatible = "qcom,sdhci-msm";
};
};

View file

@ -425,9 +425,16 @@ int board_eth_init(bd_t *bis)
int board_mmc_init(bd_t *bis)
{
int node;
int ret = 0;
qca_smem_flash_info_t *sfi = &qca_smem_flash_info;
node = fdt_path_offset(gd->fdt_blob, "mmc");
if (node < 0) {
printf("sdhci: Node Not found, skipping initialization\n");
return -1;
}
#ifndef CONFIG_SDHCI_SUPPORT
mmc_host.base = MSM_SDC1_BASE;
mmc_host.clk_mode = MMC_IDENTIFY_MODE;