[U-Boot] [PATCH v3 2/7] zynq-common: Define CONFIG_NAND_ZYNQ
Siva Durga Prasad Paladugu
siva.durga.paladugu at xilinx.com
Mon Feb 17 13:26:26 CET 2014
From: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
Defined CONFIG_NAND_ZYNQ for enabling zynq nand controller with
onfi detection support.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
Changes for v3:
-Separated out the nand patch series
as per Michal comment.
Changes for v2:
-None
---
include/configs/zynq-common.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index e7a8e9f..08adaa2 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -91,6 +91,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.7.4
More information about the U-Boot
mailing list