]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: Add KeemBay Master capability
authorBaikal Electronics <support@baikalelectronics.ru>
Sun, 20 Sep 2020 11:28:54 +0000 (14:28 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 29 Sep 2020 16:22:27 +0000 (17:22 +0100)
commite69cc2957a7fc21cb4ae9029f8a1c3d690578416
tree6073dbb8a4893e4fb6de9a6c1fd3625660d30d47
parentedf45d63486d4a5396a4fb6a57b06ba1dd454a5d
spi: dw: Add KeemBay Master capability

In a further commit we'll have to get rid of the update_cr0() callback and
define a DW SSI capability instead. Since Keem Bay master/slave
functionality is controller by the CTRL0 register bitfield, we need to
first move the master mode selection into the internal corresponding
update_cr0 method, which would be activated by means of the dedicated
DW_SPI_CAP_KEEMBAY_MST capability setup.

Note this will be also useful if the driver will be ever altered to
support the DW SPI slave interface.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20200920112914.26501-11-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-dw.h