diff options
author | Maksim Kiselev <bigunclemax@gmail.com> | 2023-06-24 16:16:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-09 22:51:27 +0100 |
commit | 25453d797d7abe8801951c8290ea11ea8bba7b96 (patch) | |
tree | 78390ca44a508bd264041008501a21282b63737d | |
parent | 0605d9fb411f3337482976842a3901d6c125d298 (diff) | |
download | lwn-25453d797d7abe8801951c8290ea11ea8bba7b96.tar.gz lwn-25453d797d7abe8801951c8290ea11ea8bba7b96.zip |
spi: sun6i: add dual and quad SPI modes support for R329/D1/R528/T113s
Listed SoCs have SPI controllers that can operate in dual or quad modes.
This patch adds dual/quad mode bits for spi_master on these SoCS.
Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Link: https://lore.kernel.org/r/20230624131632.2972546-3-bigunclemax@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-sun6i.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index cec2747235ab..e9144d76bcdb 100644 --- a/drivers/spi/spi-sun6i.c +++ b/drivers/spi/spi-sun6i.c @@ -761,6 +761,7 @@ static const struct sun6i_spi_cfg sun8i_h3_spi_cfg = { static const struct sun6i_spi_cfg sun50i_r329_spi_cfg = { .fifo_depth = SUN8I_FIFO_DEPTH, + .mode_bits = SPI_RX_DUAL | SPI_TX_DUAL | SPI_RX_QUAD | SPI_TX_QUAD, }; static const struct of_device_id sun6i_spi_match[] = { |