summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-09-20 15:49:36 +0300
committerTom Rini <trini@konsulko.com>2022-09-20 15:49:36 +0300
commit245746e8e09a408fc5f72762b3d430c3ecd60dfc (patch)
tree50fad5ea00b28b32516a6334f2c79b789039a58a /drivers/mmc
parente9a1ff9724348408144c7f1c5b5cc26130ba46e5 (diff)
parent7086defa048cc5303291b592192a18d69c6510cf (diff)
downloadu-boot-245746e8e09a408fc5f72762b3d430c3ecd60dfc.tar.xz
Merge tag 'u-boot-at91-2023.01-a' of https://source.denx.de/u-boot/custodians/u-boot-at91 into next
First set of u-boot-at91 features for the 2023.01 cycle: This feature set includes the important update on PIO4 pinctrl driver that solves a long time mismatch between Linux and U-boot, related on the unification of pinctrl and gpio driver support, now respecting the pinctrl bindings ABI; and also support for pinctrl subnodes. The feature set also adds support for PDA screen detection for sam9x60_curiosity board , one fix for SD-Card reinsertion and one fix for sam9x60 clocks.
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/atmel_sdhci.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index 2b5ceeab94..37b0beeed4 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -52,6 +52,17 @@ struct atmel_sdhci_plat {
struct mmc mmc;
};
+static int atmel_sdhci_deferred_probe(struct sdhci_host *host)
+{
+ struct udevice *dev = host->mmc->dev;
+
+ return sdhci_probe(dev);
+}
+
+static const struct sdhci_ops atmel_sdhci_ops = {
+ .deferred_probe = atmel_sdhci_deferred_probe,
+};
+
static int atmel_sdhci_probe(struct udevice *dev)
{
struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
@@ -104,6 +115,7 @@ static int atmel_sdhci_probe(struct udevice *dev)
return ret;
host->mmc->priv = host;
+ host->ops = &atmel_sdhci_ops;
upriv->mmc = host->mmc;
clk_free(&clk);