diff options
author | Qii Wang <qii.wang@mediatek.com> | 2023-05-23 13:26:08 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-25 11:55:45 +0200 |
commit | dcb2d27444baeba91701bcab38d60c219cb47463 (patch) | |
tree | 3ee3a61d0c2825ce1e4212f2765a6b9a7d495c10 | |
parent | spi: Merge up v6.4-rc3 (diff) | |
download | linux-dcb2d27444baeba91701bcab38d60c219cb47463.tar.xz linux-dcb2d27444baeba91701bcab38d60c219cb47463.zip |
spi: mediatek: advertise the availability of Dual and Quad mode
this patch advertise the availability of Dual and Quad SPI mode
for ipm design.
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Tim.Kuo <Tim.kuo@mediatek.com>
Link: https://lore.kernel.org/r/20230523112608.10298-1-qii.wang@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-mt65xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 21c321f43766..1501ee8459ff 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -1144,7 +1144,8 @@ static int mtk_spi_probe(struct platform_device *pdev) if (mdata->dev_comp->must_tx) master->flags = SPI_MASTER_MUST_TX; if (mdata->dev_comp->ipm_design) - master->mode_bits |= SPI_LOOP; + master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL | + SPI_RX_QUAD | SPI_TX_QUAD; if (mdata->dev_comp->ipm_design) { mdata->dev = dev; |