diff options
author | Ye Li <ye.li@nxp.com> | 2019-08-14 14:31:40 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-10-08 17:36:37 +0300 |
commit | 9699fb4de55be35ac607cecbbd10c62a52cd7cfe (patch) | |
tree | c594109e07667d0bbda6af7d4381cb6d613ae105 /drivers/spi | |
parent | ce7575a86d7135e11542fac2eee642acdb291266 (diff) | |
download | u-boot-9699fb4de55be35ac607cecbbd10c62a52cd7cfe.tar.xz |
spi: fsl_qspi: Add support for QSPI on iMX7ULP
Add the compatible string and driver data for iMX7ULP platform
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/fsl_qspi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index d759e98d89..8e2a09df36 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -84,6 +84,7 @@ enum fsl_qspi_devtype { FSL_QUADSPI_VYBRID, FSL_QUADSPI_IMX6SX, FSL_QUADSPI_IMX6UL_7D, + FSL_QUADSPI_IMX7ULP, }; struct fsl_qspi_devtype_data { @@ -169,6 +170,14 @@ static const struct fsl_qspi_devtype_data imx6ul_7d_data = { .driver_data = 0, }; +static const struct fsl_qspi_devtype_data imx7ulp_data = { + .devtype = FSL_QUADSPI_IMX7ULP, + .rxfifo = 64, + .txfifo = 64, + .ahb_buf_size = 128, + .driver_data = 0, +}; + static u32 qspi_read32(u32 flags, u32 *addr) { return flags & QSPI_FLAG_REGMAP_ENDIAN_BIG ? @@ -1144,6 +1153,7 @@ static const struct udevice_id fsl_qspi_ids[] = { { .compatible = "fsl,imx6sx-qspi", .data = (ulong)&imx6sx_data }, { .compatible = "fsl,imx6ul-qspi", .data = (ulong)&imx6ul_7d_data }, { .compatible = "fsl,imx7d-qspi", .data = (ulong)&imx6ul_7d_data }, + { .compatible = "fsl,imx7ulp-qspi", .data = (ulong)&imx7ulp_data }, { } }; |