Commit graph

1031 commits

Author SHA1 Message Date
John Crispin
b25b58a96a ralink: add pci bidge node to mt7620a dts file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43172
2014-11-03 20:20:46 +00:00
John Crispin
cc142739f2 ralink: fix wan port on whr-1166
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43171
2014-11-03 20:20:40 +00:00
John Crispin
cc5194cf03 ramips: add support for Airlink101 AR670W
This is a RT2880-based board, 32MB RAM, 4MB flash. The bootloader
is a hacked u-Boot that reads an LZMA image directly, so we skip
generating the uImage header and enable the lzma mtdsplit parser.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 43153
2014-11-03 08:00:13 +00:00
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
2014-10-30 10:10:57 +00:00
John Crispin
0b64dca49d ralink: load mt7530 driver on the 3 buffalo units
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43119
2014-10-30 10:10:51 +00:00
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
2014-10-30 08:44:00 +00:00
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
2014-10-30 08:07:49 +00:00
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
2014-10-29 19:43:59 +00:00
John Crispin
c0bf47232a ralink: fix switch config on mt7530 evb
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43105
2014-10-29 18:51:02 +00:00
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
2014-10-29 18:49:46 +00:00
John Crispin
d0bf15f235 ramips: add support for A5-V11 board (resubmit)
(Reposted due to an issue with the patchwork server during original submission)

Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key)

Signed-off-by: Gareth Bryan <gareth@mx9.org>

SVN-Revision: 43102
2014-10-29 11:01:17 +00:00
John Crispin
d1a1ad3e66 ramips: fix filenames in PorayDualSize factory images
SVN-Revision: 43073
2014-10-26 17:18:45 +00:00
Felix Fietkau
c288d2d6d9 kernel: makefiles: make use of new var KERNEL_PATCHVER
replace all occurences of LINUX_VERSION with the cleaner
approach. future kernel upgrades must mostly touch only
one file. the only platform left is netlogic, because it
uses a intermediate kernel 3.14.16

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 43047
2014-10-24 19:34:02 +00:00
John Crispin
5c33e9565b ramips: add comments for image/Makefile.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42991
2014-10-20 06:29:51 +00:00
John Crispin
6e1637f8fa firmware-utils: restore compilation of mkhilinkfw.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42989
2014-10-20 06:29:38 +00:00
John Crispin
7bac455a4c ramips: add support for Nexx WT3020 devices
SVN-Revision: 42983
2014-10-20 06:28:48 +00:00
John Crispin
5b40a150ea ramips: sort boards in upgrade/platform.sh alphabetically
SVN-Revision: 42982
2014-10-20 06:28:39 +00:00
Felix Fietkau
35e9d448f2 ramips: fix usercfg partition offset for WHR-1166D
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42958
2014-10-19 08:45:56 +00:00
John Crispin
20940138ac scripts: fix wrong usage of '==' operator
[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42911
2014-10-14 12:21:11 +00:00
John Crispin
06a849575d ralink: Build 8M image for 7Links PX-4885
7Links PX-4885 (clones) can also be purchased with 8MB flash.
Creating images for these routers, use dtsi for common part

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42892
2014-10-13 19:41:36 +00:00
John Crispin
1bbc5de86e ralink: various i2c related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42868
2014-10-10 08:56:53 +00:00
John Crispin
af1207b58c ramips: add support for Nexx WT1520
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 42867
2014-10-10 08:56:43 +00:00
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
2014-10-06 20:05:13 +00:00
John Crispin
d76b7e0221 ramips: D-Link DIR-810L: make led naming consistent with other boards
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 42789
2014-10-06 04:52:36 +00:00
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
2014-10-06 04:52:26 +00:00
John Crispin
b04bb3eea7 ramips: Support for RAMIPS based Tripmate HT-TM02 board
Provides support for the Tripmate HT-TM02 personal router including LEDs and
reset button. “Mode” switch is not supported. New profile includes full set
of packages required to enable LEDs, USB, and LUCI. Patches were applied
against trunk snapshot r42649. Functionality has been tested in AP, basic wifi
client, wifi router, and routed client modes - all good.

Signed-off-by: Ron Curry <wingspinner@gmail.com>

SVN-Revision: 42785
2014-10-06 04:52:07 +00:00
John Crispin
d4cc995c53 ramips: D-Link DIR-810L. Add support for SoC 2.4 GHz wireless and fix leds naming
SVN-Revision: 42619
2014-09-19 11:07:08 +00:00
John Crispin
4ef1237545 ralink: drop dwc_otg support. dwc2 seems stable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42617
2014-09-19 10:52:37 +00:00
John Crispin
17cf9c4593 ralink: drop 3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42481
2014-09-12 06:50:46 +00:00
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
2014-09-10 21:40:19 +00:00
John Crispin
4662c3b847 ralink: dwc_otg->dwc2
the old dwc_otg driver is starting to fall apart and fails on newer 3g
modems and some storage devices. switch to the upstream dwc2 driver which
is no longer in staging/.

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

SVN-Revision: 42446
2014-09-08 17:33:16 +00:00
John Crispin
bdba024c7b ralink: add dwc2 device_reset() call
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42445
2014-09-08 17:32:52 +00:00
John Crispin
4d96ccd87a target: set myself as maintainer
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42335
2014-08-30 09:59:18 +00:00
John Crispin
d1f8b9bd76 ralink: DIR-645 picks up incorrect MAC address in DTS file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42321
2014-08-28 09:19:56 +00:00
John Crispin
24a6617585 ramips: unbreak i2c for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42315
2014-08-28 06:05:36 +00:00
John Crispin
1349ebb5ba ralink: set 3.14 as default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42305
2014-08-26 13:12:12 +00:00
John Crispin
0c14bea523 ralink: the mt7620 evb has a usb port
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42293
2014-08-25 16:31:13 +00:00
John Crispin
d3d9d55cde ralink: a few 3.14 related fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42292
2014-08-25 16:31:09 +00:00
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
2014-08-25 16:31:05 +00:00
John Crispin
ca737049d2 ralink: fix mt7620 ohci 3.10
the ohci phy was not reset properly

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

SVN-Revision: 42290
2014-08-25 16:31:01 +00:00
John Crispin
3d00a1109e ralink: mt7620 has obchi/ehci and not dwc2
fix the default package selection

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

SVN-Revision: 42289
2014-08-25 16:30:57 +00:00
John Crispin
fdc41e2fd7 ramips: enable second SPI for VoCore
This patch enables the second SPI as spidev and also fixes some typos.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42277
2014-08-25 06:35:46 +00:00
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
2014-08-25 06:35:42 +00:00
John Crispin
e9e519a147 ramips: fix OMNI-PLUG.dts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42232
2014-08-21 06:41:27 +00:00
John Crispin
ff3ea02772 ramips: add omni plug leds
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42201
2014-08-18 16:09:21 +00:00
John Crispin
d04cab8dfc ramips: Add support for Omnima MiniPlug
This patch adds support for the Omnima MiniPlug RT5350 based board, 8MB SPI flash

Signed-off-by: Ivan Ignjatic<ivan@omnima.co.uk>

SVN-Revision: 42200
2014-08-18 16:06:48 +00:00
John Crispin
be6bbc7975 ramips: fix switch config for Edimax 3G-6200n
Switch in Edimax 3G-6200n also require full switch reset, not only vlan definitions. Tested on Edimax 3G-6200n.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42194
2014-08-18 13:10:04 +00:00
John Crispin
60bf96e3a0 ralink: clean up HAME profiles, remove unnecessary packages.
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42192
2014-08-18 13:09:46 +00:00
John Crispin
a62e8bd145 ramips: add mpr-a1 to default profile
Add hame mpr-a1 to default ramips profile.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42191
2014-08-18 13:09:43 +00:00
John Crispin
bb9a23aca2 ramips: Hame: change LED name mpr-x -> hame
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 42190
2014-08-18 13:09:39 +00:00