aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.18/0050-SPI-ralink-add-Ralink-SoC-spi-driver.patch
Commit message (Collapse)AuthorAgeFilesLines
* ralink: bump to the target to v4.3John Crispin2015-12-101-574/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use transfer_one instead of transfer_one_message on rt2880 spiJohn Crispin2015-11-221-65/+62
| | | | | | | | | | | | * use kernel buildin transfer_one_message. we only need to implement transfer_one and set_cs function * should support use gpio as cs pin * deselected the spi device when setup and add debug info * only reset device when first driver probe Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47579 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: move rt2880 spi clock and reset init code to spi_prepare_messageJohn Crispin2015-11-221-68/+62
| | | | | | | | | | before spi transfer. use spi_prepare_message to setup spi hardware. it will setup MSB, spi mode and speed remove sys_freq member and speed check code Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47578 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: improve rt2880 spi setupJohn Crispin2015-11-221-11/+62
| | | | | | | | | | * check clock rate, SPI mode, and word sizes * setup spi polarity * enable spi1 hw if need Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47577 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: clean up rt2880 spi probe/removeJohn Crispin2015-11-221-25/+34
| | | | | | | | | | * fill struct according to the member order * add error clean up * set min/max spi speed. so we don't need to check again Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47576 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: improve rt2880 spi wait ready functionJohn Crispin2015-11-221-16/+15
| | | | | | | | | | | use loops_per_jiffy, spi clock speed and write bytes to get the spi loop count. if loop to 0 than spi operation timeout. remove usleep. we only write 1 byte to spi device. use busy loop would be better. Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47575 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove rt2880 spi lock and clean bit operationJohn Crispin2015-11-221-18/+5
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47574 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add rt2880/mt7620 spi register definesJohn Crispin2015-11-221-2/+63
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add 3.18 supportJohn Crispin2015-02-091-0/+476
keep default as 3.14, mt7621 gic need to be ported to 3.18 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44349 3c298f89-4303-0410-b956-a3cf2f4a3e73