summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-04-22 14:56:49 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-04-30 11:39:27 +0200
commit293eb33fcb95e2b2bae71edf97b0ca3bdd6ba98d (patch)
tree6fa1c9a39f7d94ba26bd165d14fdae5699edf99b /board
parentf97d7e8be96888b622309d9563da0ab3fba0534b (diff)
downloadu-boot-imx-293eb33fcb95e2b2bae71edf97b0ca3bdd6ba98d.zip
u-boot-imx-293eb33fcb95e2b2bae71edf97b0ca3bdd6ba98d.tar.gz
u-boot-imx-293eb33fcb95e2b2bae71edf97b0ca3bdd6ba98d.tar.bz2
mmc: Add support for Xilinx Zynq sdhci controller
Add support for SD, MMC and eMMC card on Xilinx Zynq. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/xilinx/zynq/board.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 57d8f53..1589d21 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -54,6 +54,23 @@ int board_eth_init(bd_t *bis)
}
#endif
+#ifdef CONFIG_CMD_MMC
+int board_mmc_init(bd_t *bd)
+{
+ int ret = 0;
+
+#if defined(CONFIG_ZYNQ_SDHCI)
+# if defined(CONFIG_ZYNQ_SDHCI0)
+ ret = zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR0);
+# endif
+# if defined(CONFIG_ZYNQ_SDHCI1)
+ ret |= zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR1);
+# endif
+#endif
+ return ret;
+}
+#endif
+
int dram_init(void)
{
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;