[U-Boot] [PATCH 23/34] zynq-common: Define CONFIG_NAND_ZYNQ

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Tue Nov 5 18:46:44 CET 2013


Defined CONFIG_NAND_ZYNQ for enabling zynq nand controller with
onfi detection support.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
 include/configs/zynq-common.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index ffe1b93..97b49d4 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -102,6 +102,16 @@
 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 #endif
 
+/* NAND */
+#ifdef CONFIG_NAND_ZYNQ
+# define CONFIG_CMD_NAND
+# define CONFIG_CMD_NAND_LOCK_UNLOCK
+# define CONFIG_SYS_MAX_NAND_DEVICE	1
+# define CONFIG_SYS_NAND_SELF_INIT
+# define CONFIG_SYS_NAND_ONFI_DETECTION
+# define CONFIG_MTD_DEVICE
+#endif
+
 /* MMC */
 #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
 # define CONFIG_MMC
-- 
1.8.3




More information about the U-Boot mailing list