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

Defined CONFIG_NAND_ZYNQ for enabling zynq nand controller with onfi detection support.
Signed-off-by: Jagannadha Sutradharudu Teki jaganna@xilinx.com CC: Marek Vasut marex@denx.de Cc: Scott Wood scottwood@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
participants (1)
-
Jagannadha Sutradharudu Teki