Home
last modified time | relevance | path

Searched hist:dff0109496846fd9787b6cdc0941217ecdf0ae28 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/spi/
H A Dmxc_spi.cdff0109496846fd9787b6cdc0941217ecdf0ae28 Thu Jan 20 07:53:06 UTC 2011 Anatolij Gustschin <agust@denx.de> SPI: mxc_spi: fix swapping bug and add missing swapping in unaligned rx case

We need to shift only one time in each cycle in the swapping loop
for unaligned tx case. Currently two byte shift operations are
performed in each loop cycle causing zero gaps in the transmited
data, so not all data scheduled for transmition is actually
transmited.

The proper swapping in unaligned rx case is missing, so add it
as we need to put the received data into the rx buffer in the
correct byte order.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>