summaryrefslogtreecommitdiff
path: root/include/configs/mx6sxsabresd.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-06-27 19:26:59 -0700
committerStefano Babic <sbabic@denx.de>2018-09-04 08:47:23 +0200
commit536c5c7a331d417d416dc04271b6f146db41cab0 (patch)
tree6e3dbe7e8e546435b7ed9bb51f09a03d9100c122 /include/configs/mx6sxsabresd.h
parent11ed312896c5f5814064c5d45dcb2f53dc121437 (diff)
downloadu-boot-536c5c7a331d417d416dc04271b6f146db41cab0.tar.gz
imx: imx6sx-sdb: Enable DM QSPI driver
To support DM QSPI driver - Add spi0 and spi1 alias for qspi1 and qspi2. - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string to "spi-flash" and add "num-cs" property. - Enable DM SPI/QSPI relavent configurations - Remove iomux settings of qspi2 in board codes which is not needed for DM driver. - Add sf default settings. So running "sf probe" can detect the flash Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/configs/mx6sxsabresd.h')
-rw-r--r--include/configs/mx6sxsabresd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h
index dc4181dbf8..2a7eb224c4 100644
--- a/include/configs/mx6sxsabresd.h
+++ b/include/configs/mx6sxsabresd.h
@@ -184,6 +184,10 @@
#define FSL_QSPI_FLASH_SIZE SZ_32M
#endif
#define FSL_QSPI_FLASH_NUM 2
+#define CONFIG_SF_DEFAULT_BUS 1
+#define CONFIG_SF_DEFAULT_CS 0
+#define CONFIG_SF_DEFAULT_SPEED 40000000
+#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
#endif
#ifndef CONFIG_SPL_BUILD