Commit Graph

14404 Commits (e83643d31c2364166f411e7a1bb8c183489705c0)

Author SHA1 Message Date
John Crispin 351a55ac29 ramips: add CD polling to sd driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46475
9 years ago
John Crispin ebe957fad6 ramips: various mt7688 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46474
9 years ago
John Crispin e04e44a223 ramips: add subtarget for mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46473
9 years ago
John Crispin 7449ea88db ramips: add clock strecthing support to i2c driver
fixes #19816

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

SVN-Revision: 46472
9 years ago
John Crispin f1712c606c generic: cdc_ncm: Add support for moving NDP to end of NCM frame
NCM specs are not actually mandating a specific position in the frame for
the NDP (Network Datagram Pointer). However, some Huawei devices will
ignore our aggregates if it is not placed after the datagrams it points
to. Add support for doing just this, in a per-device configurable way.
While at it, update NCM subdrivers, disabling this functionality in all of
them, except in huawei_cdc_ncm where it is enabled instead.
We aren't making any distinction between different Huawei NCM devices,
based on what the vendor driver does. Standard NCM devices are left
unaffected: if they are compliant, they should be always usable, still
stay on the safe side.

This change has been tested and working with a Huawei E3131 device (which
works regardless of NDP position) and an E3372 device (which mandates NDP
to be after indexed datagrams).

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46464
9 years ago
John Crispin 23cb02286f generic: Add missing symbols when tracing is enabled
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46463
9 years ago
John Crispin d162dbb664 generic: add missing symbol
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46462
9 years ago
John Crispin 0afb8e8ac2 brcm2708: add kmod-sound-soc-bcm2708-i2s support
This adds support for I2S SoC Audio modules.

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

SVN-Revision: 46461
9 years ago
John Crispin 2eab9e03cc brcm2708: add kmod-video-bcm2835 support
This adds BCM2835 camera interface driver as a kernel module.

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

SVN-Revision: 46460
9 years ago
John Crispin 889afbca2e ar71xx: Allow to use ath79_gpio_output_select on QCA955x
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46459
9 years ago
John Crispin 5cd49bb067 ar71xx: add support for Onion Omega
This patch adds support for the Onion Omega.

https://onion.io/omega

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: Boken Lin <bl@onion.io>
Tested-by: Jacky Huang <huangfangcheng@163.com>

SVN-Revision: 46458
9 years ago
John Crispin b98205c946 ar71xx: Add support for AP147-010 reference board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46457
9 years ago
John Crispin 42c37d4381 ar71xx: Add support for PCIe on QCA953x
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46456
9 years ago
John Crispin 85c7f3fb29 ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2
There are a few NETGEAR devices which don't terminate the model name in the
ART with a NUL byte, at least some NETGEAR WNDR3700v2. The current awk
expression doesn't match 0xFF bytes, so AR71XX_MODEL contains lots of
trailing 0xFF garbage in this case.

Fix this by matching for the first non-printable character and explicitly
setting LC_CTYPE=C (probably not strictly necessary on OpenWrt, but will
definitely work like this, even when awk supports locales and LANG is set).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46455
9 years ago
John Crispin dcae3723fd ramips: add support for STORYLiNK SAP-G3200U3
STORYLiNK SAP-G3200U3 is an AC1200 router based on MT7621AT+MT7602EN+MT7612EN.
It has 128MB DDR3, 8MB NOR FLASH, 5-port Gbps switch and 1x USB 3.0.

The following patch adds support for this device.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons
* ethernet switch and USB diag LEDs
* UART
* GPIOs

Tested and not working:
* LEDs for WiFi radios (connected with WiFi chips, not supported in mt76?)
* failsafe mode (known problem, needs workaround like other MTK based devices)

More information in Wiki: http://wiki.openwrt.org/toh/storylink/sap-g3200u3

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46454
9 years ago
John Crispin 9c0ed4ce5c lantiq: Silence the PCIe error interrupt printk also in 4.1
This ports 9e2a7b779e6f0914395da3657b00f0ac00209bfd to the 4.1 patches.
I forgot this when preparing the initial 4.1 patch.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46453
9 years ago
Jonas Gorski cc42b1049b kernel: refresh patches for 4.1
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46441
9 years ago
Jonas Gorski 02198322b9 kernel: update 4.0 to 4.0.9
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.9

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46440
9 years ago
Jonas Gorski 2911b5aa11 kernel: update 3.18 to 3.18.19
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.19

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46439
9 years ago
Felix Fietkau 82b1517da2 ar71xx: refresh kernel config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46438
9 years ago
Felix Fietkau 54f5f6fa6c kernel: update to linux 4.1.3
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46437
9 years ago
Felix Fietkau 3b17e2ab68 generic: add more missing linux 4.1 symbols
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 46435
9 years ago
Felix Fietkau 38dbf49b61 ar71xx: remove the use of the obsolete IRQF_DISABLED flag in the NAND flash driver (fixes #20125)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46433
9 years ago
Felix Fietkau d6e67327a2 ar71xx: switch to linux 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46432
9 years ago
Felix Fietkau 91791aea2e ar71xx: add missing patch chunk to 4.1 unaligned access hacks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46431
9 years ago
Felix Fietkau b704d3c96e ar71xx: reorganize 4.1 patch directory layout
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46430
9 years ago
Felix Fietkau 573d23dda3 ar71xx: refresh kernel config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46429
9 years ago
Felix Fietkau d3a31435e0 kernel: add missing config symbols for 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46428
9 years ago
Felix Fietkau 2a74944f07 ar71xx: refresh 4.1 patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46427
9 years ago
Felix Fietkau 78b1a6b773 ar71xx: add 4.1 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46426
9 years ago
Felix Fietkau d26e8d9439 Revert "ar71xx: Add support for Cisco-Linksys WAP4410N" (r46250)
The commit is incomplete, it does not even build the mach-* file

This reverts commit 6e6adcf7a197b1802cb728ddcccf05f890ca0574

SVN-Revision: 46425
9 years ago
Felix Fietkau 473ddd592c kernel: fix sched_getaffinity on MIPS SMP systems (fixes enabling RPS/XPS in netifd with musl)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46420
9 years ago
John Crispin c89f360059 ar71xx: Enable ath10k calibration data loading for EnGenius ESR1750 and EPG500.
As r46245 disabled the board.bin template workaround, 5GHz wifi stopped working
on these devices. This adds them to the calibration data loading introduced in
r46244 and thus makes 5GHz work again for these devices.

Signed-off-by: Christian Beier <cb@shoutrlabs.com>

SVN-Revision: 46415
9 years ago
John Crispin 2d955b51fe ar71xx: use automatic firmware partition splitting for devolo dLAN devices
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46414
9 years ago
Felix Fietkau 363f32c8ac ramips: enable mt76 by default for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46410
9 years ago
John Crispin eff79253f2 ramips: add support for Planex MZK-DP150N
This patch add support for Planex MZK-DP150N.
a mini router on the MT7620A SoC with one Ethernet port and a 802.11n 2.4 GHz radio.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 46405
9 years ago
John Crispin 84b89e4ec4 brcm2708: add gzip image compression
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46404
9 years ago
John Crispin 08a416e3b9 brcm2708: add Raspberry Pi Compute Module support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46403
9 years ago
John Crispin f7ac790356 brcm2708: switch to linux 4.1
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46402
9 years ago
John Crispin b19a645b40 brcm2708: add upstream (bcm2835) modules and improve downstream ones (bcm2708)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46401
9 years ago
John Crispin bc5009472d generic: add missing linux 4.1 symbols
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46400
9 years ago
John Crispin 208ab54e3e brcm2708: add linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46399
9 years ago
John Crispin 03b56c9350 brcm2708: split target config into subtargets
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46398
9 years ago
John Crispin 623da91e4d brcm2708: remove unneeded base-files
Device tree exports board name/model and device LEDs.

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

SVN-Revision: 46397
9 years ago
John Crispin 8ef50ec40b brcm2708: improve profiles and image generation
- Add profiles for bcm2708 subtarget.
- Check subtarget for image generation.

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

SVN-Revision: 46396
9 years ago
Jonas Gorski 4981c7da0d brcm63xx: make use of dt-includes
Now that we have a dtc command that invokes the preprocessor, make use
of it and replace the magic numbers with KEY_* defines.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46391
9 years ago
Jonas Gorski 71e0bd0165 brcm63xx: make use of the new BuildDTB command
Now that we have a BuildDTB command, make use of it instead of calling
dtc directly.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46390
9 years ago
Jonas Gorski 491cfb06d0 brcm63xx: HG553 buttons support
This patch adds buttons support for Huawei EchoLife HG553.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46388
9 years ago
Jonas Gorski 730f06410e brcm63xx: switch to 4.1
Switch brcm63xx to 4.1 to give it some initial testing, but keep 3.18
at least until CC-final is out.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46386
9 years ago
Felix Fietkau b04b1ca933 ar8216: add swconfig attributes for ARL table flushing
Add swconfig attributes for flushing the ARL table globally or per port.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 46382
9 years ago
Felix Fietkau 33b72b8e0f ar8216: adjust ATU flushing in case of link changes
If a link goes down, don't flush the complete ARL table.
Only flush the entries for the respective port.
Don't touch ARL table if a link goes up.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 46381
9 years ago
Felix Fietkau 00e599b0b7 ar8216: add ARL table flushing per port
Adds functions for flushing ARL table entries per port.

Successfully tested on AR8327. Implementation for AR8216/AR8236/AR8316
is based on the AR8236 datasheet and assumes that the three chips
share a common ATU register layout.
Compile-tested only for AR8216/AR8236/AR8316.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 46380
9 years ago
Felix Fietkau 2666403c3a ar8216: add reading ARL table for AR8216/AR8236/AR8316
Adds the chip-specific part of reading ARL table for AR8216/AR8236/AR8316.

It's based on the AR8236 datasheet and compile-tested only as I couldn't
find datasheets for AR8216/AR8316 and don't own devices with these chips.

The existing ar8216_atu_flush implementation was used for all three
chip types, therefore I guess they share a common ATU register layout.

More testing would be appreciated.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 46379
9 years ago
Hauke Mehrtens e06f6ae640 adm5120: do not config something as module
All modules should be build by a package and only selected by such a
package. Remove all the config options selected as module and also
refresh the config.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46372
9 years ago
Hauke Mehrtens 60cecc6fa5 bcm53xx: fix usb3 build with kernel 4.1
One argument was removed with kernel 4.1 from xhci_handshake() which
caused a compile error.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46369
9 years ago
John Crispin 94ef06a8c2 brcm2708: partially revert r46347 to fix sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46367
9 years ago
John Crispin 4a1021de87 x86: add kmod-acpi-button and kmod-button-hotplug to default packages
Since r40909 openwrt can automatically shutdown when you press the
power button or try to shutdown a kvm virtual machine.
When booting a recent CC-rc2 or trunk image, it doesn't work,
as two kernel modules are missing.

Add these two kernel modules to the default packages, so users
don't need to install them manually.

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>

SVN-Revision: 46366
9 years ago
Rafał Miłecki cf93a8f227 bcm53xx: add early support for Netgear R7000
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46363
9 years ago
John Crispin 096b3759a9 build: Prevent more gzip timestamps
To improve reproducibility, prevent the inclusion of timestamps
in the gzip header.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>

SVN-Revision: 46361
9 years ago
John Crispin 5e1c7fb0cc ramips: added gpio spi refclk support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46359
9 years ago
John Crispin 16fb050055 gemini: switch to 4.1
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46354
9 years ago
John Crispin d5d3b5e49c gemini: add 4.1 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46353
9 years ago
John Crispin 023b0e0b38 gemini: add NAS packages to Raidsonic profile
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46352
9 years ago
John Crispin ea5b09bda3 gemini: copy kernel image to BIN_DIR
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46351
9 years ago
John Crispin 1aca6e6b27 ramips: added led support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46350
9 years ago
John Crispin b618573815 ramips: adding support for OY-0001 Wireless Router
Adding support for OY-0001 Wireless Router.
OY-0001 is a wireless router made by oyewifi.com. Below is the details:
MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN.

Signed-off-by: Tom Deng <2579131212@qq.com>

SVN-Revision: 46349
9 years ago
John Crispin 0ac2ef13f7 ramips: mt7620 ArcherC20i USB support
USB port of TP-Link Archer C20i does not work with trunk and CC.
This patch adds two nodes (ehci and ohci) to the device tree enabling USB.

Signed-off-by: Gunnar Thorburn <gunnar@thorburn.se>

SVN-Revision: 46348
9 years ago
John Crispin 2de7910102 brcm2708: Implement sysupgrade
Implement sysupgrade for Raspberry Pi, similar to the way it is done on x86:
The config files are saved in the boot partition and moved to where they are
normally expected in preinit.

Also add optional gzip compression for the SD card image, since this can save
a lot of space (76M vs 6M), also similar to x86.

Signed-off-by: Bruno Randolf <br1@einfach.org>

SVN-Revision: 46347
9 years ago
John Crispin 1b73796895 kernel: fix build with CONFIG_MTD unset
Fixed typo in the patch provided by Hauke:
https://lists.openwrt.org/pipermail/openwrt-devel/2015-July/034274.html

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46346
9 years ago
John Crispin a9b06a49a8 generic: add missing symbol
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46345
9 years ago
John Crispin c40f94b0d0 brcm2708: add DT support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46344
9 years ago
John Crispin 1eccdb4fd4 ar71xx: add support for the devolo dLAN pro 1200+ WiFi ac
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46342
9 years ago
John Crispin 052f21de3b ar71xx: add support to use gpio irqs
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46339
9 years ago
John Crispin 02984a6e09 ar71xx: add support for the devolo dLAN pro 500 Wireless+
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46338
9 years ago
Hauke Mehrtens e914c31d4c x86: Make virtualization guests built for pentium4 with SMP
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

SVN-Revision: 46314
9 years ago
Hauke Mehrtens 29039f51b3 kernel: refresh patches on linux 3.18
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46308
9 years ago
Hauke Mehrtens fde2caf6fd sunxi: enable CONFIG_EXPERT
- only sunxi has this disabled
- unify kernel configuration across platforms

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46307
9 years ago
Hauke Mehrtens 56597e059d kernel: add missing config option
This should fix build of sunxi.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46304
9 years ago
Hauke Mehrtens 7c7e5c4276 mvebu: make patches apply against 3.18.18 again
commit r46299 broke the mvebu target because one patch does not apply
any more. This commit closes #20070.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46303
9 years ago
Hauke Mehrtens 763e2502b6 kernel: update 4.1 to 4.1.2
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.2

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46301
9 years ago
Hauke Mehrtens e0402257e5 kernel: update 4.0 to 4.0.8
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.8

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46300
9 years ago
Hauke Mehrtens 58b66cdd75 kernel: update 3.18 to 3.18.18
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.18

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46299
9 years ago
Felix Fietkau 1e6479aa87 ramips: collect rx related members to fe_rx_ring struct
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 46295
9 years ago
Felix Fietkau 279be7be09 ramips: add xmit_more support
use pktgen to verify on rt3662. can improve transmit rate.
pkt_size 1500
burst 1 : 807Mb/sec
burst 8 : 984Mb/sec

pkt_size 60
burst 1 : 57Mb/sec
burst 8 : 236Mb/sec

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

SVN-Revision: 46294
9 years ago
John Crispin e8161f4764 ar71xx: compex wpe72 add space to include statement
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46284
9 years ago
John Crispin 8a1cca04ca ar71xx: compex wpj531 register usb support
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46283
9 years ago
John Crispin 3802ce01a9 ar71xx: compex wpj531 fix setting mac address on ethernet
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46282
9 years ago
John Crispin 4b28adc066 ar71xx: compex wpj531 fix ethernet registration
In fb6f62e97733312053ab593fcf68eea47a21169e several settings
are set on the ethernet device, but they are not working.

Fix Ethernet by setting the right values.

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46281
9 years ago
John Crispin 3b14473968 ar71xx: ag71xx remove IRQF_DISABLED
no-op since 2.6.35
removed in Kernel 4.1
see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46280
9 years ago
John Crispin 71db293eab mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1
This patch adds the RFKill GPIO control switch and enables another GPIO to
control power supply to USB Ports by emulating an LED GPIO for WDR4900v1.

Signed-off-by: Guo Wei Lim <alphasparc@gmail.com>

SVN-Revision: 46279
9 years ago
John Crispin dc2c89c64c ar71xx: fix board name ordering
r46248 added case statements in the same places

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

SVN-Revision: 46274
9 years ago
John Crispin d65916047b base-files: implemented basic GPIO control
Internal GPIO pins are used for PoE passthrough setups in multi-port
routers. This patch implemnets control over this hardware feature for
Ubiquiti Nanostations and TP-Link CPE510.

Signed-off-by: Lars Kruse <lists@sumpfralle.de>

SVN-Revision: 46271
9 years ago
John Crispin 227aafc4db ar71xx: Fix LED-to-phy mapping for EnGenius ESR1750.
wlan5g is phy0tpt and wlan2g phy1tpt.

Signed-off-by: Christian Beier <cb@shoutrlabs.com>

SVN-Revision: 46270
9 years ago
John Crispin 9c4cdf76c6 malta: add harddisk support
works with:
qemu-system-mipsel -M malta \
-hda openwrt-malta-le-root.ext4 \
-kernel openwrt-malta-le-vmlinux.elf \
-nographic -append "root=/dev/sda console=ttyS0"

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46269
9 years ago
Felix Fietkau cb47ccfc77 mpc85xx: disable SPE FPU support until musl gets support for it (fixes #19896)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46268
9 years ago
Felix Fietkau ceda9f1554 kernel: add missing config symbol (fixes #19880)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46265
9 years ago
Felix Fietkau a757d4fd56 kernel: add missing 4.1 config symbol
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46264
9 years ago
Felix Fietkau 240cff7d6a Revert "ar71xx: Allow to use ath79_gpio_output_select on QCA955x" (r46240)
It breaks the build

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46256
9 years ago
John Crispin 08790c5ee8 ar71xx: Add support for Cisco-Linksys WAP4410N
This patch adds support for the Cisco WAP4410N, an access point that uses the
AR9132 SoC. Web upgrades from stock are not yet possible, UART access required
for the initial flash.

Signed-off-by: Ryan A Young <rayoung@utexas.edu>

SVN-Revision: 46250
9 years ago
John Crispin d535218230 ar71xx: add support for D-Link DIR-615 rev. Ix board
Based on trunk r46212.

Signed-off-by: Jaehoon You <teslamint@gmail.com>

SVN-Revision: 46248
9 years ago
John Crispin 8f0e96ee11 mips: Free memory when load_module fails (#14453)
The mips reloc patch introduced new allocations which were done before
add_unformed_module but never freed them in case of an error. A new hook in
Linux 3.19 called module_arch_freeing_init can be used for freeing memory
which were allocated during this init phase.

The problem can be seen when trying to load a module (via busybox insmod)
when it was already loaded.

    free -m
    for i in `seq 1 100`; do
        /sbin/insmod /lib/modules/*/ath9k.ko >& /dev/null
    done
    free -m

This simple loop would leak ~3.2 MB.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46247
9 years ago
John Crispin f3bdc4a76a ar71xx: Unify ath10k calibration data loading
Currently one board uses the "proper" way of providing firmware
with the name ath10k/cal-pci-<pci address>.bin, whereas other
boards patch board.bin template in preinit and rely on a custom
ath10k patch to use calibration data from the template.

This patch makes all boards use the first method.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46244
9 years ago
John Crispin f7ffbbc5fc ar71xx: Use *_eth_cfg helper for Open Mesh MR900 boards
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46241
9 years ago
John Crispin a4f941b0e4 ar71xx: Allow to use ath79_gpio_output_select on QCA955x
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46240
9 years ago
John Crispin 0e2d9769be ar71xx: add support for TL-WR741ND v5
This device is identical to the TL-WR740N v5, it even uses the same HWID (which
wasn't the case for older TL-WR741ND revisions).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46238
9 years ago
John Crispin 8fa677d7b0 generic: mtd backport for Spansion S25FL164K
Backport for the Spansion S25FL164K
It's a 8 MiB flash chip with 4 KiB erase sectors.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46237
9 years ago
John Crispin 055663201b ar71xx: Add Support for the Bitmain Antminer S3
This patch adds support for the Bitmain Antminer S3 Cryptocurrency Miner

http://wiki.openwrt.org/toh/bitmain/s3

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46236
9 years ago
John Crispin 9f2b8b3902 ar71xx: allow pci calibration fixup to work with ar9344
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 46235
9 years ago
John Crispin 6fc2e94120 ar71xx: add support for ubnt rocket-m ti
rocket-m titanium is a device based on ar9344 with 802.11af poe.
It doesn't use the SoC wifi, instead it's using an ar9280 connected to
the pci bus. The gps version of the rocket-m ti is working, but
gps is untested. The gps is connected to the first serial port.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 46234
9 years ago
John Crispin f8eaad100b x86/xen_domu: enable image generation
Add features ext4 targz to target x86/xen_domu in order to
generate images in defconfig.

This fixes #18074.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>

SVN-Revision: 46233
9 years ago
John Crispin 404e599933 ar71xx: Enable sysupgrade on the Bitmain Antminer S1
This patch enables sysupgrade for the Bitmain Antminer S1

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46228
9 years ago
John Crispin 5740cf684c ar71xx: Fix WAN port location on EnGenius ESR1750 and EPG5000.
The designated blue WAN port on both devices has index 5, not 1.

Signed-off-by: Christian Beier <cb@shoutrlabs.com>

SVN-Revision: 46227
9 years ago
John Crispin 6a374f0062 ar71xx: add LED defaults for the EnGenius EPG5000
NB that wlan5g is phy0tpt and wlan2g phy1tpt.

Signed-off-by: Christian Beier <cb@shoutrlabs.com>

SVN-Revision: 46226
9 years ago
John Crispin b9963bbe80 lantiq: Add support for Arcadyan ARV8539PW22 (Speedport W 504V)
lantiq: Add support for Arcadyan ARV8539PW22 (Speedport W 504V)

Signed-off-by: Jannis Pinter <jannis@pinterjann.is>

SVN-Revision: 46224
9 years ago
John Crispin 6bdd209f15 lantiq: Add support for the BT Home Hub 5A
u-boot support depends on the next "upstream" version ([0]) from
Daniel Schwierzeck.
Since the installation process is quite complicated a "how to" was
added to the wiki: [1]

[0] https://github.com/danielschwierzeck/u-boot-lantiq/tree/openwrt/v2014.01-next
[1] http://wiki.openwrt.org/toh/bt/homehub_v5a

V2: Use the correct PCI interrupt (fixes 2.4GHz wifi)
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46223
9 years ago
John Crispin 2748df1c98 lantiq: Silence the printk when a PCIe error interrupt arrives
Basically the only error I am seeing is "Correctable Error". Also newer
lantiq PCIe drivers have this message wrapped in a "if debug enabled"
block. So it should be safe to disable this warning.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46222
9 years ago
John Crispin 415fe71d00 lantiq: Make the MEI address available for kernel drivers
Newer DSL driver versions depend on the address information.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46221
9 years ago
John Crispin b9463ce786 generic: Allow configuring an increment with mtd-mac-address
This is useful if the device also has an ethernet WAN interface with a
separate mac address (that is derived from the LAN mac address).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46220
9 years ago
John Crispin fa9e259729 lantiq: Change the data-type of mac address in ETOP driver
Make it consistent with the net_device struct and the xrx200 driver

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46219
9 years ago
John Crispin ff08b09570 lantiq: Add support for linux 4.1
All (still relevant) patches were refresh.
The following patches were dropped because they are applied upstream:
- 0003-MIPS-lantiq-handle-vmmc-memory-reservation.patch
- 0005-MIPS-lantiq-add-reset-controller-api-support.patch
- 0006-MIPS-lantiq-reboot-gphy-on-restart.patch
- 0009-MIPS-lantiq-command-line-work-around.patch
- 0010-MIPS-lantiq-export-soc-type.patch
- 0011-lantiq-add-support-for-xrx200-firmware-depending-on-.patch
- 0037-MIPS-lantiq-move-eiu-init-after-irq_domain-register.patch

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46216
9 years ago
John Crispin 2658b33f68 ramips: a5-v11 board fix power led blinking at boot
Signed-off-by: Konrad Kotowicz <skoti1@go2.pl>

SVN-Revision: 46215
9 years ago
John Crispin d08209a1c5 ramips: fix typo in WHR1166D mtd size variable
Fix typo in WHR1166D mtd size variable

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>

SVN-Revision: 46214
9 years ago
Felix Fietkau b26077026f ar71xx: add support for ap143
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46208
9 years ago
Felix Fietkau c9e433206f ar71xx: rework patch for qca953x/956x
Patch cherry-picked from the following location:
https://www.codeaurora.org/cgit/quic/qsdk/oss/system/openwrt/commit/?h=release/coconut_ioe4531_2.0&id=5c357bf6c763e4140dddcc9a3bc5f005525a9c0e

Changelist,
    - add more register defines
    - add EHCI support
    - fix GPIO pin count to 18
    - fix chained irq disabled
    - fix GMAC0/GMAC1 initial
    - fix WMAC irq number to 47
    - merge the changes of dev-eth.c from the patch to file.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46207
9 years ago
Felix Fietkau 7acbd52055 ar71xx: fix ethernet initialization on QCA953x-based boards (TP-Link TL-WR841N/ND v9, Compex WPJ531)
The initialization routines for these boards were relying on some (wrong)
defaults for the QCA953x ethernet. Make these defaults explicit to prevent
breaking them when the QCA953x defaults are fixed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46206
9 years ago
Felix Fietkau 67c428a9f6 ar71xx: fix kernel Oops in at803x_link_change_notify
r45954 ("ar71xx: fix 100/10mbps ethernet link issues on mynet range
extender") introduced a pdata based modification of the tx_clk_dly. But it
was not checked if pdata actually existed. This caused a page fault on all
devices which didn't have at803x_platform_data specified for an at803x
based device.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46200
9 years ago
Felix Fietkau 6eea8046b3 ar71xx: update preinit script for new ath10k firmware
Update firmware name and md5sum. MAC-address location remains
unchanged from previous version.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46196
9 years ago
Felix Fietkau abe86db3c2 ar71xx: fix UAP-PRO images
- it should be BOARDNAME instead of BOARD_NAME
- kernel partition should be padded to 1536k (somehow this padding was lost in translation to BuildCode in bc797c73f6328941b2194d144385655ad9297e7c)

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46193
9 years ago
Jonas Gorski 502011078e ar71xx: microtik: disable all non-microtik boards
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46191
9 years ago
Jonas Gorski 56a13aafc1 ar71xx: EPG5000 requires ATH79_NVRAM
EPG5000 uses ath79 nvram functions, but does not select it. This breaks
build if no other board support enabling nvram support is selected.

Closes #19952.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46190
9 years ago
Jonas Gorski a887f3a0a3 ixp4xx: add linux 4.1 support
Compile tested only.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46189
9 years ago
Jonas Gorski fc3cda695c kernel: add a few more missing config symbols
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46188
9 years ago
Jonas Gorski 04053a1217 kernel: generic: add missing arm machtypes
Some machtypes were dropped when 4.0 support was added, and the
incomplete patch was taken over to 4.1.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46187
9 years ago
Jonas Gorski 7f3182da16 ar7: add linux 4.1 support
Compile tested only.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46186
9 years ago
Jonas Gorski cf304f5a5e kernel: mips_disable_fpu: initialize fault_addr in fpu_emulator_cop1Handler
Code calling fpu_emulator_cop1Handler will pass on fault_addr, making gcc
complain about it not being initialized when the FPU emulator is disabled.

Fixes:

arch/mips/kernel/traps.c: In function 'do_fpe':
arch/mips/kernel/traps.c:864:22: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  process_fpemu_return(sig, fault_addr, fcr31);
                      ^
arch/mips/kernel/traps.c: In function 'do_ri':
arch/mips/kernel/traps.c:806:22: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  process_fpemu_return(sig, fault_addr, fcr31);
                      ^
arch/mips/kernel/traps.c:763:15: note: 'fault_addr' was declared here
  void __user *fault_addr;
               ^
arch/mips/kernel/traps.c: In function 'do_cpu':
arch/mips/kernel/traps.c:1421:28: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (!process_fpemu_return(sig, fault_addr, fcr31) && !err)
                            ^
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/kernel/traps.o] Error 1

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46184
9 years ago
Jonas Gorski 1e8c3d2769 brcm63xx: use IRQCHIP_DECLARE instead of self-baked version
Backport a commit from 4.2 making IRQCHIP_DECLARE available outside of
drivers/irqchip and use it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46183
9 years ago
Jonas Gorski 761fc3f035 brcm63xx: 4.1: switch to upstream UHI interface
Replace the appended dtb patch with the upstream accepted version and
update the code to work with the changed interface.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46181
9 years ago
Florian Fainelli ad576d262d at91: add Device Tree based board detection
Set up eth0 as LAN interface by default.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 46174
9 years ago
Florian Fainelli 4748d69f33 at91: sama5d3: enable USB2 by default
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 46173
9 years ago
Florian Fainelli d04f231706 at91: enable Micrel PHY driver
The AT91 SAMA5D3XPLAINED uses a KSZ9031 and a KSZ8081 that are supported
by this PHY driver.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 46171
9 years ago
Hauke Mehrtens d0aca89c18 kernel: b53: fix build with brcm47xx
The position of the nvram header file on brcm47xx changed with kernel
version 4.1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46170
9 years ago
Hauke Mehrtens b5b630ae38 brcm47xx: add support for kernel 4.1
This adds support for kernel 4.1 and removes kernel 4.0.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46166
9 years ago
Jonas Gorski 7e2450f03c ar71xx: make 902-unaligned_access_hacks.patch apply again
r46161 updated headers also touched by it, so it needed to be refreshed
as well.

Closes #20033.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46165
9 years ago
Jonas Gorski fa401693d9 kernel: improve uapi headers coexistence with musl
Make some network uapi headers detect if they are included after
not only glibc but also musl headers.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46161
9 years ago
Jonas Gorski 831d1c8b45 kernel: update 4.0 to 4.0.7
Changelog:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.6
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.7

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46151
9 years ago
Jonas Gorski 901a7fa067 kernel: update 3.18 to 3.18.17
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
9 years ago
Jonas Gorski ad80d3869d brcm63xx: swap a4001n power leds again
This partially reverts r44577 ("brcm63xx: fix DTS LEDs and buttons").

Fixes #19858.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46149
9 years ago
Jonas Gorski 3a9e4ba896 brcm63xx: unbreak board_probe_switch again
Also move it to an earlier place so new boards added are less likely
to confuse quilt.

Fixes #19965.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46148
9 years ago
Hauke Mehrtens 206f1db59e kernel: add some missing config options for 4.1
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46147
9 years ago
Rafał Miłecki cc758e7de0 bcm53xx: port last 2 UART patches to 4.1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46141
9 years ago