spi: nxp-fspi: add octal mode flag bit for octal support
authorYogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Tue, 15 Jan 2019 10:05:29 +0000 (10:05 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:28:46 +0000 (12:28 +0000)
Add octal mode flags for octal I/O data transfer support.
NXP FlexSPI controller supports 8 lines Rx/Tx data transfer.

Signed-off-by: Yogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c

index 75c6448..0327216 100644 (file)
@@ -953,8 +953,8 @@ static int nxp_fspi_probe(struct platform_device *pdev)
        if (!ctlr)
                return -ENOMEM;
 
-       ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD |
-                         SPI_TX_DUAL | SPI_TX_QUAD;
+       ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_RX_OCTAL |
+                         SPI_TX_DUAL | SPI_TX_QUAD | SPI_TX_OCTAL;
 
        f = spi_controller_get_devdata(ctlr);
        f->dev = dev;