ramips: second spi device on rt5350
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 25 Aug 2014 06:35:42 +0000 (06:35 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 25 Aug 2014 06:35:42 +0000 (06:35 +0000)
commitdb1ac645f6044248f16ca25f24dbddcf1fb9453c
tree7ec1464c2f5b48556404e9946b4dd2699ba4bd1d
parent3e6ef00473f17dae3a69eb5bdb60568a422af2b5
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42276 3c298f89-4303-0410-b956-a3cf2f4a3e73
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]