aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* ralink: add pinctrl driverJohn Crispin2013-09-1796-1605/+2097
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38026
* ralink: change subtarget orderJohn Crispin2013-09-171-1/+1
| | | | | | | | this will make image builder build rt305x targets per default Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38025
* kernel: backport a fix for multiqueue selection to prevent tcp reordering ↵Felix Fietkau2013-09-171-0/+41
| | | | | | | | with fair queueing Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38016
* brcm47xx: Add support for Huawei E970Hauke Mehrtens2013-09-164-1/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Huawei E970 wireless gateway devices. It has been tested on an E970 labelled as T-Mobile web'n'walk Box IV. E960/B970 should work too, from what I know it's basically the same hardware. The device has a Broadcom BCM5354 SoC and a built-in 3G USB modem. It uses a hardware watchdog which needs GPIO-7 to be toggled at least every 1-2 seconds. This patch uses gpio_wdt module (see my previous patch today) to take care of this. Tested and works: 3G wan, wlan+LED, VLAN config, failsafe using reset button, image to be used for upgrade from OEM firmware's web interface Link to the wiki page I've created: <http://wiki.openwrt.org/toh/huawei/e970> Issue: * lzma-loader crashes, so gzipped kernel is used. Presumably due to watchdog reset during kernel decompress. Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de> SVN-Revision: 38011
* kernel: add generic GPIO watchdog driverHauke Mehrtens2013-09-162-0/+361
| | | | | | | | This is used on Huawei E970 (brcm47xx). Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de> SVN-Revision: 38010
* brcm47xx: add detection for Phicomm M1Hauke Mehrtens2013-09-161-2/+5
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38009
* brcm47xx: detect Linksys E1200 V2Hauke Mehrtens2013-09-161-2/+4
| | | | | | | | | | This adds detection for Linksys E1200 V2 Thank you Lightsword and Rafał. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38006
* brcm47xx: mtd: bcm47xxpart: detect "factory" partitionHauke Mehrtens2013-09-161-0/+31
| | | | | | | | | A new type of partition with magic FCTY was found on Huawei E970: 46 43 54 59 4b 51 37 4e 41 42 31 38 41 32 39 30 |FCTYKQ7NAB18A290| Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 38005
* brcm47xx: bgmac: implement unaligned addressing for DMA rings that support itHauke Mehrtens2013-09-162-6/+146
| | | | | | | | | | | | | This is important patch for new devices that support unaligned addressing. That devices suffer from the backward-compatibility bug in DMA engine. In theory we should be able to use old mechanism, but in practice DMA address seems to be randomly copied into status register when hardware reaches end of a ring. This breaks reading slot number from status register and we can't use DMA anymore. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 38004
* kernel/3.10: add new Kconfig option for firmware partition splitGabor Juhos2013-09-159-22/+37
| | | | | | | | | | | | | | Add a new kernel config option for generic firmware partition split support and change the uImage split support to depend on the new option. Aslo rename the MTD_UIMAGE_SPLIT_NAME option to MTD_SPLIT_FIRMWARE_NAME to make it more generic. The patch is in preparation for multiple firmware format support. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38002
* brcm47xx: add detection code for Huawei E970Hauke Mehrtens2013-09-151-2/+5
| | | | | | | | | This is based on a patch by Mathias Adam. Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38001
* kernel: update 3.10 to 3.10.12Gabor Juhos2013-09-1538-115/+62
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38000
* brcm47xx: bgmac: allow bigger et_swtype nvram variableHauke Mehrtens2013-09-151-0/+14
| | | | | | | | | | Without this patch it is impossible to read et_swtype, because the 1 byte space is needed for the terminating null byte. Now it should be possible to read decimal and hex vars of max 8 bit. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37999
* brcm47xx: mtd: bcm47xxpart: detect block aligned Squashfs partitionHauke Mehrtens2013-09-151-0/+40
| | | | | | | | | | | | | | | | | | Most of the bcm47xx devices use TRX format for storing kernel and some partition like Squashfs or JFFS2. This is pretty flexible solution, CFE (the bootloader) just writes (and later boots) TRX at some hardcoded place and paritions can vary in the size. However some devices don't use TRX format. Very recently we have discovered ZTE H218N that has kernel and rootfs partitions at some "random" places. This patch allows Linux find a rootfs partition after installing custom image with a CFE bootloader. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 37998
* kernel/3.10: move OpenWrt MTD options into a submenuGabor Juhos2013-09-151-6/+10
| | | | | | | | | | Separate OpenWrt specific MTD options from the mainline option by moving those into a new submenu in the kernel configuration interface. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37997
* brcm47xx: update board detection patchHauke Mehrtens2013-09-151-98/+142
| | | | | | | | | * Use different structs depending on the number of nvram variables to check. * Add detection of ZTE H218N, this closes #14151. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37996
* kernel: b53: detect revision of BCM5325Hauke Mehrtens2013-09-152-1/+9
| | | | | | | | | The revision is stored in a different register than it is in other Broadcom switches. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37995
* kernel: b53: fix vlan write for BCM5325 revison 3+Hauke Mehrtens2013-09-151-2/+7
| | | | | | | | | These switches are integrated in some recent BCM53XX and BCM47XX SoCs like the BCM53572. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37994
* brcm47xx: bgmac: fix internal switch initializationHauke Mehrtens2013-09-151-0/+33
| | | | | | | | | | | | | Some devices (BCM4749, BCM5357, BCM53572) have internal switch that requires initialization. We already have code for this, but because of the typo in code it was never working. This resulted in network not working for some routers and possibility of soft-bricking them. Use correct bit for switch initialization and fix typo in the define. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 37993
* brcm47xx: detect Asus RT-N10Hauke Mehrtens2013-09-141-2/+4
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37989
* kernel: b53: use hard coded switch reset gpio on some boards.Hauke Mehrtens2013-09-141-2/+10
| | | | | | | | | | | | The Linksys wrt310n v1 does not have a robo_reset config variable in nvram, but GPIO Pin 8 is the pin needed for resetting the external switch, Linksys hard coded it into their source code. Thank you Devastator for testing. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37988
* kernel: b53: add soft reset for BCM539x switchesHauke Mehrtens2013-09-142-0/+12
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37987
* brcm47xx: tg3: use the phy address from et0phyaddr and not the default phy ↵Hauke Mehrtens2013-09-142-14/+227
| | | | | | | | | | address. Thank you Devastator for testing. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37986
* generic/3.10: remove unused defines from the rootfs split patchGabor Juhos2013-09-141-9/+8
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37981
* generic/3.10: reduce number of ifdefs in the rootfs split codeGabor Juhos2013-09-141-14/+14
| | | | | | | | Use the config_enabled() macro where it is possible. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37980
* imx6: add network defaults for GW5400-ALuka Perkov2013-09-131-1/+3
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 37979
* brcm47xx: board detection, GPIO for Linksys E1000 V2.1Hauke Mehrtens2013-09-131-2/+4
| | | | | | | | | | | | | | This patch adds board detection for the Linksys E1000 V2.1 router, as well as GPIO support for same. This fixes bug #14135. Currently, wired networking isn't working on the router, and I haven't tried the wireless, but with this patch, OpenWRT successfully boots, and all the LEDs and buttons work properly. Signed-off-by: Zachary Catlin <zcatlin@indiana.edu> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37977
* ar71xx: refresh patchesGabor Juhos2013-09-133-3/+3
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37976
* generic/3.10: refresh patchesGabor Juhos2013-09-133-19/+4
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37975
* generic/3.10: rename mtd patchesGabor Juhos2013-09-1312-3/+3
| | | | | | | | | | - change patch numbers to group the related stuff together, - add mtd prefix where it is missing, - use hyphens in the patch names Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37974
* cns21xx: remove 3.8 supportGabor Juhos2013-09-1319-7809/+0
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37973
* cns21xx: switch to 3.10Gabor Juhos2013-09-131-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37972
* cns21xx: add support for 3.10Gabor Juhos2013-09-1319-0/+7837
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37971
* brcm47xx: detect WRT310NV1Hauke Mehrtens2013-09-131-2/+4
| | | | | | Thanks Devastator for testing SVN-Revision: 37969
* cns21xx: make cns21xx-ehci a separate driverGabor Juhos2013-09-133-115/+105
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37968
* cns21xx: disable legacy PTY devicesGabor Juhos2013-09-131-2/+0
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37967
* cns21xx: fix broken case statement in led defaults fileGabor Juhos2013-09-131-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37966
* cns21xx: enable XZ_DEC_ARM and XZ_DEC_BCJ kernel optionsGabor Juhos2013-09-131-0/+2
| | | | | | | | | | | | | | | | Squashfs is unable to decompress some blocks without that: [ 0.970000] SQUASHFS error: xz_dec_run error, data probably corrupt [ 0.980000] SQUASHFS error: squashfs_read_data failed to read block 0x29a72 [ 0.990000] SQUASHFS error: Unable to read fragment cache entry [29a72] [ 1.000000] SQUASHFS error: Unable to read page, block 29a72, size 14c50 [ 1.010000] SQUASHFS error: Unable to read fragment cache entry [29a72] [ 1.020000] SQUASHFS error: Unable to read page, block 29a72, size 14c50 [ 1.260000] SQUASHFS error: xz_dec_run error, data probably corrupt Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37965
* ar71xx: add support for TL-MR3040 v2Gabor Juhos2013-09-131-1/+3
| | | | | | | | | | This patch adds support for building firmware images for the TP-Link TL-MR3040 v2. Tested and working on v2.1 hardware. Signed-off-by: Mads Hansen <d@taba.se> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37964
* ar71xx: add wireless bgn led support for dir-825-c1Gabor Juhos2013-09-131-0/+5
| | | | | | | | | | | | | I checked the GPL code drop from D-Link and tried to get the wireless and LAN switch LEDs to light up. I found some references in AthSDK/www/DIR-825_C1/bsp.h as well as AthSDK/www/DIR-825_C1/rootfs/etc/sysconfig/S2gpio.sh, but in the end I only got the led for 2.4GHz to work. Anyway, here's the patch. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37963
* brcm47xx: remove support for kernel 3.8Hauke Mehrtens2013-09-1258-7852/+2
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37959
* brcm47xx: add default config for new kernel config optionHauke Mehrtens2013-09-121-0/+1
| | | | SVN-Revision: 37958
* kernel: update bcma and ssb to wireless-testing master-2013-09-09Hauke Mehrtens2013-09-1221-1232/+1869
| | | | SVN-Revision: 37957
* kernel: add support for ESMT F25L32PA with upstream submissionLuka Perkov2013-09-121-0/+37
| | | | | | Signed-off-by: Flavio Silveira <fggs@terra.com.br> SVN-Revision: 37956
* kernel: align the skb padding to power of twoFelix Fietkau2013-09-115-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The skb is usually started by a padding which allows the protocols in the network stack to add their headers in front of the payload. The skb can be reallocated in case the preallocated padding is not large enough. This can for example happen in the function __skb_cow which will check the requested extra headroom and allocate more buffer when the requested headroom is bigger than the available one. The extra buffer is aligned again to the multiple of the NET_SKB_PAD of the target architecture. The macro used to create the multiple of the NET_SKB_PAD is written in a way which allows only values power two as alignment parameter. The currently used value of 48 bytes can not be written as n ** 2 but as 2 ** 4 + 2 ** 5. The extra buffer is therefore not always the multiple of 48 but can be 16, 64, 80, 128, 144 and so on. The generated values are also not monotonic (48 requested bytes are mapped to 80 allocated bytes and 49 requested bytes are mapped to 64 allocated bytes). These unexpected small values result in more reallocations of the buffer. This was noticed prominently during tests between two QCA9558 720 MHz devices which were connected via ethernet to PCs and had a HT40 802.11n 3x3 link between each other. The throughput PC-to-PC during iperf TCP runs increased reliable from 186 Mibit/s to 214 Mibit/s in one direction and from 195 Mibit/s to 220 Mibit/s in the other direction. This is a performance increase of ~14% just by reducing the amount of reallocations. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 37948
* kernel: fix broken depends syntax introduced in r37933Florian Fainelli2013-09-111-1/+1
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 37942
* kernel: Fix FIQ code on VIVT CPUs (#14145)Florian Fainelli2013-09-111-0/+55
| | | | | | | | Backport an upstream patch to fix FIQ code on VIVT CPUs Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 37940
* imx6: backport ahci supportLuka Perkov2013-09-104-0/+545
| | | | | | | Signed-off-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 37936
* imx6: add i2c retry on NAKLuka Perkov2013-09-101-0/+40
| | | | | | Signed-off-by: Tim Harvey <tharvey@gateworks.com> SVN-Revision: 37935
* imx6: add gpio sysfs supportLuka Perkov2013-09-101-1/+2
| | | | | | Signed-off-by: Tim Harvey <tharvey@gateworks.com> SVN-Revision: 37934