Re: [U-Boot] [PATCH v3 2/2] zynq: nand: Enable Nand flash controller driver a zynq board

2016-10-18 Thread Michal Simek
On 27.9.2016 07:25, Siva Durga Prasad Paladugu wrote:
> Enable zynq Nand flash controller driver for a zynq ZC770
> XM011(dc2) board.
> 
> Signed-off-by: Siva Durga Prasad Paladugu 
> ---
> Changes for v3:
> - None
> Changes for v2:
> - Corrected the from address
> ---
>  configs/zynq_zc770_xm011_defconfig | 2 ++
>  include/configs/zynq-common.h  | 7 +++
>  2 files changed, 9 insertions(+)
> 
> diff --git a/configs/zynq_zc770_xm011_defconfig 
> b/configs/zynq_zc770_xm011_defconfig
> index b841fdc..3ce7114 100644
> --- a/configs/zynq_zc770_xm011_defconfig
> +++ b/configs/zynq_zc770_xm011_defconfig
> @@ -4,6 +4,7 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011"
>  CONFIG_FIT=y
>  CONFIG_FIT_VERBOSE=y
>  CONFIG_FIT_SIGNATURE=y
> +CONFIG_NAND_ZYNQ=y
>  CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM011"
>  CONFIG_SYS_NO_FLASH=y
>  CONFIG_SPL=y
> @@ -18,6 +19,7 @@ CONFIG_CMD_DHCP=y
>  CONFIG_CMD_MII=y
>  CONFIG_CMD_PING=y
>  CONFIG_CMD_CACHE=y
> +CONFIG_CMD_NAND=y
>  CONFIG_NET_RANDOM_ETHADDR=y
>  CONFIG_SPL_DM_SEQ_ALIAS=y
>  CONFIG_ZYNQ_GEM=y
> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
> index 260df2f..27c02e5 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -76,6 +76,13 @@
>  # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
>  #endif
>  
> +#ifdef CONFIG_NAND_ZYNQ
> +#define CONFIG_CMD_NAND_LOCK_UNLOCK
> +#define CONFIG_SYS_MAX_NAND_DEVICE   1
> +#define CONFIG_SYS_NAND_ONFI_DETECTION
> +#define CONFIG_MTD_DEVICE
> +#endif
> +
>  /* MMC */
>  #if defined(CONFIG_ZYNQ_SDHCI)
>  # define CONFIG_MMC
> 

Applied both to my tree.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs





signature.asc
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 2/2] zynq: nand: Enable Nand flash controller driver a zynq board

2016-09-27 Thread Siva Durga Prasad Paladugu
Enable zynq Nand flash controller driver for a zynq ZC770
XM011(dc2) board.

Signed-off-by: Siva Durga Prasad Paladugu 
---
Changes for v3:
- None
Changes for v2:
- Corrected the from address
---
 configs/zynq_zc770_xm011_defconfig | 2 ++
 include/configs/zynq-common.h  | 7 +++
 2 files changed, 9 insertions(+)

diff --git a/configs/zynq_zc770_xm011_defconfig 
b/configs/zynq_zc770_xm011_defconfig
index b841fdc..3ce7114 100644
--- a/configs/zynq_zc770_xm011_defconfig
+++ b/configs/zynq_zc770_xm011_defconfig
@@ -4,6 +4,7 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011"
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_FIT_SIGNATURE=y
+CONFIG_NAND_ZYNQ=y
 CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM011"
 CONFIG_SYS_NO_FLASH=y
 CONFIG_SPL=y
@@ -18,6 +19,7 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_CACHE=y
+CONFIG_CMD_NAND=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_ZYNQ_GEM=y
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 260df2f..27c02e5 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -76,6 +76,13 @@
 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 #endif
 
+#ifdef CONFIG_NAND_ZYNQ
+#define CONFIG_CMD_NAND_LOCK_UNLOCK
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#define CONFIG_MTD_DEVICE
+#endif
+
 /* MMC */
 #if defined(CONFIG_ZYNQ_SDHCI)
 # define CONFIG_MMC
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot