ramips: second spi device on rt5350
authorJohn Crispin <john@openwrt.org>
Mon, 1 Sep 2014 13:21:48 +0000 (13:21 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 1 Sep 2014 13:21:48 +0000 (13:21 +0000)
commit572ebc50a94b3e7208ed5c9775d5ceb0841a64f8
tree82322c7c49d5a750d21fa512d5e7d2c52402db67
parent3aa78801556bcb8ced7f56444e69070fa8c4f9ad
ramips: second spi device on rt5350

This is based on Jon Smirl's patch with the following changes:
- Set CS polarity as low by default.
- Add support for changing CS polarity.
- Add support for changing LSB/MSB.
- Add support for changing SPI mode.
- Fix indentations.

I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed.

Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42276

SVN-Revision: 42375
target/linux/ramips/dts/rt5350.dtsi
target/linux/ramips/patches-3.10/0222-rt5350-spi-second-device.patch [new file with mode: 0644]
target/linux/ramips/patches-3.14/0104-rt5350-spi-second-device.patch [new file with mode: 0644]