]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/zynq_sdhci.c
mmc: socfpga_dw_mmc: Move drvsel and smplsel to dts
[u-boot] / drivers / mmc / zynq_sdhci.c
index 971acbb6dffaf4716b70d742a526f760cd858ab3..e169b774932aa91e91cc95afcf6ef2ed578aaee7 100644 (file)
@@ -29,11 +29,11 @@ int zynq_sdhci_init(phys_addr_t regbase)
                       SDHCI_QUIRK_BROKEN_R1B;
        host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
 
-       add_sdhci(host, 52000000, 52000000 >> 9);
+       add_sdhci(host, CONFIG_ZYNQ_SDHCI_MAX_FREQ, 52000000 >> 9);
        return 0;
 }
 
-#ifdef CONFIG_OF_CONTROL
+#if CONFIG_IS_ENABLED(OF_CONTROL)
 int zynq_sdhci_of_init(const void *blob)
 {
        int offset = 0;