Skip to content

Commit dcb2d27

Browse files
Qii Wangbroonie
authored andcommitted
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>
1 parent 01bc4ac commit dcb2d27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/spi/spi-mt65xx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,8 @@ static int mtk_spi_probe(struct platform_device *pdev)
11441144
if (mdata->dev_comp->must_tx)
11451145
master->flags = SPI_MASTER_MUST_TX;
11461146
if (mdata->dev_comp->ipm_design)
1147-
master->mode_bits |= SPI_LOOP;
1147+
master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL |
1148+
SPI_RX_QUAD | SPI_TX_QUAD;
11481149

11491150
if (mdata->dev_comp->ipm_design) {
11501151
mdata->dev = dev;

0 commit comments

Comments
 (0)