brcm47xx: bgmac: implement unaligned addressing for DMA rings that support it

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>


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38004 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm47xx: mtd: bcm47xxpart: detect "factory" partition

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>


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38005 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm47xx: detect Linksys E1200 V2

This adds detection for Linksys E1200 V2

Thank you Lightsword and Rafał.

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


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38006 3c298f89-4303-0410-b956-a3cf2f4a3e73
broadcom-diag: Add WRT310N v1 gpio leds and buttons

Signed-off-by: Flavio Silveira <fggs@terra.com.br>


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38007 3c298f89-4303-0410-b956-a3cf2f4a3e73
broadcom-diag: add GPIO configuration for Linksys E2000 V1

Thank you Javier Achirica for the patch.

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


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38008 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm47xx: add detection for Phicomm M1

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


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38009 3c298f89-4303-0410-b956-a3cf2f4a3e73
kernel: add generic GPIO watchdog driver

This is used on Huawei E970 (brcm47xx).

Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38010 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm47xx: Add support for Huawei E970

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>


git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38011 3c298f89-4303-0410-b956-a3cf2f4a3e73
AA: ar71xx: TP-LINK also has a family TL-WDR

Backport of r34577.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38012 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: drop spoofed packets in ad-hoc mode (fixes #12427)

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

git-svn-id: svn+ssh://svn.openwrt.org/openwrt@38013 3c298f89-4303-0410-b956-a3cf2f4a3e73
Merge remote-tracking branch 'remotes/git-svn'