aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTom Rini2022-09-20 08:49:36 -0400
committerTom Rini2022-09-20 08:49:36 -0400
commit245746e8e09a408fc5f72762b3d430c3ecd60dfc (patch)
tree50fad5ea00b28b32516a6334f2c79b789039a58a /drivers/mmc
parente9a1ff9724348408144c7f1c5b5cc26130ba46e5 (diff)
parent7086defa048cc5303291b592192a18d69c6510cf (diff)
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 2b5ceeab94b..37b0beeed47 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);