]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/uniphier-sd.c
mmc: uniphier-sd: skip clock set-up for SPL
[u-boot] / drivers / mmc / uniphier-sd.c
index bc6e41dbf6dad580b7e90813db238a3fe7a605a6..61f8da4e413f149b22eb458c5ec6b6799350fb12 100644 (file)
@@ -33,6 +33,7 @@ static const struct udevice_id uniphier_sd_match[] = {
 static int uniphier_sd_probe(struct udevice *dev)
 {
        struct tmio_sd_priv *priv = dev_get_priv(dev);
+#ifndef CONFIG_SPL_BUILD
        struct clk clk;
        int ret;
 
@@ -56,6 +57,9 @@ static int uniphier_sd_probe(struct udevice *dev)
                dev_err(dev, "failed to enable host clock\n");
                return ret;
        }
+#else
+       priv->mclk = 100000000;
+#endif
 
        return tmio_sd_probe(dev, 0);
 }