Skip to content
Snippets Groups Projects
Commit b63b4631 authored by Vignesh R's avatar Vignesh R Committed by Jagan Teki
Browse files

spi: cadence_qspi_apb: Use 32 bit indirect read transaction when possible


According to Section 11.15.4.9.1 Indirect Read Controller of K2G SoC
TRM SPRUHY8D[1], the external master is only permitted to issue 32-bit
data interface reads until the last word of an indirect transfer
So, make sure that QSPI indirect reads are 32 bit sized except for the
final read. If the rxbuf is unaligned then use bounce buffer, so that
readsl() can be used instead of readsb() to avoid non 32-bit accesses.

[1]www.ti.com/lit/ug/spruhy8d/spruhy8d.pdf

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 57897c13
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment