Skip to content

Commit

Permalink
spi/qspi: Add dual/quad read mode bit.
Browse files Browse the repository at this point in the history
Add dual/quad read mode bit flag for the master controller.
These check will be used in the spi framework to determine
whether the master controller can do dual/quad read respectively.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sourav Poddar authored and Mark Brown committed Sep 26, 2013
1 parent 4a10c2a commit 633795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-ti-qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ static int ti_qspi_probe(struct platform_device *pdev)
if (!master)
return -ENOMEM;

master->mode_bits = SPI_CPOL | SPI_CPHA;
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD;

master->bus_num = -1;
master->flags = SPI_MASTER_HALF_DUPLEX;
Expand Down

0 comments on commit 633795b

Please sign in to comment.