summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
Commit message (Collapse)AuthorAgeFilesLines
* brcm47xx: fix cpu wait for BCM4706Hauke Mehrtens2013-12-263-19/+18
| | | | | | | | This was called to early. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 39167
* brcm47xx: b44: This updates the phylib patches to the version send upstreamHauke Mehrtens2013-12-2615-165/+252
| | | | | | | | This uses a fixed phy instead of a dummy one. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 39166
* brcm47xx: deactivate early printk supportHauke Mehrtens2013-12-154-52/+4
| | | | | | | | | This breaks some devices where the serial console is not at port 0 but somewhere else. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 39060
* kernel: update kernel 3.10 to 3.10.24Hauke Mehrtens2013-12-151-1/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 39059
* brcm47xx: misc cleanupsHauke Mehrtens2013-12-012-4/+2
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38980
* brcm47xx: deactivate mips wait instruction only for BCM4706Hauke Mehrtens2013-12-013-13/+27
| | | | | | | | | The wait instruction is only broken on the BCM4706 and not on the other similar SoCs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38979
* brcm47xx: config: set CONFIG_HZ=100 and CONFIG_IP_ROUTE_VERBOSEHauke Mehrtens2013-12-011-4/+0
| | | | | | | | | This sets both values to the OpenWrt default values. There is no reason to use some brcm47xx specific values here. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38978
* brcm47xx: add vectored interruptsHauke Mehrtens2013-12-012-0/+67
| | | | | | | | | This adds support for vectored interrupts in this SoC. This is supported by the 74K cpus. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38975
* brcm47xx: add cpu overwritesHauke Mehrtens2013-12-012-14/+102
| | | | | | | | | | | | bcm47xx misses cpu overwrites for the features of the CPUs used in these SoCs. Instead of manually checking, it is now known at compile time for some options and the compiler is able to remove the checks and optimize the code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38974
* brcm47xx: use "firmware" partition nameHauke Mehrtens2013-12-013-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some time ago, after switching to the mainline bcm47xxpart driver following patch has been applied: commit 03cef8725d2062335ffc3de50fc037b294fd458c Author: hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> Date: Sat Apr 6 22:22:26 2013 +0000 brcm47xx: use old partition names again for kernel 3.8 This fixes sysupgrade. The partition names are used all over the Internet in various howtos. Thank you russell for spotting this problem. I propose to revert this change and make sysupgrade use "firmware" instead. This makes brcm47xx compatible with widely used ar71xx and after all "firmware" sounds like a much better name for... the firmware. This change doesn't affect "sysupgrade" usage, because it never takes a partition name as a parameter. This change only affects users using mtd tool directly. Hopefully there are not many howtos using "mtd" command. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 38973
* kernel: update 3.10 to 3.10.21Gabor Juhos2013-12-011-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38972
* brcm47xx: swap also early boot console if necessary.Hauke Mehrtens2013-11-132-2/+49
| | | | | | | | | | | Some devices are using tty1 as the default console, also swap the early boot console in such case. This is needed for the WGT634U. Thank you Russell for reporting this. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38794
* brcm47xx: fix netconfig for inverted vlan?ports in nvramHauke Mehrtens2013-11-111-2/+4
| | | | | | This was observed on the Belkin Share F7D7302. SVN-Revision: 38769
* linux/brcm47xx : Belkin F7Dx30x board detectionHauke Mehrtens2013-11-111-0/+33
| | | | | | | | | | | | | | | boardnum is unstable, so allow using NULL to make it unchecked. A method for differentiating F7D3301 from F7D3302 using nvram is unknown at this point. Reading the first 32bits of magic from the "linux" mtd partition would do the trick, but these 2 are similar enough that we don't need separate led/button definitions. Not knowing which one you have is only a usability issue for upgrading the device: they expect different magic numbers for their trx images. Signed-off-by: Cody P Schafer <devel@codyps.com> SVN-Revision: 38767
* brcm47xx: b44: fix logic in BUG_ON()Hauke Mehrtens2013-11-111-1/+1
| | | | | | | | It is a problem when phydev is not set at this position and not the other way around. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38744
* brcm47xx: add detection for Linksys WRT54GS V1Hauke Mehrtens2013-11-091-1/+12
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38700
* brcm47xx: register ADM6996L switchHauke Mehrtens2013-11-093-3/+127
| | | | | | | | | | | | This patch makes it possible to use adm6996.c on first generation BCM47XX devices with ADM switches. This was tested on a WRT54GS version 1.0, thank you Dirk Neukirchen for the device. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38699
* brcm47xx: fix detection of Asus RT-N12B1 and Netgear WNR3500LHauke Mehrtens2013-11-051-1/+10
| | | | | | | | This closes #14367 and #14328. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38656
* kernel: update 3.10 to 3.10.18Gabor Juhos2013-11-051-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38652
* brcm47xx: b44: fix error handling for dummy phy creationHauke Mehrtens2013-10-251-24/+3
| | | | | | | | | When the mdio bus is unregistered the newly created phy will also be unregistered and freed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38539
* brcm47xx: b44: add dummy phy device if we do not find anyHauke Mehrtens2013-10-251-0/+64
| | | | | | | | | | | On some devices with e.g. a BCM2535F switch the second MAC is used, but we can not find a phy under all addresses between 0 and 31, 0xffffffff is returned as phy id. If we can not find a phy at the expected address create a dummy one. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38538
* kernel: update 3.10 to 3.10.17Gabor Juhos2013-10-231-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38506
* brcm47xx: b44: detect external phy by bit set in DevControl registerHauke Mehrtens2013-10-228-73/+147
| | | | | | | | | | Without this patch we treated only phy addr 30 as an external phy, but there is a register to check that. Now we do not have to try to reset the switch to check for an external switch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38502
* brcm47xx: activate ARP daemon supportHauke Mehrtens2013-10-131-1/+0
| | | | | | | | This just add some bytes to the kernel and is activated on other targets. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38388
* kernel: update kernel to 3.10.15Hauke Mehrtens2013-10-131-1/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38384
* brcm47xx: fix detection of some boardsHauke Mehrtens2013-10-131-0/+20
| | | | | | | | | | This adds some more boards. This fixes parts of #14316 and #14133. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38383
* brcm47xx: Cocci spatch "noderef"Hauke Mehrtens2013-10-071-0/+23
| | | | | | | | | | sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch "misc/noderef.cocci" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> SVN-Revision: 38312
* brcm47xx: move clock detection patchesHauke Mehrtens2013-10-072-0/+31
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38311
* brcm47xx: move and rename nvram gpio patchHauke Mehrtens2013-10-061-0/+19
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38310
* brcm47xx: update early printk patchesHauke Mehrtens2013-10-067-116/+234
| | | | | | | | | | Early printk was disabled because it caused hangs on some devices, the old patches were using the CFE console now we use the normal serial console, it is at a constant address. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38309
* brcm47xx: update board detection patchesHauke Mehrtens2013-10-069-241/+227
| | | | | | | | | | | Add patches like they are currently in the mainline mips tree and add some more pending patches for board detection. * Now the board name is shown under machine in /proc/cpuinfo. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38308
* brcm47xx: b44: fix some problems with the phyHauke Mehrtens2013-10-069-354/+526
| | | | | | | | | | * do not try initialize a unused phy * some improvements to the phylib patch * do not turn the phy off when mac is off Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38306
* brcm47xx: add support for ipv6 in default network configHauke Mehrtens2013-10-021-58/+40
| | | | | | | | | Modify /etc/init.d/netconfig to use UCI defaults for building the default network config, which includes appropriate defaults for IPV6. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> SVN-Revision: 38294
* kernel: bgmac: move other bgmac patches to genericHauke Mehrtens2013-10-021-189/+0
| | | | | | | | The bgmac driver will be used on the brcm47xx and the bcm53xx target. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38289
* kernel: bgmac: move bgmac patches already applied in mainline kernel to genericHauke Mehrtens2013-10-025-247/+0
| | | | | | | | | | The bgmac driver will be used on the brcm47xx and the bcm53xx target. These are only the patches already applied in current net-next/master branch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38288
* kernel: update 3.10 to 3.10.13Gabor Juhos2013-09-271-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38228
* kernel: b53: add Register Access Bridge Registers (SRAB) interfaceHauke Mehrtens2013-09-251-0/+1
| | | | | | | | The SRAB interface is used on BCM4707 and BCM5301X SoCs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38198
* brcm47xx: b44: bgmac: some small changes to the phylib patchesHauke Mehrtens2013-09-182-38/+24
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38044
* brcm47xx: bgmac: b44: add support for Byte Queue LimitsHauke Mehrtens2013-09-184-10/+106
| | | | | | | | | This adds support for Byte Queue Limits in bgmac and b44, now it is possible to use more advanced network queue control algorithms. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38038
* brcm47xx: update the clock fixes for BCM5354Hauke Mehrtens2013-09-182-5/+36
| | | | | | | | | This updates the patches for BCM5354 to the version send for upstream Linux inclusion. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38037
* brcm47xx: update board detection patchesHauke Mehrtens2013-09-184-26/+221
| | | | | | | | | | This is now the version which was send for mainline Linux kernel inclusion. The data needed to detection a board is now stored in init data. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38036
* brcm47xx: add detection for Linksys E900 V1Hauke Mehrtens2013-09-181-2/+4
| | | | | | | | Thank you Rafał for the data. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38035
* 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
* 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
* 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-152-9/+9
| | | | | | 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