]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Enable Nand driver support for zynqmp
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 27 Feb 2015 09:32:18 +0000 (15:02 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Mar 2015 13:11:11 +0000 (14:11 +0100)
Enable Nand driver support for ZynqMP
It uses the arasan nand flash controller
Also increased the malloc size as per nand
driver requirement

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/include/asm/arch-zynqmp/hardware.h
include/configs/xilinx_zynqmp.h

index 8f4e7909d6c9d27fabbe2214451c8299dadded18..3bb8252eb6957553fdfeead5a867069783eeaefb 100644 (file)
@@ -21,6 +21,8 @@
 #define ZYNQ_SDHCI_BASEADDR0   0xFF160000
 #define ZYNQ_SDHCI_BASEADDR1   0xFF170000
 
+#define ARASAN_NAND_BASEADDR   0xFF100000
+
 #define ZYNQMP_SATA_BASEADDR   0xFD0C0000
 
 #define ZYNQMP_CRL_APB_BASEADDR        0xFF5E0000
index 3aad29b5a28da425fb25550f58a58d9156c23606..b8a426d3036516ae3f149c50ccc2113ad852f367 100644 (file)
@@ -52,7 +52,7 @@
 #define COUNTER_FREQUENCY              4000000
 
 /* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 0x400000)
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 0x800000)
 
 /* Serial setup */
 #define CONFIG_ZYNQ_SERIAL_UART0
@@ -60,6 +60,7 @@
 
 #define CONFIG_ZYNQMP_QSPI
 #define CONFIG_ZYNQ_SDHCI0
+#define CONFIG_NAND_ZYNQMP
 
 #define CONFIG_CONS_INDEX              0
 #define CONFIG_BAUDRATE                        115200
 # define CONFIG_CMD_SF
 #endif
 
+/* NAND */
+#ifdef CONFIG_NAND_ZYNQMP
+# 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
+
 #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
 # define CONFIG_MMC
 # define CONFIG_GENERIC_MMC