mxc-mmc: sdhc host driver for MX2 and MX3 proccessor
[pandora-u-boot.git] / cpu / arm926ejs / mx27 / generic.c
index 47fa4b4..9b4ff02 100644 (file)
@@ -23,6 +23,9 @@
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#ifdef CONFIG_MXC_MMC
+#include <asm/arch/mxcmmc.h>
+#endif
 
 /*
  *  get the system pll clock in Hz
@@ -169,6 +172,19 @@ int cpu_eth_init(bd_t *bis)
 #endif
 }
 
+/*
+ * Initializes on-chip MMC controllers.
+ * to override, implement board_mmc_init()
+ */
+int cpu_mmc_init(bd_t *bis)
+{
+#ifdef CONFIG_MXC_MMC
+       return mxc_mmc_init(bis);
+#else
+       return 0;
+#endif
+}
+
 void imx_gpio_mode(int gpio_mode)
 {
        struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE;