mx6sxsabresd: support qspi flash bigger than 16MB
authorPeng Fan <Peng.Fan@freescale.com>
Sun, 4 Jan 2015 09:07:15 +0000 (17:07 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Wed, 7 Jan 2015 06:55:05 +0000 (12:25 +0530)
mx6sxsabresd revb board uses 32MB qspi flash, reva board uses 16MB qspi
flash. Currently, the default supported platform is revb board.

If want to configure for reva board, just define CONFIG_MX6SX_SABRESD_REVA
in mx6sxsabresd.h to support reva qspi flashes whose size is 16MB.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
include/configs/mx6sxsabresd.h

index 469d250973a3cd754b2d10db9785b13396f35f08..b40dc19134b593a759be6542537246551c2035ca 100644 (file)
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_CMD_SF
 #define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_BAR
 #define CONFIG_SPI_FLASH_SPANSION
 #define CONFIG_SPI_FLASH_STMICRO
 #define CONFIG_SYS_FSL_QSPI_LE
+#ifdef CONFIG_MX6SX_SABRESD_REVA
 #define FSL_QSPI_FLASH_SIZE            SZ_16M
+#else
+#define FSL_QSPI_FLASH_SIZE            SZ_32M
+#endif
 #define FSL_QSPI_FLASH_NUM             2
 #endif