aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ralink: make the mt7621 irq core with with the new CM apiJohn Crispin2015-02-122-30/+62
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44418 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix when tx done is 0 also need to clean interrupt statusJohn Crispin2015-02-111-3/+3
| | | | | | | Signed-off-by: michael lee <igvtee@gmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44401 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips/mt7620: add missing config symbolNicolas Thill2015-02-111-0/+1
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44399 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix hw status almost full not work on mt7620 and mt7621John Crispin2015-02-096-6/+31
| | | | | | | | | | | | | | the old FE_INT_STATUS register becomes two registers. FE_INT_STATUS and INT_STATUS. so the hw status almost full must change to read from FE_INT_STATUS register. tx/rx done read from INT_STATUS register. mt7620 datasheet define CNT_GDM1_AF at BIT(29). but after test it should be BIT(13). why? Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44371 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: change rt3883 cpu type to 74kcJohn Crispin2015-02-091-1/+1
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44370 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Kingston MLW221 and MLWG2 cleanupJohn Crispin2015-02-094-122/+117
| | | | | | | | | | MLW221 dts use tabs NOT spaces. MLWG2 dts typo and 1 tab not spaces 01_leds and diag.sh cleanup Signed-off-by: L. D. Pinney <ldpinney@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix mt76 radio pcie location definition for in Xiaomi MiWiFi MiniJohn Crispin2015-02-091-1/+2
| | | | | | | | | This patch sets the correct location of the mt76 radio in the pcie bridge (pcie-bridge instead of pcie0). Additionaly, it disables the 2.4 GHz band. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44355 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add mt76 node for Lenovo Y1 and Y1S.John Crispin2015-02-091-0/+9
| | | | | | | | | Both Y1 and Y1S have MT7612E wireless chip so I submitted this patch. Tested on Lenovo Y1. Signed-off-by: 郭传鈜 <gch981213@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44354 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add 3.18 supportJohn Crispin2015-02-0981-55/+22696
| | | | | | | | 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
* ramips: fix patches after 3.14.32 bumpLuka Perkov2015-02-089-57/+54
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44324 3c298f89-4303-0410-b956-a3cf2f4a3e73
* targets: base-files: diag.sh does not need to be executableLuka Perkov2015-02-071-0/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44305 3c298f89-4303-0410-b956-a3cf2f4a3e73
* targets: files in uci-defaults do not need to be executablesLuka Perkov2015-02-071-0/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44304 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix USB host function for Intenso M2MJohn Crispin2015-02-031-1/+3
| | | | | | | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44248 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: cleanup firefly default packagesJohn Crispin2015-02-021-8/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44244 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add FireWRT button detailJohn Crispin2015-02-021-0/+12
| | | | | | Signed-off-by: wengbj <fl.service@t-firefly.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44242 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add FireWRT led detailJohn Crispin2015-02-021-0/+9
| | | | | | Signed-off-by: wengbj <fl.service@t-firefly.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add ethernet macaddr to dts for FireWRTJohn Crispin2015-02-021-0/+5
| | | | | | Signed-off-by: wengbj <fl.service@t-firefly.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44240 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Xiaomi MiWiFi Mini devicesJohn Crispin2015-02-028-0/+179
| | | | | | | | | This patch adds support for Xiaomi MiWiFi Mini, a 802.11a/b/g/n/ac dual radio wireless router based on the MediaTek MT7620a SoC. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44238 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix ethernet driver tx completion pollingFelix Fietkau2015-02-011-2/+2
| | | | | | | | | | | - budget is decremented with completed frames, so don't check if done is smaller - ACK the interrupt before processing further frames to fix a small race condition. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44234 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: check ethernet MAC address whether it is validJohn Crispin2015-01-281-1/+3
| | | | | | | | | The mac address usually write in factory block. but sometime user erase this block , the mac address will change to ff:ff:ff:ff:ff:ff. This patch is purpose to fix this issue. Signed-off-by: wengbj <linux.c@foxmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44166 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix ethernet feature TSO not workFelix Fietkau2015-01-247-155/+197
| | | | | | | | | | | | | | | | * fix TSO features verify on mt7621 firewrt board * improve tx clean up. no need to access uncached memory. also use TX_DTX register instead of read tx ring DONE bit * mt7621 need napi weight 64 to get more performance * remove netif_receive_skb, after kernel version 3.7 tcp4_gro_receive can handle tcp checksum. on rt2880 use iperf tcp LAN to WAN throughput test. with gro 135 Mbits/sec. without gro 80.4Mbits/sec. Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44118 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: init tx/rx vlan offload register for mt7621Felix Fietkau2015-01-242-5/+23
| | | | | | | | | | on mt7621 don't have tx vlan vid registers. so set FE_REG_FE_DMA_VID_BASE to 0. set rx vlan offload register to disable. Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44117 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: use fe_max_buf_size to get rx buffer sizeFelix Fietkau2015-01-241-7/+5
| | | | | | | | | | the rx_buf_size now is 1534 when mtu is 1500. the ethernet frame with vlan tag and FCS is 1522. so the buffer is enough. Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44116 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix ethernet vlan tx offload support checkFelix Fietkau2015-01-241-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44115 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Tenda 3G150BJohn Crispin2015-01-228-1/+137
| | | | | | | | | | | | | | | Add suport for Tenda 3G150B: - cpu: Ralink RT5350F - flash: 4MB - ram: 32MB - 1x USB 2.0 - 1x RJ45 - one reset button - battery powered (BP-4L, 3.7V 1450mAh) Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44073 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: improve and fix Memory 2 Move supportJohn Crispin2015-01-223-19/+13
| | | | | | | | | | | | | | | | | This patch is a follow up for my previous patch: "ramips: add support for Intenso Memory 2 Move USB 3.0". It fixes a couple of errors in the DTS (one of which broke the gpio-buttons). The kmod-leds-gpio dependency has been dropped as it is already part of the ramips target. Furthermore the ramdisk/uImage image is generated by default for the rt3050 subtarget. This image is needed to flash OpenWrt for the first time onto the device via TFTP. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44072 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for firewrtJohn Crispin2015-01-206-1/+116
| | | | | | | | this is a mt7621 based board Signed-off-by: wengbj <linux.c@foxmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44055 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix ethernet rx buffer size breakageFelix Fietkau2015-01-181-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44047 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: improve check rx sg function. use check frags instead of function callFelix Fietkau2015-01-183-14/+8
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44046 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: correct handle hardware rx 2bytes offsetFelix Fietkau2015-01-183-13/+25
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44045 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: use fe_reset to control all resetFelix Fietkau2015-01-188-41/+28
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44044 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: improve tx_timeout functionFelix Fietkau2015-01-184-15/+87
| | | | | | | | | | * use default timeout value * print more debug ring info * move timeout reset function to workqueue Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44043 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add ethernet fe and esw reset control bitFelix Fietkau2015-01-189-0/+44
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44042 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: reduce access to uncached tx/rx dma ring bufferFelix Fietkau2015-01-184-53/+81
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44041 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: downgrade mt7621 "Spurious GIC Interrupt" to debug messagesFelix Fietkau2015-01-181-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44028 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add mt7621 cpu feature overridesFelix Fietkau2015-01-181-0/+68
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44027 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: refresh kernel patchesFelix Fietkau2015-01-185-31/+31
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44025 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add missing copyright info for relocate stubFelix Fietkau2015-01-172-2/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44017 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add preliminary support for DIR-860L B1Felix Fietkau2015-01-176-3/+157
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44016 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add code for relocating a kernel to the right placeFelix Fietkau2015-01-175-0/+365
| | | | | | | | (used if the boot loader wants a different loadaddr/entry) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44014 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable the seama mtdsplit parserFelix Fietkau2015-01-171-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44013 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: register mt76 device tree info for WSR-1166DHPFelix Fietkau2015-01-171-0/+22
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44010 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: register mt7621 pcie through device treeFelix Fietkau2015-01-172-27/+98
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44009 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: sync mt7621 pcie driver with latest SDKJohn Crispin2015-01-171-25/+19
| | | | | | | | fixes newer ECO versions and a hang on reboot bug Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44008 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Intenso Memory 2 Move USB 3.0John Crispin2015-01-178-0/+152
| | | | | | | | | | | | | | | | | | | This adds support for a rt5350-based "portable nas" solution from Intenso. The board comes with 32M RAM and 8M Flash, the built-in HDD is connected/accessible via a usb3.0<->sata bridge VLI VL701. The device has 1 Ethernet port (100M/10M), 1 micro b usb 3.0 socket (for charging the battery, or accessing the hdd directly). Wireless connectivity is provided by the rt5350 SoC [i.e.: 802.11n 1x1 2.4 GHz with a pcb antenna.] Serial, leds, wifi, ethernet and usb are tested and as far as I can tell: they are working fine (tm). Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44001 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix tx bql related race condition in the ethernet driverFelix Fietkau2015-01-171-4/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43995 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for Kingston MLWG2John Crispin2015-01-177-0/+134
| | | | | | | | | | | | | | This patch adds support for the Kingston Mobilelite Wireless G2 (MLWG2) http://wiki.openwrt.org/toh/kingston/mlwg2 https://github.com/gmacario/kingston-mlwg2-hack/wiki/Testing-OpenWrt-on-MLWG2 Tested-by: Gianpaolo Macario <gmacario@gmail.com> Signed-off-by: L. D. Pinney <ldpinney@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43990 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add i2c pingroup to the pinmux for rt-n14uJohn Crispin2015-01-171-1/+1
| | | | | | | | i2c pins are wired to wps a reset button Signed-off-by: Pavel Löbl <lobl.pavel@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix default led configuration for rt-n14uJohn Crispin2015-01-171-2/+2
| | | | | | | | use new helper function to generate default led configuration Signed-off-by: Pavel Löbl <lobl.pavel@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43984 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add missing -Os cflag for mt7621Felix Fietkau2015-01-131-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43954 3c298f89-4303-0410-b956-a3cf2f4a3e73