Commit Graph

51 Commits (0e2c66bb1466e81904eb79853ed45e41a81c7b00)

Author SHA1 Message Date
Luka Perkov 4b0fbf3072 ramips: fix patches after 3.14.32 bump
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44324
10 years ago
John Crispin df22a8e3d0 ralink: fix USB host function for Intenso M2M
The ubootloader of the M2M sets the reset bits for
both USB device and USB host during initialization
(to save a few mA of power during boot).

However, for the usb<->sata bridge to be properly
detected, it is necessary to clear both reset bits
as otherwise the kernel logs will just be filled
with:

usb 1-1: device descriptor read/64, error -145
...

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 44248
10 years ago
Felix Fietkau 68f50c4e2d ramips: downgrade mt7621 "Spurious GIC Interrupt" to debug messages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44028
10 years ago
Felix Fietkau b0e6e6e2f2 ramips: add mt7621 cpu feature overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44027
10 years ago
Felix Fietkau f66cca61d2 ramips: refresh kernel patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44025
10 years ago
Felix Fietkau 070f67aa9b ramips: register mt7621 pcie through device tree
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44009
10 years ago
John Crispin 50a5cd829c ralink: sync mt7621 pcie driver with latest SDK
fixes newer ECO versions and a hang on reboot bug

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44008
10 years ago
John Crispin 5ea31bbc58 ramips: Fix for gpio falling interrupt mask
This patch fixes a wrong mask operation for the rt2880-compatible ralink devices.
The mask operation reads the actual flags and then logical combines it with the pin flag it want to set.
Unfortunally, for rising as for falling interrupt flags the actual flag status of the rising interrupts was used.
That caused a problem if you want to use more than one falling GPIO interrupt.
Now the correct (seperated) actual status is used for both, falling and rising.

Signed-off-by: Jonas Arndt <info@greenwire-elektronik.de>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43882
10 years ago
Felix Fietkau 81e3014e6d ramips: rework and fix m25p80 chunked-io support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43808
10 years ago
Felix Fietkau aefd3c569c ramips: split mt7621 spi into a separate driver, increase maximum transfer size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43807
10 years ago
Imre Kaloz 6bfd210ade honor the bootloader's bootargs
Only overwrite the bootloader's bootargs if "chosen" exists in the dtb

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43802
10 years ago
Rafał Miłecki fbea00b031 ramips: update mtd patches to apply after changes from r43700
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43709
10 years ago
Felix Fietkau 9a495f6bbb kernel: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43564
10 years ago
John Crispin 506cf51b53 ralink: fix pci reset patch
sorry, forgot to make target/update before commiting the last patch

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43374
10 years ago
John Crispin 41f9765acd ralink: add proper reset of pci core
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43370
10 years ago
John Crispin d93dc245e5 ralink: various fixes to the wm8960 setup code
still no sound but the codec is properly detected now, powers up and i can hear
noise on the speakers.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43305
10 years ago
John Crispin 989bfd815b ralink: make the dmaengine driver compile under 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43304
10 years ago
John Crispin 510ff1f1b8 ralink: merge the mt7620a/n subtargets
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43300
10 years ago
John Crispin 752745a85a ralink: set ralink_soc on mt7621
sdhci failed to init because of this

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43293
10 years ago
John Crispin 32d4348540 ralink: fix pcie reset
some old mt7620a uboots dont reset the pcie core properly. work around this
issue in the kernel driver.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43292
10 years ago
John Crispin c073bf6bdf ralink: few updates tot he sdhci probe code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43275
10 years ago
John Crispin ce1c580efb ralink: make the sdhci module build again
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43274
10 years ago
John Crispin 7cc72e4b93 ralink: dont define pm_poweroff
this makes gpio-poweroff work

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43254
10 years ago
John Crispin be23eaa8c3 ralink: fix bank detection in mt7621 gpio driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43253
10 years ago
John Crispin 0767ee848a ralink: fix broken pinmux function naming inside mt7621.c
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43251
10 years ago
John Crispin 8cde8a05c9 ralink: update sdhci driver
the new driver handles newer SoCs

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43250
10 years ago
John Crispin 66463a5b5d ralink: update pcie driver to load ranges from dts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43249
10 years ago
John Crispin 7963782b86 ralink: add a new global ralink_soc variable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43248
10 years ago
John Crispin 938e1e03fb ralink: drop some unused code from pci-mt7620a
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43242
10 years ago
John Crispin 86e3315ece ralink: add support for mt7621 ethernet
somehow all switch ports still come up as 10mbit.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43237
10 years ago
John Crispin 604a3e5134 ralink: fix a regression that broke pcie on mt7621
i accidentally dropped 2 lines while adding mt7628 support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43216
10 years ago
John Crispin 89f74722b7 ralink: assign default ranges inside the pci driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43207
10 years ago
John Crispin c5954fc510 ralink: make pci driver handle mt7628
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43198
10 years ago
John Crispin d524fe46fd ralink: move ethernet driver to files/
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43194
10 years ago
John Crispin 2f30ba5328 ralink: make sure a mii_bus is loaded before accesing its state
this caused a crash on boot

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43120
10 years ago
John Crispin 0b19244498 ralink: mt7530 - force wan port up
some bootloaders (linksys e1700) set wonky hw trap values. reset this upon boot to make all ports work.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43117
10 years ago
John Crispin 38692d14f2 ralink: fix mt7530 for newer silicon revisions
latest mt7530 silicon seems to have a different phy id.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43113
10 years ago
John Crispin 152d692a1f ramips: improve ralink ethernet driver
Change list:
* add tx scatter gather function.
* add software rx vlan offload to let GRO work.
* add jumbo frame support. because use build_skb so max MTU is 3812.
* enable hardware tx vlan.
* enable GRO and remove LRO. because it can improve performance and can work on forwarding.
* enable/fix tx padding function.
* let napi handle tx clean up.
* support ethtool operation. now support message level, hardware status and coalesce.
* ethtool support use mdio to get phy status only on mt7620. need modify dts file and add phy info to support it.

Notes:
* build and test on rt2880, rt3052, rt3352, rt3662, rt5350 and mt7620a.
* TCP NAT performance improve. test with netperf.
  - rt2880(gigabit) from 5x to 12x Mbps.
  - rt3x5x from 6x to 94 Mbps.
  - rt5250 from 5x to 8x Mbps.
  - rt3662(gigabit) from 6x to 42x Mbps with GRO. 23x Mbps without GRO. 66x Mbps with jumbo frame.
  - mt7620 still 94Mbps.
* TSO function not tested. because i don't have mt7620 with eco >= 5. and the hardware don't support to set MSS. it will have problem.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 43108
10 years ago
John Crispin 8223e78121 ralink: fix a off by 4 bug in mt7530
0x8100000c vs 0x810000c0 int he pvc register this caused the cascade with an external mt7530 to fail.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43104
10 years ago
John Crispin 1bbc5de86e ralink: various i2c related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42868
10 years ago
John Crispin 97c202968a ralink: various i2c fixes
the driver did not handle all states correctly causing a deadlock of the i2c hw block.

Signed-off-by: Ing.Michele Mogioni <michele.mogioni@unimc.it>

SVN-Revision: 42807
10 years ago
John Crispin 98114e7cdd ralink: Add missing code to free GPIO on Ralink SoC
Signed-off-by: schildt@ibr.cs.tu-bs.de
Acked-by: info@gerhard-bertelsmann.de

SVN-Revision: 42788
10 years ago
John Crispin 4ef1237545 ralink: drop dwc_otg support. dwc2 seems stable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42617
10 years ago
Luka Perkov 02629d8f87 kernel: update 3.14 to 3.14.18
Targets were build tested and patches are refreshed.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 42463
10 years ago
John Crispin bdba024c7b ralink: add dwc2 device_reset() call
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42445
10 years ago
John Crispin 24a6617585 ramips: unbreak i2c for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42315
10 years ago
John Crispin d3d9d55cde ralink: a few 3.14 related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42292
10 years ago
John Crispin 843fc45e27 ralink: fix mt7620 ohci 3.14
the ohci phy was not reset properly

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42291
10 years ago
John Crispin a3fd3dc796 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
10 years ago
John Crispin bf1e92f526 ralink: add back the gpio_export_named() patch for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42176
10 years ago