]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
MXC: Fix byte-ordering in SPI driver for i.MX31/i.MX51
authorStefano Babic <sbabic@denx.de>
Fri, 20 Aug 2010 10:05:03 +0000 (12:05 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Sep 2010 12:42:14 +0000 (14:42 +0200)
commit2f721d17339ee22bbc14fb0bb1dad20b82871923
tree9dba3e401d9f16e48d6a9b832a00b53cb2f0111c
parent9f481e95baaca2a5a739f930c16b1cc485b0c1f3
MXC: Fix byte-ordering in SPI driver for i.MX31/i.MX51

The actual SPI driver for i.MX31 and i.MX51 controller
use a wrong byte ordering, because it is supposed
to work only with Freescale's devices, as the Power
Controllers (PMIC). The driver is not suitable for
general purposes, because the buffers passed to spi_xfer
must be 32-bit aligned, as it is used mainly to send
integer to PMIC devices.

The patch drops any kind of limitation and makes the
driver useful with devices controlled sending commands
composed by single bytes (or by a odd number of bytes), such as
spi flash, sensor, etc.

Because the byte ordering is changed,
any current driver using this controller must be adapted, too.

Signed-off-by: Stefano Babic <sbabic@denx.de>
drivers/misc/fsl_pmic.c
drivers/spi/mxc_spi.c