]> Git Repo - J-u-boot.git/blobdiff - drivers/mmc/atmel_sdhci.c
mmc: atmel-sdhci: add sama7g5-sdhci compatibility string
[J-u-boot.git] / drivers / mmc / atmel_sdhci.c
index 4be47ba75e3b453d2c27d48783a01378b584db9b..f03c0457e13f414547124604be7132572da5576b 100644 (file)
@@ -69,7 +69,7 @@ static int atmel_sdhci_probe(struct udevice *dev)
                return ret;
 
        host->name = dev->name;
-       host->ioaddr = (void *)devfdt_get_addr(dev);
+       host->ioaddr = dev_read_addr_ptr(dev);
 
        host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
        host->bus_width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
@@ -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;
 
@@ -112,6 +112,8 @@ static int atmel_sdhci_bind(struct udevice *dev)
 
 static const struct udevice_id atmel_sdhci_ids[] = {
        { .compatible = "atmel,sama5d2-sdhci" },
+       { .compatible = "microchip,sam9x60-sdhci" },
+       { .compatible = "microchip,sama7g5-sdhci" },
        { }
 };
 
This page took 0.028044 seconds and 4 git commands to generate.