mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: mediatek: advertise the availability of Dual and Quad mode
@ 2023-05-23 11:26 qii.wang
  2023-05-23 11:33 ` Mark Brown
  2023-05-25 15:46 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: qii.wang @ 2023-05-23 11:26 UTC (permalink / raw)
  To: broonie
  Cc: matthias.bgg, angelogioacchino.delregno, linux-spi,
	linux-arm-kernel, linux-kernel, linux-mediatek, srv_heupstream,
	leilk.liu, qii.wang, Tim . Kuo

From: Qii Wang <qii.wang@mediatek.com>

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>
---
 drivers/spi/spi-mt65xx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-25 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23 11:26 [PATCH] spi: mediatek: advertise the availability of Dual and Quad mode qii.wang
2023-05-23 11:33 ` Mark Brown
2023-05-25  6:21   ` Qii Wang (王琪)
2023-05-25  9:53     ` Mark Brown
2023-05-25 15:46 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®