summaryrefslogtreecommitdiff
path: root/api/api.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-01-20 07:53:06 +0000
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-02 00:54:43 +0100
commitdff0109496846fd9787b6cdc0941217ecdf0ae28 (patch)
tree5a61d1b8a4a9cf1c5079fb8221db4816f0a70d5a /api/api.c
parentc9d59c7fbe07aa9c519cf113107851cf4b3e1f54 (diff)
downloadu-boot-imx-dff0109496846fd9787b6cdc0941217ecdf0ae28.zip
u-boot-imx-dff0109496846fd9787b6cdc0941217ecdf0ae28.tar.gz
u-boot-imx-dff0109496846fd9787b6cdc0941217ecdf0ae28.tar.bz2
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>
Diffstat (limited to 'api/api.c')
0 files changed, 0 insertions, 0 deletions