]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/ti/sdp4430/sdp.c
ti: boot: Register the MMC controllers in SPL in the same way as in u-boot
[people/ms/u-boot.git] / board / ti / sdp4430 / sdp.c
index 6037cdd6c195cebce3a92d48ea2953aa577e9cf5..0eb60e4271eee5f10a78364e1c977e5083e877df 100644 (file)
@@ -73,7 +73,7 @@ void set_muxconf_regs(void)
                                 sizeof(struct pad_conf_entry));
 }
 
-#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_GENERIC_MMC)
+#if defined(CONFIG_GENERIC_MMC)
 int board_mmc_init(bd_t *bis)
 {
        omap_mmc_init(0, 0, 0, -1, -1);
@@ -81,12 +81,14 @@ int board_mmc_init(bd_t *bis)
        return 0;
 }
 
+#if !defined(CONFIG_SPL_BUILD)
 void board_mmc_power_init(void)
 {
        twl6030_power_mmc_init(0);
        twl6030_power_mmc_init(1);
 }
 #endif
+#endif
 
 /*
  * get_board_rev() - get board revision