--- /dev/null
+/*
+ * Copyright 2012 Joe Hershberger <joe.hershberger@ni.com>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+extern int zynq_mmc_init(bd_t *bd);
xemacps.o xgmac.o
COBJS-$(CONFIG_CMD_SPI) += xilinx_qspi.o xilinx_qspips.o
COBJS-$(CONFIG_CMD_NAND) += xilinx_nandps.o
-COBJS-$(CONFIG_CMD_MMC) += mmc.o
COBJS := $(sort $(COBJS-y))
*/
#include <common.h>
+#include <asm/arch/mmc.h>
#include <asm/arch/xparameters.h>
#include <netdev.h>
#include <zynqpl.h>
}
#endif
+#ifdef CONFIG_CMD_MMC
+int board_mmc_init(bd_t *bd)
+{
+ return zynq_mmc_init(bd);
+}
+#endif
+
int dram_init(void)
{
gd->ram_size = PHYS_SDRAM_1_SIZE;
COBJS-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o
COBJS-$(CONFIG_PXA_MMC) += pxa_mmc.o
COBJS-$(CONFIG_S5P_MMC) += s5p_mmc.o
+COBJS-$(CONFIG_ZYNQ_MMC) += zynq_mmc.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
#include <common.h>
+#include <asm/arch/mmc.h>
#include <asm/arch/xparameters.h>
#include <asm/errno.h>
#include <malloc.h>
#include <mmc.h>
-#include "sd_hardware.h"
+#include "zynq_mmc.h"
#define SD_BASEADDR XPSS_SDIO0_BASEADDR
return 0;
}
-int board_mmc_init(bd_t *bd)
+int zynq_mmc_init(bd_t *bd)
{
struct mmc *mmc;