kernel-fxtec-pro1x/arch/mips/bcm63xx
Florian Fainelli 5a6704454a MIPS: BCM63xx: Fix SPI message control register handling for BCM6338/6348.
BCM6338 and BCM6348 have a message control register width of 8 bits, instead
of 16-bits like what the SPI driver assumes right now. Also the SPI message
type shift value of 14 is actually 6 for these SoCs.
This resulted in transmit FIFO corruption because we were writing 16-bits
to an 8-bits wide register, thus spanning on the first byte of the transmit
FIFO, which had already been filed in bcm63xx_spi_fill_txrx_fifo().

Fix this by passing the message control register width and message type
shift through platform data back to the SPI driver so that it can use
it properly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Cc: jonas.gorski@gmail.com
Patchwork: https://patchwork.linux-mips.org/patch/3983/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2012-08-17 10:57:28 +02:00
..
boards MIPS: BCM63XX: Add 96328avng reference board 2012-07-24 16:33:14 +02:00
clk.c MIPS: BCM63XX: add support for "ipsec" clock 2012-07-24 16:33:09 +02:00
cpu.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
cs.c
dev-dsp.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
dev-enet.c MIPS: BCM63xx: Prevent second enet registration on BCM6338 2010-07-26 19:08:18 +01:00
dev-flash.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
dev-pcmcia.c mips: mark const init data with __initconst instead of __initdata 2012-07-19 11:23:43 +02:00
dev-rng.c MIPS: BCM63XX: add RNG driver platform_device stub 2012-07-24 16:33:10 +02:00
dev-spi.c MIPS: BCM63xx: Fix SPI message control register handling for BCM6338/6348. 2012-08-17 10:57:28 +02:00
dev-uart.c MIPS: BCM63XX: Add support for bcm6368 CPU. 2011-12-07 22:03:04 +00:00
dev-wdt.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
early_printk.c
gpio.c MIPS: BCM63xx: Fix GPIO set/get for BCM6345 2011-12-07 22:03:04 +00:00
irq.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
Kconfig MIPS: BCM63XX: Add PCIe Support for BCM6328 2012-07-24 16:33:13 +02:00
Makefile MIPS: BCM63XX: Move flash registration out of board_bcm963xx.c 2012-07-24 16:33:11 +02:00
Platform MIPS: BCM63xx: Migrate to new platform makefile style. 2010-08-05 13:25:54 +01:00
prom.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
setup.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
timer.c MIPS: BCM63xx: Convert timer locks to raw spinlocks. 2010-02-27 12:53:35 +01:00