diff options
author | 2018-06-20 09:34:41 +0200 | |
---|---|---|
committer | 2018-06-20 14:48:21 +0100 | |
commit | 35c9d461a436101a31d4ece7e5de5f4df6b59a5e (patch) | |
tree | a5775b46c658eba3ff621f8412993bfb545344c8 /drivers/spi/spi-fsl-dspi.c | |
parent | spi: spi-fsl-dspi: XSPI FIFO handling (in TCFQ mode) (diff) | |
download | linux-35c9d461a436101a31d4ece7e5de5f4df6b59a5e.tar.gz linux-35c9d461a436101a31d4ece7e5de5f4df6b59a5e.tar.bz2 linux-35c9d461a436101a31d4ece7e5de5f4df6b59a5e.zip |
spi: spi-fsl-dspi: Advertise 32 bit for XSPI mode
Signed-off-by: Esben Haabendal <eha@deif.com>
Acked-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 67cd2e901255..eed55491b2c9 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -1001,7 +1001,6 @@ static int dspi_probe(struct platform_device *pdev) master->cleanup = dspi_cleanup; master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; - master->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 16); pdata = dev_get_platdata(&pdev->dev); if (pdata) { @@ -1033,6 +1032,11 @@ static int dspi_probe(struct platform_device *pdev) } } + if (dspi->devtype_data->xspi_mode) + master->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32); + else + master->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 16); + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(base)) { |