From 74bf550b7445436b32289cd7b0c9633f843408be Mon Sep 17 00:00:00 2001 From: Jagan Date: Thu, 28 Jun 2012 12:55:43 +0530 Subject: [PATCH] Xilinx: ARM: Add AFX QSPI module build support This patch adds the build support for the AFX QSPI module. Signed-off-by: Jagan --- boards.cfg | 1 + include/configs/zynq_afx.h | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index 5b8616d0dfa..dd555fb6124 100644 --- a/boards.cfg +++ b/boards.cfg @@ -132,6 +132,7 @@ zynq_zc770_XM011 arm armv7 zynq_common xilinx zynq_zc770_XM012 arm armv7 zynq_common xilinx zynq zynq_zc770:ZC770_XM012 zynq_zc770_XM013 arm armv7 zynq_common xilinx zynq zynq_zc770:ZC770_XM013 zynq_afx_nor arm armv7 zynq_common xilinx zynq zynq_afx:AFX_NOR +zynq_afx_qspi arm armv7 zynq_common xilinx zynq zynq_afx:AFX_QSPI zynq_zc702 arm armv7 zynq_common xilinx zynq zynq_zc706 arm armv7 zynq_common xilinx zynq zynq_cseflash arm armv7 zynq_common xilinx zynq diff --git a/include/configs/zynq_afx.h b/include/configs/zynq_afx.h index 3c2e4bf4ccf..18dfda9a458 100644 --- a/include/configs/zynq_afx.h +++ b/include/configs/zynq_afx.h @@ -54,7 +54,7 @@ /* this is to set ipaddr, ethaddr and serverip env variables. */ #define CONFIG_ZYNQ_IP_ENV -#if defined(CONFIG_AFX_NOR) +#if defined(CONFIG_AFX_NOR) || defined(CONFIG_AFX_QSPI) /* Place a Xilinx Boot ROM header in u-boot image? */ #define CONFIG_ZYNQ_XILINX_FLASH_HEADER #endif @@ -105,4 +105,23 @@ #undef CONFIG_CMD_NFS #undef CONFIG_BOOTM_NETBSD +/* + * SPI Settings + */ +#if defined(CONFIG_AFX_QSPI) +#define CONFIG_ZYNQ_SPI +#define CONFIG_CMD_SPI +#define CONFIG_SF_DEFAULT_SPEED 30000000 +#define CONFIG_SPI_FLASH +#define CONFIG_CMD_SF +#define CONFIG_SPI_FLASH_STMICRO +#define CONFIG_SPI_FLASH_WINBOND +#define CONFIG_SPI_FLASH_SPANSION + +#ifdef CONFIG_ZYNQ_XILINX_FLASH_HEADER +/* Address Xilinx boot rom should use to launch u-boot */ +#define CONFIG_ZYNQ_XIP_START XPSS_QSPI_LIN_BASEADDR +#endif +#endif + #endif /* __CONFIG_ZYNQ_AFX_H */ -- 2.47.3