zynq: nand: Enable Nand flash controller driver a zynq board
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 27 Sep 2016 05:25:47 +0000 (10:55 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 14:27:50 +0000 (15:27 +0100)
Enable zynq Nand flash controller driver for a zynq ZC770
XM011(dc2) board.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
configs/zynq_zc770_xm011_defconfig
include/configs/zynq-common.h

index 56c285115453a1b3cc668026dca9d74fcbe5fb33..2f4fc1e37db5f1e33398b4fef676839acdacb664 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="Zynq> "
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_NAND=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_TFTPPUT=y
@@ -22,4 +23,5 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_CACHE=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_NAND_ZYNQ=y
 CONFIG_ZYNQ_GEM=y
index 4f0253cd7d4c2576385f763c4ee4830241745568..3a2080f9e548c4cebf830e8552db3264e9138c83 100644 (file)
 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 #endif
 
+#ifdef CONFIG_NAND_ZYNQ
+#define CONFIG_CMD_NAND_LOCK_UNLOCK
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#define CONFIG_MTD_DEVICE
+#endif
+
 /* MMC */
 #if defined(CONFIG_ZYNQ_SDHCI)
 # define CONFIG_MMC