Commit Graph

93 Commits

Author SHA1 Message Date
blogic 782944e7f4 kernel/adc: backport essential fixes for ad799x
This patch ports back some fixes of the ad799x driver, which were
committed between 3.10 and 3.15.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42993 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 06:32:40 +00:00
nbd 7f95aef182 ar71xx: disable irq on reboot to fix hang issues (fixes #17839)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42955

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42956 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 19:26:22 +00:00
blogic 513aa9c9a9 lantiq: lantiq: start using device-tree on ifxmips_pcie
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42906 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:53 +00:00
blogic da5270ebc9 lantiq: vgv7519: fix irq and disable pcie
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42905 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:47 +00:00
blogic 1b4384418d lantiq: lantiq: enable pci bus
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:36 +00:00
blogic e3e5da053e lantiq: vgv7519: extract wifi firmware from mtd
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42902 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:23 +00:00
blogic c2b3d14079 lantiq: lantiq: remove strip-fcs patch that seems to introduce regression on multiple devices
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42901 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:16 +00:00
blogic c823154962 lantiq: lantiq: fix pinctrl-xway
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42900 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:11 +00:00
blogic 4c0430ef49 lantiq: vgv7519: backport vgv7519 dts
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42899 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 11:03:07 +00:00
blogic ee1d74f2d4 mpc85xx: use wpad-mini in WDR4900 profile instead of wpad
This change makes the profile of WDR4900 more consistent with other router
specific profiles.

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42898 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 10:36:08 +00:00
nbd 2a00154f9a cns3xxx: Adopt irq_domain support for cns3xxx gpio driver
Have gpio driver adopt irqdomain support so that there are
non-overlapping allocations of irq numbers mapped to gpio's.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

Backport of r42844

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42847 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 10:29:32 +00:00
nbd a5d6fa0d40 cns3xxx: fix shared PCI interrupt mapping
This patch originally failed to combine INTA/B/C/D onto a single ARM CPU
interrupt. Instead, it mapped INTA/B/C and excluded D. This patch
corrects the issue by mapping all four interrupts to the single ARM CPU
interrupt. The original intent of the patch still holds as the newer PCB
take advantage of isolated interrupts. This fix only applies to older
PCB's that do not route INTA/B/C/D to unique external ARM CPU
interrupts.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

Backport of r42830

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42846 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 10:29:30 +00:00
nbd 782f6129ec cns3xxx: fix register for enabling MMC/SD pins
also fixes a GPIO related regression from the upgrade to 3.10

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

Backport of r42829

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-08 10:29:27 +00:00
blogic bdfd3533fc ralink: add dwc2 reset patch
this allows people building custom images to use dwc2 instead of dwc_otg

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42801 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-06 06:11:37 +00:00
florian 9787f8390f brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
Backport r42678

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



git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-27 19:13:32 +00:00
blogic 67271d4aea sdk: predefine kernel version magic
Kernel modules which are built using the SDK do not have access
to the .vermagic file in the Linux build dir, therefore the
generated .ipk metadata depends on kernel versions like
'3.10.49-1-unknown' which are not satisfiable by the kernel
meta package in the image.

Fix this problem by substituting 'unknown' with the current
version magic in include/kernel.mk when packing the SDK.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

Backport of r42590

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42592 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 11:01:24 +00:00
blogic 8e9f513aef ralink: disable wifi on DIR-810L and WHR-300HP2
both units have a lna/pna combo that the driver so far does not support

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 07:06:12 +00:00
blogic f6ae2c25f8 Lantiq: fix build warning from dsl_fs script
fix inclusion of functions.sh in dsl_fs init script

without this, the following error is seen during build:
./etc/init.d/dsl_fs: line 4: /lib/functions.sh: No such file or directory

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>

Backport of r42575

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-16 18:35:05 +00:00
blogic 55576d0850 lantiq: fix switch init on vr9 SoC (3.10)
Signed-off-by: John Crispin <blogic@openwrt.org>

Backport of r42544
Backport of r42551
Backport of r42574

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-16 18:35:00 +00:00
nbd 509e168418 ar71xx: ack completed tx descriptors only after the full frame has been completed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42457

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42475 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 15:14:05 +00:00
nbd 77b9180228 atheros: enable the low_mem flag to better deal with 16M RAM devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42460

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42461 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-10 13:50:53 +00:00
blogic 258ad8ea9d lantiq: add ath9k led pin support
Signed-off-by: John Crispin <blogic@openwrt.org>

Backport of r42437

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42438 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-08 14:30:00 +00:00
nbd a2a0b9f4dd ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331
While the AR9331 has a gigabit MAC towards the internal switch, the
integrated PHYs however are only 100-base-tx capable.  The existing code
however advertieses gigabit capability in the link status word.  If you
attach such a PHY to a gigabit capable switch on the remote end, with
some probability it attempts to negotiate gigabit and fails, falling
baco to the AR9331 assuming a 10mbit half-duplex link.  This has been
observed quite frequently with the Carambola2 and gigabit capable
switches.

In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally
for both AR9331 ethernet ports. This is most likely wrong. Despite the
two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a
100base-T PHY via MII. The has_gbit attribute is used in the ethernet
driver to determine the supported link modes.

So either pdata->has_gbit is not set to 1 anymore, or the ethernet
driver needs to be modified to determine the advertised link code word
on another criteria than pdata->has_gbit.  This patch implements the
former solution.

Signed-off-by: Harald Welte <laforge@gnumonks.org>

Backport of r42432

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-07 09:46:41 +00:00
nbd 50018dedf8 ar71xx: merge ethernet tx descriptor splitting from trunk (as of r42429) to fix ar716x performance issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42433 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-07 09:46:39 +00:00
nbd ae975c08ea cns3xxx: support isolated PCI interrupts on newer Laguna PCBs
The cns3xxx uses irq61 for pcie0_intr which in the case of a PCIe-to-PCI
bridge ends up combining INTA/B/C/D on a single ARM CPU interrupt. This is
not optimal when you have multiple cores. To overcome this limitation an
enhancement was made on newer Laguna PCB's that support miniPCI cards
to route the INTA/B/C/D signals to unique external ARM CPU interrupts which
can help balance CPU core utilization and in some cases increase overall
system performance or responsiveness.

For more details see:
 http://trac.gateworks.com/wiki/multicoreprocessing#PCIInterruptsteering

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

Backport of r42400

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42402 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-02 17:12:34 +00:00
nbd 8f2da6ce6a sdk: keep $(STAGING_DIR)/usr/bin, at least curl needs it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r42397

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 22:34:49 +00:00
blogic f8d4a15db9 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>

Backport of r42194

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:14 +00:00
blogic b2a21b5f8b ramips: Hame: change LED name mpr-x -> hame
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

Backport of r42190

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:13 +00:00
blogic b24a61d6b7 add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

Backport of r42130

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:12 +00:00
blogic bbb29ffa30 ralink: DIR-645 picks up incorrect MAC address in DTS file
Signed-off-by: John Crispin <blogic@openwrt.org>

Backport of r42321

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:09 +00:00
blogic b402d2d109 ar71xx: add Support for RB2011UiAS-2HnD
Backport of r42317

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42387 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:04 +00:00
blogic 254a07f2ba lantiq: BTHOMEHUBV2B use bigger mtd partition for kernel
The bb-rc3 image for the BTHOMEHUBV2B is too big for its
mtd partition. This patch corrects the partition sizes in
the device tree. This patch should really go in before
bb-final, otherwise the BTHOMEHUBV2B images won't be useable.
I do apologise for not spotting this straight away.

Many thanks,

Ben

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

Backport of r42316

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:02 +00:00
blogic 46ce4064e7 ralink: the mt7620 evb has a usb port
Signed-off-by: John Crispin <blogic@openwrt.org>

Backport of r42293

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42385 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:01 +00:00
blogic 50dfc04853 ralink: fix mt7620 ohci 3.10
the ohci phy was not reset properly

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

Backport of r42290

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42384 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:22:00 +00:00
blogic 1c19687034 ralink: mt7620 has obchi/ehci and not dwc2
fix the default package selection

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

Backport of r42289

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42383 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:59 +00:00
blogic 895b47c8c9 ar71xx: use ETH_ALEN for consistency
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

Backport of r42280

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42381 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:56 +00:00
blogic d2534fef1c ar71xx: enable sysupgrade for the EnGenius ESR900
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

Backport of r42279

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:55 +00:00
blogic 72b713be1b 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>

Backport of r42277

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42378 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:52 +00:00
blogic 597d1e96f2 ramips: Add support for SPI_CS1 pinmux
This patch adds support for setting SPI_CS1 as Chip Select, Watchdog reset output and GPIO#27.

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

Backport of r41938

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42377 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:51 +00:00
blogic 854257b556 ramips: Add support for VoCore
This is based and tested on VoCore Alpha, but other stuff like status/eth LEDs are present on the final board revision + VoDock.
All GPIOs are exported, except spi/i2c.

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

Backport of r41939

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:49 +00:00
blogic 5b5d939ca3 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>

Backport of r42276

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:48 +00:00
blogic 045eb62852 brcm47xx: image: build alternative TRX using less optimized LZMA
There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Backport of r42205

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42371 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:42 +00:00
blogic d9f1656851 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>

Backport of r42200

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42370 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:40 +00:00
blogic 96b714042b ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
This sets the MAC address of the WLAN interface to the "official" primary MAC
address (the one on the label under the devices, and the one used with the stock
firmware). The MAC address used so far (primary-1) isn't even used at all with
the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
WAN interface (like OpenWrt does with this patch).

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

Backport of r42193

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:34 +00:00
blogic 985bcd3c60 ralink: clean up HAME profiles, remove unnecessary packages.
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

Backport of r42192

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42366 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:32 +00:00
blogic e9edbffe92 ramips: add mpr-a1 to default profile
Add hame mpr-a1 to default ramips profile.

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

Backport of r42191

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42365 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:31 +00:00
blogic c7396c35b3 ar71xx: build factory image for EnGenius ESR900 and ESR1750
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

Backport of r42189

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42364 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:29 +00:00
blogic 7e5a3393fc ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board
The OpenMesh MR600(v1) can only enable the 2.4G WiFi PHY LED through the
mini-PCIe device. Not configuring the LED pin inside the platform data
makes it impossible to configure it through any standard OpenWrt tool.

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

Backport of r42184

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42363 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:27 +00:00
blogic acf73bf4fd lantiq: generate unique ARV7519RW22 firmware
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

Backport of r42183

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:25 +00:00
blogic de72f0b09e lantiq: add support for xrx200 firmware depending on soc type
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

Backport of r42182

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-01 13:21:23 +00:00