aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.18
Commit message (Collapse)AuthorAgeFilesLines
* ramips: remove duplicate patchJohn Crispin2015-11-281-30/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47670
* ramips: add second SPI clocksJohn Crispin2015-11-281-0/+30
| | | | | | | | These clocks were missing in the changes introduced in r47573-47580 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 47666
* ramips: add second spi master sysclkJohn Crispin2015-11-241-0/+30
| | | | | | | | for mt7620, rt3883 and rt5350 Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47616
* ramips: update dtsi files to support second spi deviceJohn Crispin2015-11-221-368/+0
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47580
* 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> SVN-Revision: 47579
* 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> SVN-Revision: 47578
* 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> SVN-Revision: 47577
* 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> SVN-Revision: 47576
* 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> SVN-Revision: 47575
* ramips: remove rt2880 spi lock and clean bit operationJohn Crispin2015-11-221-18/+5
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47574
* ramips: add rt2880/mt7620 spi register definesJohn Crispin2015-11-221-2/+63
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47573
* ralink: add missing nand layer hackJohn Crispin2015-11-211-0/+179
| | | | | | | | | | | | | | | | | It turned out that mtk_nand driver uses some sophisticated accounting and a general nand code must be patched. This patch adds required read and erase calls to a general nand code. I used a code for re6500 released by Linksys as a reference. All required operations (erase, write and read) are usable. However I found that jffs2 filesystem can be created only on top of a ubi volume. I tried to create jffs2 directly on mtd device but pages with clean markers are became uncorrectable. Signed-off-by: Kirill Berezin <fyiwdt@gmail.com> SVN-Revision: 47565
* ramips: fix previous commitJohn Crispin2015-11-052-22/+66
| | | | | | | | r47388 accidentially changed 2 files too many Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47389
* ramips: minor tweak to the lks7688 baord nameJohn Crispin2015-11-052-66/+22
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47388
* kernel: update kernel 3.18 to version 3.18.23Hauke Mehrtens2015-11-0114-101/+101
| | | | | | | | | | Changelog: * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.22 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.23 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47334
* ramips: make the alsa driver register the codecJohn Crispin2015-10-261-38/+15
| | | | | | | | this allows using the codec even if it is not listed in the DTS Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47256
* ramips: gpio-mt7621 was not handling irqs above 31 properlyJohn Crispin2015-10-201-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47238
* ramips: add alsa supportJohn Crispin2015-10-191-0/+8411
| | | | | | | | | add the SDK alsa driver. this has only been tested on mt7628/88 and wm8960. mt7620 is only compile tested. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47205
* ramips: add a baurate hackJohn Crispin2015-10-191-0/+12
| | | | | | | | | When talking to an atmel controller we need 9600 or 250000 baud. as 250000 does not exist we use 2500000. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47204
* ramips: add LinkIt Smart7688 supportJohn Crispin2015-10-191-0/+94
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47203
* ramips: improve read performance of the m25p80 chunked io patchFelix Fietkau2015-10-051-7/+58
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47137
* ramips: improve systick timerJohn Crispin2015-10-051-6/+145
| | | | | | | | | | | | when sleep mode is disable use MIPS as clocksource and clockevent instead of systick. because MIPS timer has higher resolution 5ns less than systick 20us and larger counter bits 32 > 16. clean interrupt by write compare register at isr. fix typo cause sleep mode not enable. Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47122
* ramips: fix use remove_irq to release irqaction resourceJohn Crispin2015-10-051-1/+1
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47121
* ramips: Ralink RT3883 RGMII pinmux fix.John Crispin2015-10-051-2/+2
| | | | | | | | | Due to datasheet of rt3883 SoC rgmii1 port handles pins 84-95 and rgmii2 port handles pins 72-83. When this function ports gets added to rt3883_pinmux_data there's wrong pinmux bits set (RT3883_GPIO_MODE_GE1 manages 84-95 pins and RT3883_GPIO_MODE_GE2 manages 72-83). So when enabling rgmii2 as GPIO driver confuses hardware and nothing work, neither rgmii nor gpio. Also in '0030-pinctrl-ralink-add-pinctrl-driver.patch' typo in name of rgmii2 port. Signed-off-by: Nick Leiten <nickleiten@gmail.com> SVN-Revision: 47118
* ralink: the mmc driver can now handle CD lines that are active lowJohn Crispin2015-10-011-4/+14
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47074
* ralink: speed selection was broken in spi-mt7621John Crispin2015-10-011-4/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47073
* ramips: Fix pinmux functions for MT7621John Crispin2015-09-161-9/+9
| | | | | | | | | The pinctrl-rt2880 code doesn't support multiple functions with the same name. This will result in a incorrect pinmux configuration. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46963
* ramips: add mt7621/3/8 support to the I2C driverJohn Crispin2015-09-161-9/+34
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46959
* ramips: fix reported vendor nameJohn Crispin2015-09-161-0/+22
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46958
* ramips: add proper mt7688 detectionJohn Crispin2015-09-161-0/+114
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46957
* ramips: add speed and mode settings to spi-mt7621John Crispin2015-09-161-13/+178
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46956
* ramips: add get_direction() callback and irq support to gpio-mt7621John Crispin2015-09-161-12/+188
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46955
* ramips: more m7628 pinmux fixesJohn Crispin2015-09-161-0/+131
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46954
* ramips: add mt7628 pwm driverJohn Crispin2015-09-161-0/+204
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46953
* ramips: make pinctrl work on newer socsJohn Crispin2015-09-161-20/+27
| | | | | | | | newer socs have 2 mux registers Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46952
* ramips: make the mt7628 spi driver work for both cs linesJohn Crispin2015-09-161-8/+7
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46951
* ramips: make the early_printk code detect which uart is usedJohn Crispin2015-09-161-2/+27
| | | | | | | | only tested on mt7628 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46950
* ramips: fix chunked-io support for big flash chips (#20504)Felix Fietkau2015-09-141-3/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46904
* kernel: update 3.18 to 3.18.21Jonas Gorski2015-09-028-14/+14
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46768
* ramips: fix devicetree corruption with some boot loaders if the caches are ↵Felix Fietkau2015-09-021-0/+18
| | | | | | | | not ready at boot Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46766
* ramips: move patches aroundJohn Crispin2015-08-171-0/+0
| | | | | | | | 0073 needs to applied afert 0102 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46667
* ramips: reorder patchesJohn Crispin2015-08-1711-5/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46659
* ramips: Fix MT7621 pinmux bits for uart3, uart2, mdioJohn Crispin2015-08-171-9/+26
| | | | | | | | | | | The MT7621 uses a 2 bit wide configuration of the sdhci, spi, mdio, pcie, wdt, uart2 and uart3 in the GPIO_MODE register. It was correctly done for sdhci, spi, pcie and wdt, The same has to be done for uart3, uart2 and mdio. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46645
* ramips: Fix amount of MT7621 pins controlled by spi groupJohn Crispin2015-08-171-1/+1
| | | | | | | | | The PINS conntrolled by the SPI bits in the GPIO_MODE register is always 7 and not 8 for nand mode. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46644
* ramips: Fix uart2/uart3 pinmux order on MT7621John Crispin2015-08-171-4/+4
| | | | | | | | | The uart3 setting in GPIO_MODE register is before the uart2 setting. Also don't mix uart2 and uart3 function/groups. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46643
* kernel: update 3.18 to 3.18.20Hauke Mehrtens2015-08-095-14/+14
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.20 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46570
* ramips: add CD polling to sd driverJohn Crispin2015-07-241-12/+15
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46475
* ramips: various mt7688 pinmux fixesJohn Crispin2015-07-241-11/+13
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46474
* ramips: add clock strecthing support to i2c driverJohn Crispin2015-07-241-32/+35
| | | | | | | | fixes #19816 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46472
* kernel: update 3.18 to 3.18.17Jonas Gorski2015-06-301-5/+3
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.17 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46150