diff options
author | Yen Lin <yelin@nvidia.com> | 2013-12-18 11:18:46 -0700 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-12-19 00:00:51 +0530 |
commit | 60acde43d71cf0701b1124998bf4ab457c6640b6 (patch) | |
tree | d78d680d6ee6100717a4a78472a82b796a83c4b5 /include/configs/dra7xx_evm.h | |
parent | 16f47c9c510a61ee91d6b9d02dd723522beff80f (diff) | |
download | u-boot-imx-60acde43d71cf0701b1124998bf4ab457c6640b6.zip u-boot-imx-60acde43d71cf0701b1124998bf4ab457c6640b6.tar.gz u-boot-imx-60acde43d71cf0701b1124998bf4ab457c6640b6.tar.bz2 |
spi: tegra: clear RDY bit prior to every transfer
The RDY bit indicates that a transfer is complete. This needs to be
cleared by SW before every single HW transaction, rather than only
at the start of each SW transaction (those being made up of n HW
transactions).
It seems that earlier HW may have cleared this bit autonomously when
starting a new transfer, and hence this code was not needed in practice.
However, this is generally a good idea in all cases. In Tegra124, the
HW behaviour appears to have changed, and SW must explicitly clear this
bit. Otherwise, SW will believe that transfers have completed when they
have not, and may e.g. read stale data from the RX FIFO.
Signed-off-by: Yen Lin <yelin@nvidia.com>
[swarren, rewrote commit description, unified duplicate RDY clearing code
and moved it right before the start of the HW transaction, unconditionally
exit loop after reading RX data, rather than checking if TX FIFO is empty,
since it is guaranteed to be]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/configs/dra7xx_evm.h')
0 files changed, 0 insertions, 0 deletions