Felix Fietkau
2e7a4b088d
ar71xx: allow unknown multicast frames to pass to the CPU on AR934x
...
SVN-Revision: 35564
12 years ago
Jonas Gorski
f07a33afc2
ar71xx: register the micro sd card reader on RB493G
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 35535
12 years ago
Gabor Juhos
6ff973bdda
ar71xx: Routerboard 751 Mac Address Offset Fix
...
We utilize many Routerboard 751's and discovered that our latest batch
of RB751's would not initialize the wireless radio. We have determined
Mikrotik has changed where the mac address was located inside hardconfig.
As such we utilize "routerboot_find_tag" to find the location of the mac
address. We should remove "RB751_MAC_ADDRESS_OFFSET" as it is ambiguous
by machine manufacturing date. The newer batch of RB751's that we received
had a RB751_MAC_ADDRESS_OFFSET 0x10.
Signed-off-by: Davey Hutchison <dhutchison@bluemesh.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35519
12 years ago
Gabor Juhos
7c87d28054
ar71xx: fixes whitespaces for dir-825-c1
...
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35455
12 years ago
Gabor Juhos
31af0dc186
ar71xx: fix mac address calculation on the OpenMesh MR600
...
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35446
12 years ago
Gabor Juhos
8837d3a49b
ar71xx: add kernel support for the OpenMesh MR600v2
...
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35428
12 years ago
Gabor Juhos
fe3db74276
ar71xx: remove unused OpenMesh MR6000 platform code
...
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35426
12 years ago
Gabor Juhos
5bd02ca895
ar71xx: add kernel support for the TL-WDR3500 board
...
WDR3500 is similar to WDR3600 except it doesn't have gigabit ethernet,
and has only 1 USB port.
Pending issues:
* Leds are not working at all (except power and wlan_5g)
* LAN switch ethernet ports are reversed with respect to case label.
[Label] -> soft device
[LAN1] -> eth0.4
[LAN2] -> eth0.3
[LAN3] -> eth0.2
[LAN4] -> eth0.1
Based on http://patchwork.openwrt.org/patch/3208/
Thanks-to: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35423
12 years ago
Gabor Juhos
800da21cb1
ar71xx: add kernel support for dir-825-c1
...
[juhosg:
- remove unused GPIO stuff
- use a separate kernel patch for machine integration]
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35401
12 years ago
Gabor Juhos
5ca187570f
ar71xx: add kernel support for Atheros AP132 Reference Board
...
Based on http://patchwork.openwrt.org/patch/3162/
Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35395
12 years ago
Gabor Juhos
8a9d92f125
ar71xx: fix ethernet device registration for the QCA9556 SoC
...
Based on http://patchwork.openwrt.org/patch/3162/
Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35394
12 years ago
Gabor Juhos
df15e5cd61
ar71xx: enable fast flash read on dual-flash devices
...
This improves flash read speed on various Buffalo units.
mtd_speedtest results on the WZR-HP-AG300H:
old new delta
eraseblock read speed: 726 KiB/s 2068 KiB/s +184.85%
page read speed: 699 KiB/s 1973 KiB/s +182.26%
2 page read speed: 711 KiB/s 2043 KiB/s +187.34%
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35392
12 years ago
Gabor Juhos
ba4de984b9
ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards
...
The PHY_SWAP and PHY_ADDR_SWAP bits are initialized
differently by different versions of the bootloader.
This leads to broken ethernet connection with OpenWrt
on some boards.
Turn both SWAP bits OFF on these boards to make it
consistent regardless of the bootloader used.
Based on a patch by Michel Stempin <michel.stempin@wanadoo.fr>.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35037
12 years ago
Gabor Juhos
66efec6783
ar71xx: allow to register the NAND flash controller on the QCA955x
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34945
12 years ago
Gabor Juhos
1dc2b6e8fa
ar71xx: ag71xx: show PHY interface mode in dmesg
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34880
12 years ago
Gabor Juhos
5dec87afef
ar71xx: fix ethernet device registration for QCA9558
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34853
12 years ago
Gabor Juhos
4085a5773d
ar71xx: fixup allowed PHY interface types for QCA9558
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34851
12 years ago
Gabor Juhos
f01a786825
ar71xx: don't assign any MII bus device on QCA9558 by default
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34850
12 years ago
Gabor Juhos
9edcd9d3a3
ar71xx: ag71xx: fix mii_bus_dev sanity check
...
The mii_bus device is not required if phy_mask is zero.
The driver will use a fixed connection if it is not
specified.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34849
12 years ago
Gabor Juhos
ad0f03d250
ar71xx: ag71xx: don't start/stop built-in switch w/o mii_bus_dev
...
Trying to do that causes a NULL pointer dereference:
CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 801d170c, ra == 801d18d4
Oops[#1 ]:
Cpu 0
$ 0 : 00000000 00000000 00000000 00000001
$ 4 : 00000000 802e6390 ffff8f45 00000001
$ 8 : 804b5360 ffffff80 802f93bc 00000000
$12 : 802f93e8 00000000 00000000 00000000
$16 : 8381aba0 8381aba0 00000000 00000000
$20 : 8295eff0 00000032 80000000 004101b8
$24 : 00000000 777265b0
$28 : 82936000 82937cf0 00420000 801d18d4
Hi : 00000000
Lo : 00000001
epc : 801d170c ar7240sw_reset+0x1c/0x19c
Tainted: G O
ra : 801d18d4 ag71xx_ar7240_start+0x28/0xc0
Status: 1100fc03 KERNEL EXL IE
Cause : 00800008
BadVA : 00000000
PrId : 00019750 (MIPS 74Kc)
Modules linked in: ath79_wdt ohci_hcd ledtrig_usbdev ledtrig_netdev
nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp
ipt_MASQUERADE iptable_nat nf_nat pppoe xt_conntrack xt_CT xt_NOTRACK
iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack
ehci_hcd pppox ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport
xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tab
les ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) ath9k_hw(O)
ath(O) mac80211(O) usbcore usb_common nls_base crc_ccitt cfg80211(O) c
ompat(O) arc4 aes_generic crypto_blkcipher cryptomgr aead crypto_hash
crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button
_hotplug(O)
Process netifd (pid: 677, threadinfo=82936000, task=82cbe140, tls=77803750)
Stack : ffffffff 80087900 00000001 82937d74 8381aba0 8381aba0 00000000 00000000
8295eff0 801d18d4 8295eff0 801fa4a4 00420000 80092158 00000002 8381aba0
8381a800 00000000 00000080 801cf900 8027e720 00000000 00000000 8009223c
8381a800 8381a82c 8027e720 00000000 00000000 7f9d14f0 00420000 801ec08c
8381a800 801ebfb0 33000000 82937e30 00000001 8381a800 00001003 801ec348
...
Call Trace:
[<801d170c>] ar7240sw_reset+0x1c/0x19c
[<801d18d4>] ag71xx_ar7240_start+0x28/0xc0
[<801cf900>] ag71xx_open+0x1d0/0x258
[<801ec08c>] __dev_open+0xcc/0x130
[<801ec348>] __dev_change_flags+0xc0/0x160
[<801ec490>] dev_change_flags+0x20/0x6c
[<801ec5c8>] dev_ifsioc+0xec/0x348
[<801ecdb8>] dev_ioctl+0x594/0x67c
[<800ec00c>] do_vfs_ioctl+0x598/0x5ec
[<800ec0b0>] sys_ioctl+0x50/0x90
[<8006a3c4>] stack_done+0x20/0x40
Code: afbf0024 afb40020 afb10014 <8c910000> 00809021 24100104 24130704 8e440000 02002821
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34848
12 years ago
Gabor Juhos
a0b31f97bb
generic: ar8216: rename cpuport_cfg to port0_cfg in ar8327_platform_data
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34846
12 years ago
Gabor Juhos
0767605d17
ar71xx: add kernel support for the TL-MR3220 v2
...
Based on the following patch:
http://patchwork.openwrt.org/patch/3043/
[juhosg:
- remove custom LED and button arrays
- use separate machine specific patch
- update Kconfig]
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34779
12 years ago
Gabor Juhos
bc82db7d78
ar71xx: add kernel support for the NETGEAR WNDR4300
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34647
12 years ago
Gabor Juhos
75b71f4a74
ar71xx: add ap91_pci_init_simple helper
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34646
12 years ago
Gabor Juhos
1f7ae58a2c
ar71xx: ar934x_nfc: allow to control DMA data swap via platform data
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34588
12 years ago
Gabor Juhos
188908e885
ar71xx: make rb750_nand driver compatible with 3.7
...
Also add compatibility patches for the currently
supported kernels.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34279
12 years ago
Gabor Juhos
8194237789
ar71xx: make ar934x_nfc driver compatible with 3.7
...
Also add compatibility patches for the currently
supported kernels.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34278
12 years ago
Gabor Juhos
46a3b818b9
ar71xx: remove buffer verification reference from rb4xx_nand.c
...
It is a dead code.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34276
12 years ago
Gabor Juhos
d833ca527d
ar71xx: restore rb4xx kernel partition size to the original value
...
The new lzma compressed elf kernel image fits into
that, even on devices with large page NAND chips.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34274
12 years ago
Gabor Juhos
d44d954dec
ar71xx: add kernel support for the RB435G board
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34239
12 years ago
Gabor Juhos
d62bddc620
ar71xx: update PCI IRQ map for RB4xx devices
...
Should fix #12269 .
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34238
12 years ago
Gabor Juhos
8d4857d677
ar71xx: add kernel support for the OpenMesh MR600 board
...
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34231
12 years ago
Gabor Juhos
91bab828aa
ar71xx: add support for TP-Link TL-WA7510N
...
It is mostly the same as TL-WA901N. WLAN and LAN
are working. LAN LED is working. WLAN signal
strength LEDs are not working yet.
http://wiki.openwrt.org/toh/tp-link/tl-wa7510n?s[]=wa7510n
[juhosg:
- cleanup commit message
- move non kernel related stuff into separate changes
- rename and refresh 615-MIPS-ath79-TL-WA7510N-v1-support patch
- merge WA7510N support into the mach-tl-wa901nd.c file
- add 3.6 support]
Signed-off-by: Stefan Helmert <helst_listen@aol.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34187
12 years ago
Gabor Juhos
f2528b1792
ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34087
12 years ago
Gabor Juhos
ed35253f4c
ar71xx: don't use the unknown LED on the ZCN-1523-5 board
...
According to #12421 , GPIO 1 controls the power
output on the unused lines of the LAN2 port.
Remove the LED definition in order to prevent
possible permanent hardware damage.
If someone needs that, the power-out feature can
be controlled via the GPIO sysfs interface.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34076
12 years ago
Gabor Juhos
7228a91a3b
ar71xx: fix link speed between AR7242 and AR8327 on the RB750GL/RB751G boards
...
The default pll_1000 value had to be changed
in order to make it working.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33993
12 years ago
Gabor Juhos
a6549ac1cb
ar71xx: remove NO_AUTOINCR flag from the NAND drivers
...
The flag is not present in 3.6.
Also add compatibility patches for 3.3.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33971
12 years ago
Gabor Juhos
e2ec99889e
ar71xx: ag71xx: fix build_skb arguments for 3.6
...
Also add a compatibility patch for 3.3
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33969
12 years ago
Gabor Juhos
d54c9653e9
ar71xx: add support for the Senao CAP4200AG board
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33956
12 years ago
Gabor Juhos
269872fe1e
ar71xx: use mtd_read in wrt160nl_part
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33951
12 years ago
Gabor Juhos
973eda6077
ar71xx: use mtd_read in tplinkpart
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33950
12 years ago
Gabor Juhos
f1f388d527
ar71xx: rw2458n - fix flash parts
...
See #12338 . Redwave rw2458 has uboot, not redboot.
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33867
12 years ago
Gabor Juhos
31387947c8
ar71xx: use the ath79_set_ar934x_eth_cfg helper in machine setup routines
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33818
12 years ago
Gabor Juhos
5ffc08e3dc
ar71xx: add a helper function for setting up ETH_CFG register on AR934x
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33817
12 years ago
Gabor Juhos
c5a32cfc92
ar71xx: add support for the OpenMesh OM2P-HS board
...
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33800
12 years ago
Gabor Juhos
196c6c5b45
ar71xx: add support for the TL-WR841N/ND v8 board
...
SVN-Revision: 33621
12 years ago
Gabor Juhos
170cd7a19a
ar71xx: avoid possible NULL pointer dereference in ath79_init_{,local}_mac
...
SVN-Revision: 33575
12 years ago
Gabor Juhos
e7b1949d87
ar71xx: automatically find WLAN calibration data on TEW-673GRU
...
SVN-Revision: 33539
12 years ago
Gabor Juhos
8ed8e51e74
ar71xx: automatically find WLAN calibration data on DIR-825-B1
...
SVN-Revision: 33538
12 years ago
Gabor Juhos
e70ad61e44
ar71xx: use different machtype and setup for the TL-MR3040
...
Should fix #12211 . Compile tested only.
SVN-Revision: 33535
12 years ago