ramips: second spi device on rt5350
authorJohn Crispin <john@openwrt.org>
Mon, 25 Aug 2014 06:35:42 +0000 (06:35 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 25 Aug 2014 06:35:42 +0000 (06:35 +0000)
commita3fd3dc7968629334b8f8ec76e3e020ef18cad85
treee848e62ca253d8d828892ff3feeedca51864654c
parent75cbca0a4088dd6bffabe7657e7292e05f2fcd42
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>
SVN-Revision: 42276
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]