aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/spi
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: spi-rb4xx: balance clk_prepare_enable() callGabor Juhos2017-12-241-2/+2
| | | | | | | | | | | | | Commit c312cef223dd ("ar71xx: spi-rb4xx fix.") replaced the clk_enable() call with clk_prepare_enable() to meet the common clock framework requirements. However it did not change the clk_disable() call in the error patch which thus leads to imbalance. Fix the code by using the correct counterpart of clk_prepare_enable() in both places. Fixes: c312cef223dd ("ar71xx: spi-rb4xx fix.") Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
* ar71xx: Add kernel 4.9 supportHauke Mehrtens2017-10-111-0/+5
| | | | | | | | | | | | | This add support for kernel 4.9 to the ar71xx target. It was compile tested with the generic, NAND and mikrotik subtarget. Multiple members of the community tested it on their boards and did not report any major problem so far. Especially the NAND part received some changes to adapt to the new kernel APIs. The serial driver hack used for the Arduino Yun was not ported because the kernel changed there a lot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ar71xx: fix RB4xx CPLD SPI device mode setupFelix Fietkau2017-01-111-1/+1
| | | | | | | | Commit af79fdbe4af3 changed the code to use tx_nbits for dual SPI tx transfers, however the SPI stack only allows this when the device mode includes the relevant bit as well Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix RB4xx SPI driver mode bitsFelix Fietkau2017-01-111-1/+1
| | | | | | Accept SPI_TX_DUAL in device mode to fix the CPLD driver Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove a non-upstream spi core patchFelix Fietkau2017-01-052-182/+6
| | | | | | | - use standard flags instead - remove dead code from the rb4xx spi drivers Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove AP83 reference design board supportFelix Fietkau2016-12-121-283/+0
| | | | | | | | This board is very old and unlikely to still be relevant today. Support for it contains a significant amount of device specific baggage which is worth getting rid of. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: spi-rb4xx fix.Sergey Sergeev2016-07-021-1/+1
| | | | | | | | In new kernels we should use clk_prepare_enable instead of clk_enable since clk_enable does not make proper initialization that leads to rise WARN_ON messages and not working spi bus on the device. Signed-off-by: Sergey Sergeev <adron@yapic.net>
* ar71xx: remove __dev{init,exit} annotations from kernel filesGabor Juhos2013-02-192-6/+6
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35687
* ar71xx: merge 3.2 fixesGabor Juhos2012-02-103-39/+73
| | | | SVN-Revision: 30406
* ar71xx: move arch specific files to files-2.6.39Gabor Juhos2012-01-222-599/+0
| | | | SVN-Revision: 29867
* ar71xx: rename vsc7385 spi driverGabor Juhos2012-01-221-0/+0
| | | | SVN-Revision: 29853
* ar71xx: rename ap81 spi driverGabor Juhos2012-01-221-0/+0
| | | | SVN-Revision: 29852
* ar71xx: rename rb4xx spi driversGabor Juhos2012-01-222-0/+0
| | | | SVN-Revision: 29851
* ar71xx: pb44_spi: add shutdown handlerGabor Juhos2012-01-111-0/+10
| | | | | | This allows to access the flash from a kexec'd kernel. SVN-Revision: 29710
* ar71xx: pb44_spi: call pb44_spi_{en,dis}able from probe/removeGabor Juhos2012-01-111-6/+4
| | | | SVN-Revision: 29709
* ar71xx: pb44_spi: introduce pb44_spi_{en,dis}able helpersGabor Juhos2012-01-111-8/+17
| | | | SVN-Revision: 29708
* ar71xx: ar71xx_spi: add shutdown handlerGabor Juhos2012-01-111-0/+10
| | | | | | This allows to access the flash from a kexec'd kernel. SVN-Revision: 29707
* ar71xx: ar71xx_spi: save and restore regs from probe/removeGabor Juhos2012-01-111-17/+7
| | | | SVN-Revision: 29706
* ar71xx: use pr_* functions in driversGabor Juhos2010-11-121-9/+3
| | | | | | Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23981
* ar71xx: wrap long linesGabor Juhos2010-11-121-1/+2
| | | | | | | | (build errors has been fixed - juhosg) Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23977
* ar71xx: fix whitespaces nitsGabor Juhos2010-11-126-31/+31
| | | | | | | | (build error has been fixed - juhosg) Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23975
* ar71xx: improve 2.6.36 compatibility. also, instead of adding a forward port ↵Felix Fietkau2010-10-211-4/+5
| | | | | | patch to the 2.6.36 patches, add a backport patch to 2.6.32 SVN-Revision: 23574
* ar71xx: rewrite SPI drivers for the RB4xx boardsGabor Juhos2010-08-312-0/+920
| | | | | | | | | | * add a new SPI controller driver * add SPI driver for the CPLD chip * convert the NAND driver * enable the mikroSD slot * enable more LEDs SVN-Revision: 22863
* update ar71xx_spi driverGabor Juhos2009-08-061-11/+54
| | | | SVN-Revision: 17143
* add SPI controller driver for the PB44 boardGabor Juhos2009-07-111-0/+299
| | | | SVN-Revision: 16781
* use platform data to setup the MAC_CFG register in the spi_vsc7385 driverGabor Juhos2009-07-111-7/+14
| | | | SVN-Revision: 16780
* add definitions for some magic values in the spi_vsc7385 driverGabor Juhos2009-07-111-3/+12
| | | | SVN-Revision: 16779
* fix a bug in the SPI driver (closes #5485)Gabor Juhos2009-07-101-2/+2
| | | | SVN-Revision: 16767
* add SPI driver for the Vitesse VSC7385 switchGabor Juhos2009-06-041-0/+604
| | | | SVN-Revision: 16324
* add another SPI controller driver for the earlier AP83 boardsGabor Juhos2009-06-031-0/+282
| | | | SVN-Revision: 16315
* surprise :pGabor Juhos2008-07-211-0/+240
SVN-Revision: 11894