summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-01-04 17:07:15 +0800
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>2015-01-07 12:25:05 +0530
commitd87cbeccc54da2d39e1363e423953d8e24fb2008 (patch)
treee73336cf9aa53dc415dc90191474d1538987ba54
parenta2358783875580fc7ad5e1554cb1a74a79360df6 (diff)
downloadu-boot-imx-d87cbeccc54da2d39e1363e423953d8e24fb2008.zip
u-boot-imx-d87cbeccc54da2d39e1363e423953d8e24fb2008.tar.gz
u-boot-imx-d87cbeccc54da2d39e1363e423953d8e24fb2008.tar.bz2
mx6sxsabresd: support qspi flash bigger than 16MB
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>
-rw-r--r--include/configs/mx6sxsabresd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h
index 469d250..b40dc19 100644
--- a/include/configs/mx6sxsabresd.h
+++ b/include/configs/mx6sxsabresd.h
@@ -240,10 +240,15 @@
#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