Merge tag 'mmc-8-9' of https://gitlab.denx.de/u-boot/custodians/u-boot-mmc
- mmc test fix - sdhci driver fix
This commit is contained in:
@@ -156,6 +156,7 @@ config MMC_HS400_SUPPORT
|
||||
|
||||
config SPL_MMC_HS400_SUPPORT
|
||||
bool "enable HS400 support in SPL"
|
||||
select SPL_MMC_HS200_SUPPORT
|
||||
help
|
||||
The HS400 mode is support by some eMMC. The bus frequency is up to
|
||||
200MHz. This mode requires tuning the IO.
|
||||
|
||||
@@ -88,13 +88,13 @@ static int atmel_sdhci_probe(struct udevice *dev)
|
||||
return -EINVAL;
|
||||
|
||||
host->max_clk = max_clk;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, ATMEL_SDHC_MIN_FREQ);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
host->mmc->priv = host;
|
||||
upriv->mmc = host->mmc;
|
||||
|
||||
|
||||
@@ -214,6 +214,9 @@ static int bcm2835_sdhci_probe(struct udevice *dev)
|
||||
host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
|
||||
host->ops = &bcm2835_ops;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, emmc_freq, MIN_FREQ);
|
||||
if (ret) {
|
||||
debug("%s: Failed to setup SDHCI (err=%d)\n", __func__, ret);
|
||||
@@ -221,7 +224,6 @@ static int bcm2835_sdhci_probe(struct udevice *dev)
|
||||
}
|
||||
|
||||
upriv->mmc = &plat->mmc;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = host;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -73,6 +73,8 @@ static int sdhci_bcmstb_probe(struct udevice *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host,
|
||||
BCMSTB_SDHCI_MAXIMUM_CLOCK_FREQUENCY,
|
||||
BCMSTB_SDHCI_MINIMUM_CLOCK_FREQUENCY);
|
||||
@@ -80,7 +82,6 @@ static int sdhci_bcmstb_probe(struct udevice *dev)
|
||||
return ret;
|
||||
|
||||
upriv->mmc = &plat->mmc;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = host;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -141,12 +141,12 @@ static int msm_sdc_probe(struct udevice *dev)
|
||||
writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0);
|
||||
}
|
||||
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
host->mmc->priv = &prv->host;
|
||||
host->mmc->dev = dev;
|
||||
upriv->mmc = host->mmc;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -33,12 +33,12 @@ static int pci_mmc_probe(struct udevice *dev)
|
||||
host->ioaddr = (void *)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0,
|
||||
PCI_REGION_MEM);
|
||||
host->name = dev->name;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = &priv->host;
|
||||
host->mmc->dev = dev;
|
||||
upriv->mmc = host->mmc;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -204,13 +204,13 @@ static int s5p_sdhci_probe(struct udevice *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 400000);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = host;
|
||||
host->mmc->dev = dev;
|
||||
upriv->mmc = host->mmc;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -269,12 +269,13 @@ static int sdhci_cdns_probe(struct udevice *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
upriv->mmc = &plat->mmc;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = host;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -51,13 +51,14 @@ static int sdhci_tangier_probe(struct udevice *dev)
|
||||
/* MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195 */
|
||||
host->voltages = MMC_VDD_165_195;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, SDHCI_TANGIER_FMAX,
|
||||
SDHCI_TANGIER_FMIN);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
upriv->mmc = &plat->mmc;
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->priv = host;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -242,13 +242,14 @@ static int arasan_sdhci_probe(struct udevice *dev)
|
||||
|
||||
host->max_clk = clock;
|
||||
|
||||
host->mmc = &plat->mmc;
|
||||
host->mmc->dev = dev;
|
||||
host->mmc->priv = host;
|
||||
|
||||
ret = sdhci_setup_cfg(&plat->cfg, host, plat->f_max,
|
||||
CONFIG_ZYNQ_SDHCI_MIN_FREQ);
|
||||
host->mmc = &plat->mmc;
|
||||
if (ret)
|
||||
return ret;
|
||||
host->mmc->priv = host;
|
||||
host->mmc->dev = dev;
|
||||
upriv->mmc = host->mmc;
|
||||
|
||||
return sdhci_probe(dev);
|
||||
|
||||
@@ -35,7 +35,7 @@ env__mmc_wr_configs = (
|
||||
|
||||
"""
|
||||
|
||||
@pytest.mark.buildconfigspec('cmd_mmc','cmd_memory')
|
||||
@pytest.mark.buildconfigspec('cmd_mmc','cmd_random')
|
||||
def test_mmc_wr(u_boot_console, env__mmc_wr_config):
|
||||
"""Test the "mmc write" command.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user