diff options
author | Vaishnav Achath <vaishnav.a@ti.com> | 2023-10-13 12:26:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-23 15:30:05 +0300 |
commit | 75223bbea840e125359fc63942b5f93462b474c6 (patch) | |
tree | 776a5769f2c6f6ab595cffa526b559259a682718 /Documentation/devicetree/bindings/spi | |
parent | 692225015c82d3eece55a07d16cd24c4dc63a6a5 (diff) | |
download | linux-75223bbea840e125359fc63942b5f93462b474c6.tar.xz |
spi: omap2-mcspi: Add FIFO support without DMA
Currently, the built-in 64-byte FIFO on the MCSPI controller is not
enabled in PIO mode and is used only when DMA is enabled. Enable the
FIFO in PIO mode by default for transactions larger than the FIFO depth
and fallback only if FIFO is not available. When DMA is not enabled,
it is efficient to enable the RX FIFO almost full and TX FIFO almost
empty events after each FIFO fill instead of each word.
Update omap2_mcspi_set_fifo() to enable the events accordingly and
also rely on OMAP2_MCSPI_CHSTAT_RXS for the last transfer instead of the
FIFO events to handle the case when the transfer size is not a multiple
of FIFO depth.
See J721E Technical Reference Manual (SPRUI1C), section 12.1.5
for further details: http://www.ti.com/lit/pdf/spruil1
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20231013092629.19005-1-vaishnav.a@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/spi')
0 files changed, 0 insertions, 0 deletions