[U-Boot] [PATCH 04/12] configs: ls2080aqds: Enable QSPI flash support

Yuan Yao yao.yuan at freescale.com
Wed Mar 2 11:31:55 CET 2016


From: Yuan Yao <yao.yuan at nxp.com>

Enable QSPI flash related configure options.

Signed-off-by: Yuan Yao <yao.yuan at nxp.com>
---
 include/configs/ls2080aqds.h | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h
index 3edb0b9..3cba10a 100644
--- a/include/configs/ls2080aqds.h
+++ b/include/configs/ls2080aqds.h
@@ -292,11 +292,22 @@ unsigned long get_board_ddr_clk(void);
 #define I2C_MUX_CH_DEFAULT      0x8
 
 /* SPI */
-#ifdef CONFIG_FSL_DSPI
+#if defined(CONFIG_FSL_QSPI) || defined(CONFIG_FSL_DSPI)
 #define CONFIG_CMD_SF
 #define CONFIG_SPI_FLASH
 #endif
 
+#ifdef CONFIG_FSL_DSPI
+#define CONFIG_SPI_FLASH_STMICRO
+#define CONFIG_SPI_FLASH_SST
+#define CONFIG_SPI_FLASH_EON
+#endif
+
+#ifdef CONFIG_FSL_QSPI
+#define CONFIG_SPI_FLASH_SPANSION
+#define FSL_QSPI_FLASH_SIZE		(1 << 26) /* 64MB */
+#define FSL_QSPI_FLASH_NUM		4
+#endif
 /*
  * MMC
  */
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list