Jonas Gorski
ddcc29290c
brcm63xx: fix brcm63xx fallback typo
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42726
2014-10-02 12:24:14 +00:00
Jonas Gorski
51e1f1476f
brcm63xx: Add DT support for P870HW-51a
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: fix nvram partition offset]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42248
2014-08-21 11:28:59 +00:00
Jonas Gorski
b339304425
brcm63xx: Add DT support for HG553
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: fix linux partition length]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42247
2014-08-21 11:28:54 +00:00
Jonas Gorski
2f09960e46
brcm63xx: Add DT support for HG520v
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: fix nvram partition offset]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42246
2014-08-21 11:28:46 +00:00
Jonas Gorski
7bc83fdd13
brcm63xx: Add DT support for A4001N
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42245
2014-08-21 11:28:43 +00:00
Jonas Gorski
a180c80f23
brcm63xx: Add DT support for A4001N1
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42244
2014-08-21 11:28:40 +00:00
Jonas Gorski
83651bad85
brcm63xx: Add DT support for WAP-5813n
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42243
2014-08-21 11:28:37 +00:00
Jonas Gorski
7b2d74a156
brcm63xx: Add DT support for VR-3025un
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42242
2014-08-21 11:28:34 +00:00
Jonas Gorski
42bbf7bcb3
brcm63xx: Add DT support for VR-3025u
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42241
2014-08-21 11:28:32 +00:00
Jonas Gorski
2936cacdfc
brcm63xx: Add DT support for AR-5387un
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42240
2014-08-21 11:28:28 +00:00
Jonas Gorski
b97aa0b4fd
brcm63xx: Add DT support for AR-5381u
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42239
2014-08-21 11:28:18 +00:00
Jonas Gorski
1891b08f00
brcm63xx: Add DT support for CT-6373
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42238
2014-08-21 11:28:14 +00:00
Jonas Gorski
e490cc7e14
brcm63xx: Add DT support for CT-5365
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42237
2014-08-21 11:28:10 +00:00
Jonas Gorski
770ba9d40f
brcm63xx: enable fallback sprom for Speedport W500 V
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42211
2014-08-18 21:50:45 +00:00
Jonas Gorski
29e4d82dbb
brcm63xx: fix HG556a boards and remove fallback board
...
This changes board info to match the Wiki
http://wiki.openwrt.org/toh/huawei/hg556a , removes the no longer needed
fallback board and fixes HG556 Ralink eeprom extraction.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: rename partitions instead]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42206
2014-08-18 21:50:29 +00:00
Jonas Gorski
43029544e2
brcm63xx: remove now obsolete board fixup code
...
Now that we migrated all users to dtb based detection, we can drop the
board fixup code.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42129
2014-08-11 11:37:26 +00:00
Jonas Gorski
74ec41ef59
brcm63xx: use dtb board detection for neufbox 4
...
This splits up neufbox 4 for now into two images, one for each OEM.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42128
2014-08-11 11:37:21 +00:00
Jonas Gorski
862f7fccb0
brcm63xx: use dtb board detection for NB6
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42127
2014-08-11 11:37:17 +00:00
Jonas Gorski
52b0935efe
brcm63xx: use dtb board detection for HW556
...
This requires individual images for each board version for now.
Linux partition was shrunk to ensure writing thewrong image won't
erase wifi calibration data.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42126
2014-08-11 11:37:14 +00:00
Jonas Gorski
0aa242fe20
brcm63xx: replace CFEFIXUP usage with dtb based detection
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42125
2014-08-11 11:37:09 +00:00
Jonas Gorski
9c6287d6a1
brcm63xx: add support for registering parallel flash through dtb
...
Add the required nodes to the dtsi files and code to prevent double
registration from the board support code.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42123
2014-08-11 11:37:01 +00:00
Jonas Gorski
de8e3f2f86
brcm63xx: add and enable support for loading an appended dtb
...
Allow appending a dtb blob to the binary and use it for identifying the
board. Fall back to nvram based identification in case of no dtb passed.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42119
2014-08-11 11:36:48 +00:00
Jonas Gorski
b61f57a5c7
brcm63xx: correctly export fallback sprom for brcm-wl
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 42118
2014-08-11 11:36:41 +00:00
Jonas Gorski
97d0ed4faa
brcm63xx: make board patch context less ambiguous
...
Make it less likely for quilt/patch to put boards into the "wrong"
section.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42117
2014-08-11 11:36:38 +00:00
Jonas Gorski
a06013e9b7
brcm63xx: fix board patches offsets
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo fix 553-boards_probe_switch.patch]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42116
2014-08-11 11:36:30 +00:00
Jonas Gorski
48318b52af
brcm63xx: Add fallback sprom for A4001N
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42110
2014-08-10 12:22:15 +00:00
Jonas Gorski
f30102c6c2
brcm63xx: Add fallback sprom for HG520v
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42109
2014-08-10 12:22:12 +00:00
Jonas Gorski
e07dc84b24
brcm63xx: Add fallback sprom for P870HW-51a
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42108
2014-08-10 12:22:10 +00:00
Jonas Gorski
568a15adb3
brcm63xx: Add fallback sprom for VR-3025un
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42107
2014-08-10 12:22:08 +00:00
Jonas Gorski
d3af37fdfb
brcm63xx: Add fallback sprom for VR-3025u
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42106
2014-08-10 12:22:05 +00:00
Jonas Gorski
6eb9375da4
brcm63xx: Add fallback sprom for WAP-5813n
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42105
2014-08-10 12:22:02 +00:00
Jonas Gorski
061f738087
brcm63xx: Add fallback sprom for AR-5381u
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42104
2014-08-10 12:21:59 +00:00
Jonas Gorski
23df30ca4a
brcm63xx: Add fallback sprom for AR-5387un
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42103
2014-08-10 12:21:55 +00:00
Jonas Gorski
d1f731866b
brcm63xx: Add fallback sprom for A4001N1
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42102
2014-08-10 12:21:52 +00:00
Jonas Gorski
312a7f9883
brcm63xx: Add fallback sprom for CT6373
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42101
2014-08-10 12:21:48 +00:00
Jonas Gorski
8240f6ad54
brcm63xx: Add fallback sprom for CT5365
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42100
2014-08-10 12:21:44 +00:00
Jonas Gorski
a299702df0
brcm63xx: Add fallback sprom for CT5361_CT5621
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42099
2014-08-10 12:21:39 +00:00
Jonas Gorski
a166e05188
brcm63xx: Add fallback sprom for Huawei HG553
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42098
2014-08-10 12:21:34 +00:00
Jonas Gorski
02e78b9bd8
brcm63xx: Fix fallback sprom il0mac
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42097
2014-08-10 12:21:30 +00:00
Jonas Gorski
930e3e7ca3
brcm63xx: add preliminary support for D-Link DSL-2751B E1
...
Mostly works except for USB led. Flashing not tested yet. Mostly
as an example for the sprom fixup code.
Fixup values taken from GPL tarball by comparing bcm43217_map.c
with the struct in sprom.c.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41944
2014-08-01 21:56:46 +00:00
Jonas Gorski
76746026b3
brcm63xx: rework fallback sprom support
...
Rework fallback sprom support by providing different sproms for
different chips. Also make it optional to use.
This likely causes sprom fallback support to break on a few boards.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41942
2014-08-01 21:56:38 +00:00
Jonas Gorski
b723119385
brcm63xx: replace nvram_buf with a properly initialized array
...
Use an empty nvram_header to tell wl that there is no nvram buf.
wl else might try to allocate huge amount of memory because the
bcm63xx's nvram does not match the expected structure and contains
random values.
Fixes the following warning on load of wl:
[ 9.152000] WARNING: at mm/slab_common.c:377 kmalloc_slab+0x4c/0xc0()
[ 9.160000] Modules linked in: wl(P+) wl_glue ipv6 gpio_keys_polled input_polldev button_hotplug input_core
[ 9.168000] CPU: 0 PID: 366 Comm: kmodloader Tainted: P 3.10.49 #1
[ 9.176000] Stack : 00000000 00000000 00000000 00000000 8034b77a 00000042 81ac9af0 c02e0000
[ 9.176000] 8028bf70 802df31b 0000016e 8034af28 81ac9af0 c02e0000 c02e0000 81b39810
[ 9.176000] 0000002d 8002c9d4 00000003 8002a3c8 802937a0 c02e0000 8028e528 81ab398c
[ 9.176000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 9.176000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 81ab3918
[ 9.176000] ...
[ 9.212000] Call Trace:
[ 9.216000] [<800224b8>] show_stack+0x48/0x70
[ 9.220000] [<8002a538>] warn_slowpath_common+0x78/0xa8
[ 9.224000] [<8002a5f0>] warn_slowpath_null+0x18/0x24
[ 9.228000] [<8008145c>] kmalloc_slab+0x4c/0xc0
[ 9.236000] [<80097258>] __kmalloc+0x20/0x10c
[ 9.240000] [<80e23b90>] osl_malloc+0x24/0x6c [wl]
[ 9.244000] [<80e15288>] nvram_init+0x54/0x164 [wl]
[ 9.252000] [<80e08668>] si_pci_fixcfg+0x60c/0x9e8 [wl]
[ 9.256000]
[ 9.260000] ---[ end trace b5c4dbb046cf3c83 ]---
Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41861
2014-07-28 15:31:37 +00:00
Jonas Gorski
042fb8eb57
brcm63xx: 3.14: fix ath9k_pci_fixup
...
Since kernel commit 928bea964827 ("PCI: Delay enabling bridges until
they're needed"), pci fixups are run with bridges (e.g. the pcie port)
disabled.
This causses hangs when ath9k_pci_fixup tries to manually enable the
device to apply the register fixups.
Fix this by enabling any parent bridges before trying to access the
device itself.
Fixes boot on DSL-274XB rev F1.
Reported-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41856
2014-07-28 11:12:25 +00:00
Jonas Gorski
1cb1041c55
brcm63xx: Add support for ADB P.DG A4001N
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41852
2014-07-27 17:44:59 +00:00
Jonas Gorski
3209fb968e
brcm63xx: Add support for Huawei HG520v
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41851
2014-07-27 17:44:56 +00:00
Jonas Gorski
c27cb6e0fd
brcm63xx: Add support for ZyXEL P870HW-51a v2
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41850
2014-07-27 17:44:53 +00:00
Jonas Gorski
b26139eb3f
brcm63xx: Add support for Comtrend VR-3025un
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41848
2014-07-27 17:44:48 +00:00
Jonas Gorski
a669d2c528
brcm63xx: Add support for Comtrend VR-3025u
...
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41847
2014-07-27 17:44:45 +00:00
Jonas Gorski
2b6403722b
brcm63xx: update irq affinity code to latest version
...
Reduces code size a bit and sets affinity to boot cpu by default.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41591
2014-07-12 12:31:47 +00:00
Jonas Gorski
e5cadabb58
brcm63xx: Fix HW553 support
...
- adsl and lan leds are swapped.
- internetkey is labeled as hspa.
- enable status led and reset button for failsafe.
- use new leds script.
- fix switch configuration.
- remove enet0 from board_info.
- add profile.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41588
2014-07-12 12:31:39 +00:00