original_kernel/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
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
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
dev-flash.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
dev-pcmcia.c
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
dev-wdt.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
early_printk.c
gpio.c
irq.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02: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