[U-Boot] [PATCH v2 24/35] zynq-common: Define CONFIG_NAND_ZYNQ

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Wed Dec 18 16:30:09 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>
CC: Marek Vasut <marex at denx.de>
Cc: Scott Wood <scottwood at freescale.com>
---
 README                        |  4 ++++
 include/configs/zynq-common.h | 10 ++++++++++
 2 files changed, 14 insertions(+)

diff --git a/README b/README
index 8f0b38c..937160c 100644
--- a/README
+++ b/README
@@ -3920,6 +3920,10 @@ but it can not erase, write this NOR flash by SRIO or PCIE interface.
 	environment. If redundant environment is used, it will be copied to
 	CONFIG_NAND_ENV_DST + CONFIG_ENV_SIZE.
 
+- CONFIG_NAND_ZYNQ
+
+	Define this for enabling zynq nand controller with onfi detection support.
+
 - CONFIG_ENV_IS_IN_UBI:
 
 	Define this if you have an UBI volume that you want to use for the
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index e2ef61d..bb615d0 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