[U-Boot] [U-Boot, 8/8] rockchip: spi: make optimised receive-handler unaligned-safe

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Tue Apr 23 14:31:21 UTC 2019


> To support unaligned output buffers (i.e. 'in' in the terminology of
> the SPI framework), this change splits each 16bit FIFO element after
> reading and writes them to memory in two 8bit transactions.  With this
> change, we can now always use the optimised mode for receive-only
> transcations independent on the alignment of the target buffer.
> 
> Given that we'll run with caches on, the impact should be negligible:
> as expected, this has no adverse impact on throughput if running with
> a 960MHz LPLL configuration.
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
> 
>  drivers/spi/rk_spi.c | 19 ++++++-------------
>  1 file changed, 6 insertions(+), 13 deletions(-)
> 

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list