]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/compulab/cm_fx6/cm_fx6.c
dm: imx: cm_fx6: Add MMC support for CONFIG_BLK
[people/ms/u-boot.git] / board / compulab / cm_fx6 / cm_fx6.c
index ecefe394f1addf1bc9ba170a68d8f49a9e4e9ed9..ff3bab788945918ba836d6ce23d58e9f97cb3b8c 100644 (file)
@@ -678,6 +678,17 @@ int board_init(void)
 
        cm_fx6_setup_display();
 
+       /* This should be done in the MMC driver when MX6 has a clock driver */
+#ifdef CONFIG_FSL_ESDHC
+       if (IS_ENABLED(CONFIG_BLK)) {
+               int i;
+
+               cm_fx6_set_usdhc_iomux();
+               for (i = 0; i < CONFIG_SYS_FSL_USDHC_NUM; i++)
+                       enable_usdhc_clk(1, i);
+       }
+#endif
+
        return 0;
 }