--- /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
+ */
+
+#include <nand.h>
+
+extern int zynq_nand_init(struct nand_chip *nand_chip);
xemacps_sinit.o xemacps_bdring.o \
xemacps.o xgmac.o
COBJS-$(CONFIG_CMD_SPI) += xilinx_qspi.o xilinx_qspips.o
-COBJS-$(CONFIG_CMD_NAND) += xilinx_nandps.o
COBJS := $(sort $(COBJS-y))
#include <common.h>
#include <asm/arch/mmc.h>
+#include <asm/arch/nand.h>
#include <asm/arch/xparameters.h>
#include <netdev.h>
#include <zynqpl.h>
}
#endif
+#ifdef CONFIG_CMD_NAND
+int board_nand_init(struct nand_chip *nand_chip)
+{
+ return zynq_nand_init(nand_chip);
+}
+#endif
+
int dram_init(void)
{
gd->ram_size = PHYS_SDRAM_1_SIZE;
COBJS-$(CONFIG_NAND_SPEAR) += spr_nand.o
COBJS-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
COBJS-$(CONFIG_NAND_PLAT) += nand_plat.o
+COBJS-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
endif
COBJS := $(COBJS-y)
#include <common.h>
#include <malloc.h>
+#include <asm/arch/nand.h>
#include <linux/mtd/compat.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/nand_ecc.h>
-#include "xilinx_nand_smc.h"
+#include "zynq_nand.h"
/********** stubs - Make Linux code compile in this environment **************/
#define EIO 5
#ifdef LINUX_ONLY_NOT_UBOOT
static int __init xnandps_probe(struct platform_device *pdev)
#else
-int board_nand_init(struct nand_chip *nand_chip)
+int zynq_nand_init(struct nand_chip *nand_chip)
#endif
{
struct xnandps_info *xnand;
/*
* NAND Flash settings
*/
+#define CONFIG_NAND_ZYNQ
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NAND_LOCK_UNLOCK
#define CONFIG_SYS_MAX_NAND_DEVICE 1
* NAND Flash settings
*/
#if defined(CONFIG_ZC770_XM011)
+#define CONFIG_NAND_ZYNQ
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NAND_LOCK_UNLOCK
#define CONFIG_SYS_MAX_NAND_DEVICE 1