1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00
Files
u-boot-megous/drivers/spi
Philipp Tomsich 51a644a1b8 rockchip: spi: add driver-data and a 'rxonly_manages_fifo' flag
The SPI controller's documentation (I only had access to the RK3399,
RK3368 and PX30 TRMs) specifies that, when operating in master-mode,
the controller will stop the SCLK to avoid RXFIFO overruns and TXFIFO
underruns.  Looks like my worries that we'd need to support DMA-330
(aka PL330) to make any further progress were unfounded.

This adds a driver-data structure to capture hardware-specific
settings of individual controller instances (after all, we don't know
if all versions are well-behaved) and adds a 'master_manages_fifo'
flag to it.  The first use of said flag is in the optimised
receive-only transfer-handler, which can now request 64Kframe
(i.e. 128KByte) bursts of data on each reprogramming of CTRLR1
(i.e. every time through the loop).

This improves throughput to 46.85MBit/s (a 94.65% bus-utilisation).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2019-05-01 00:00:04 +02:00
..
2018-11-27 21:06:53 +05:30
2018-11-27 21:06:53 +05:30
2018-11-27 21:06:53 +05:30
2019-04-17 17:43:19 +05:30
2018-11-27 21:06:53 +05:30
2019-04-17 17:43:19 +05:30
2018-12-03 10:44:10 -05:00
2018-11-27 21:06:53 +05:30
2018-10-09 04:40:27 -06:00
2018-11-27 21:06:53 +05:30
2018-11-27 21:06:53 +05:30
2018-11-27 21:06:53 +05:30
2019-04-12 16:09:13 +02:00
2019-04-17 17:43:54 +05:30