mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
mmc: Added device tree entry for sdhci
Change-Id: I9d567df69e1915a8780bb7b7859ffdefcd3c59c7 Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
3ba39922f9
commit
f9dff38ca8
5 changed files with 13 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
i2c0 = "/i2c@78b6000";
|
||||
pci0 = "/pci@20000000";
|
||||
pci1 = "/pci@10000000";
|
||||
mmc = "/sdhci@07824000";
|
||||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x5>;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
i2c0 = "/i2c@78b6000";
|
||||
pci0 = "/pci@20000000";
|
||||
pci1 = "/pci@10000000";
|
||||
mmc = "/sdhci@07824000";
|
||||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
i2c0 = "/i2c@78b6000";
|
||||
pci0 = "/pci@20000000";
|
||||
pci1 = "/pci@10000000";
|
||||
mmc = "/sdhci@07824000";
|
||||
};
|
||||
ess-switch {
|
||||
switch_mac_mode = <0x0>;
|
||||
|
|
|
|||
|
|
@ -335,4 +335,7 @@
|
|||
|
||||
};
|
||||
|
||||
mmc: sdhci@07824000 {
|
||||
compatible = "qcom,sdhci-msm";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue