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
2013-01-29 19:12:28 +00:00
Gabor Juhos
e9dbff1193
ar71xx: add kernel support 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: 35393
2013-01-29 19:12:26 +00:00
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
2013-01-29 19:12:25 +00:00
Gabor Juhos
562ba537fc
kernel: update linux 3.7 to 3.7.5
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35390
2013-01-29 18:29:45 +00:00
Gabor Juhos
22ce389e6a
ar71xx: add TP-LINK WA-801ND to run-time model detection
...
A small cosmetic fix to show the HW model name correctly in LuCI.
Patch-by: Amir Sagie <openwrt-devel@taproot.org.il>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35365
2013-01-29 09:40:29 +00:00
Felix Fietkau
ed7ca5d44e
kernel: clean up crypto related kconfig options
...
SVN-Revision: 35327
2013-01-27 17:23:12 +00:00
Felix Fietkau
8a1091ad53
ar71xx: disable support for unsupported mtd configuration, saves about 5K kernel size after lzma
...
SVN-Revision: 35326
2013-01-27 16:38:27 +00:00
Felix Fietkau
8933b918cd
kernel: use -ffunction-sections, -fdata-sections and --gc-sections on mips
...
in combination with kernel symbol export stripping this significantly reduces
the kernel image size
SVN-Revision: 35320
2013-01-26 16:26:13 +00:00
Gabor Juhos
15be1c9ee7
kernel: update linux 3.7 to 3.7.4
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35318
2013-01-24 17:08:37 +00:00
Felix Fietkau
8ce8960959
ar71xx: sync kernel sizes where possible to fix images for some devices ( #12874 )
...
SVN-Revision: 35309
2013-01-23 16:29:25 +00:00
Jo-Philipp Wich
3a2cccda2e
all targets: use numerically prefixed uci-defaults file names to better control order of execution
...
SVN-Revision: 35217
2013-01-18 12:42:53 +00:00
Gabor Juhos
0de21d9747
kernel: update linux 3.7 to 3.7.3
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35216
2013-01-18 11:44:42 +00:00
Felix Fietkau
1474359bd3
ar71xx: fix unaligned access in cls_u32
...
SVN-Revision: 35132
2013-01-13 16:48:23 +00:00
Felix Fietkau
e67b6ee395
ar71xx: fix unaligned access in a few more places
...
SVN-Revision: 35130
2013-01-13 15:37:58 +00:00
Felix Fietkau
b5bcbdfbb5
ar71xx: improve unaligned access patches, add a net_hdr_word() macro which assumes 2-byte aligned access and generates better code than {get,put}_unaligned_cpu32
...
SVN-Revision: 35129
2013-01-13 14:54:39 +00:00
Felix Fietkau
53e0ba49b9
ar71xx: avoid __packed define in the unaligned access hack patch, make the ipv6 address struct also 2-byte-aligned/packed
...
SVN-Revision: 35127
2013-01-13 13:06:09 +00:00
Felix Fietkau
764520975c
ar71xx: add more cpu feature overrides, slightly reduces kernel size
...
SVN-Revision: 35125
2013-01-13 11:33:48 +00:00
Felix Fietkau
310724c14d
ar71xx: extend the unaligned access hacks to a few more places that showed up in the new kernel
...
SVN-Revision: 35124
2013-01-13 11:33:44 +00:00
Gabor Juhos
eb2188c0e2
ar71xx: remove 3.6 support
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35114
2013-01-12 12:25:38 +00:00
Gabor Juhos
fe86bc9370
ar71xx: switch to 3.7
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35113
2013-01-12 12:25:36 +00:00
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
2013-01-07 14:30:37 +00:00
Gabor Juhos
251e4608b0
ar71xx: add missing Makefile entry to the 74HC153 GPIO patch
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35035
2013-01-07 14:14:41 +00:00
Gabor Juhos
e1965a1d1a
ar71xx: register the NAND flash controller device on the AP135/136 boards
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34946
2013-01-01 13:10:41 +00:00
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
2013-01-01 13:10:36 +00:00
Gabor Juhos
2c77e5d7b3
ar71xxx: allow to select ATH79_DEV_NFC for QCA955x
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34944
2013-01-01 13:10:34 +00:00
Gabor Juhos
d8446d65fe
ar71xxx: allow to build the ar934x_nfc driver for QCA955x
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34943
2013-01-01 13:10:29 +00:00
Gabor Juhos
93c322cacc
ar71xx: fix NAND controller base for QCA955x SoCs
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34942
2013-01-01 13:10:26 +00:00
Gabor Juhos
b57cc9a538
ar71xx: fold AP135 patch
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34941
2013-01-01 13:10:22 +00:00
Gabor Juhos
87271e9f28
ar71xx: add support for 3.7
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34920
2012-12-29 16:02:31 +00:00
Gabor Juhos
a3a6e0f039
ar71xx: Build the AP135 images
...
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34919
2012-12-29 16:02:28 +00:00
Gabor Juhos
dddf05bde2
ar71xx: Add userspace support for AP135
...
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34918
2012-12-29 16:02:27 +00:00
Gabor Juhos
1a379c5112
ar71xx: Add support for AP135
...
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34917
2012-12-29 16:02:24 +00:00
Gabor Juhos
c6580f64b8
ar71xx: use a backported patch to fix AR933x UART baud rate calculation
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34915
2012-12-29 13:52:38 +00:00
Felix Fietkau
348dc70c8c
ar71xx: change the unaligned access hack to assume an alignment of 2 bytes, slightly improves performance and code size
...
SVN-Revision: 34912
2012-12-28 21:30:24 +00:00
Felix Fietkau
41a039f464
mips: use -mno-branch-likely for kernel and userspace, saves ~11k kernel size after lzma and ~12k squashfs size in the default configuration
...
SVN-Revision: 34909
2012-12-28 19:17:19 +00:00
Gabor Juhos
f5b1cba606
ar71xx: build image for the AP136-020
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34886
2012-12-26 09:50:37 +00:00
Gabor Juhos
f3f05d86fe
ar71xx: add user-space support for AP136-020
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34885
2012-12-26 09:50:36 +00:00
Gabor Juhos
ed1889db33
ar71xx: add kernel support for the AP136-020 board
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34884
2012-12-26 09:50:34 +00:00
Gabor Juhos
c887a7fe4e
ar71xx: rename AP136 to AP136-010
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34883
2012-12-26 09:50:31 +00:00
Gabor Juhos
f8b4dfd172
ar71xx: dynamically set AR8327's PAD configuration on AP136
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34882
2012-12-25 18:45:32 +00:00
Gabor Juhos
1dc2b6e8fa
ar71xx: ag71xx: show PHY interface mode in dmesg
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34880
2012-12-25 18:45:29 +00:00
Gabor Juhos
64d31e6c6b
ar71xx: register the second ethernet interface on the AP136
...
Also fix the default network configuration
according to the new setup.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34854
2012-12-22 12:12:50 +00:00
Gabor Juhos
5dec87afef
ar71xx: fix ethernet device registration for QCA9558
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34853
2012-12-22 12:12:48 +00:00
Gabor Juhos
84a7051cef
ar71xx: rename QCA9558 ETH_CFG bit defines
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34852
2012-12-22 12:12:46 +00:00
Gabor Juhos
4085a5773d
ar71xx: fixup allowed PHY interface types for QCA9558
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34851
2012-12-22 12:12:44 +00:00
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
2012-12-22 12:12:43 +00:00
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
2012-12-22 12:12:41 +00:00
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
2012-12-22 12:12:40 +00:00
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
2012-12-22 12:12:35 +00:00
Gabor Juhos
e108cb91c0
ar71xx: rename fix-ar933x-reset patch
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34798
2012-12-20 14:13:16 +00:00