1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 16:34:04 +02:00
Commit Graph

877 Commits

Author SHA1 Message Date
juhosg
ba116ade9e ar71xx: ag71xx: nuke ar7240sw_init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29539 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-15 13:25:20 +00:00
juhosg
803afe6e40 ar71xx: fix mac addresses on jjPlus devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29538 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-15 13:25:18 +00:00
juhosg
d8f4833329 ar71xx: add support for ALFA Network's Hornet-UB board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29535 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-14 20:54:10 +00:00
juhosg
33334db9dc ar71xx: add GPIO function bit defines for AR933X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29534 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-14 20:54:07 +00:00
nbd
5841748e56 ar71xx: fix gpio count for ar7241/ar7242
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29532 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-14 20:47:24 +00:00
nbd
75bbe95c04 ar71xx: register extra leds behind the wireless mac on wzr-hp-g450h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29531 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-14 20:21:42 +00:00
nbd
340372534c kernel: move linux/ath9k_platform.h to generic files so that it can be reused from other targets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-13 15:14:59 +00:00
nbd
e7bf9d2f6d ar71xx: fix wireless led on wzr-hp-g450h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29515 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-13 15:00:43 +00:00
juhosg
17595c4da2 ar71xx: enable AR9341 support at setup.c
Patch-by: dyq <729650915@qq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29514 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-13 14:59:43 +00:00
juhosg
6caa8876b2 ar71xx: Build images for Netgear WNDRMAC and WNDRMACv2
The WNDRMAC is a WNDR3700v2 (64MB RAM, 16MB flash) in a white case. The
WNDRMACv2 is a WNDR3800 (128MB RAM, 16MB flash) in a WNDRMAC case.

The WNDRMAC case doesn't have "holes" or labels for the 2.4GHz LED or
switch ports 2-4. The stock firmware uses a single LED (in the 5GHz
position) to indicate the status of both radios, and a single LED (in the
switch port 1 position) to indicate the status of all LAN ports. The
"missing" LEDs are present on the board, and easily shine through the
case. Unlike the stock firmware, OpenWrt will use these "hidden" LEDs.

I've tested the WNDRMACv2 image. I don't have a v1 WNDRMAC, but assume
that this is sufficient to build a fully-functional image.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-13 14:59:40 +00:00
nbd
ec66b62afa ar71xx: add gpios and usb for wzr-hp-g450h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29509 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-13 13:33:44 +00:00
juhosg
1e26277d1e ar71xx: use RedBoot parser on PB44
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29501 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-11 15:52:47 +00:00
juhosg
99997320ea ar71xx: use correct mac on the lan interface on several TP-LINK devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 21:10:58 +00:00
juhosg
a97fd90341 ar71xx: allow to pass negative offset values for ar71xx_init_mac
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29457 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 21:10:55 +00:00
juhosg
097436bca8 ar71xx: don't register PCI controller on AR934x if PCIE_RC bit is not set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29456 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 18:21:15 +00:00
juhosg
35606f14a3 ar71xx: check squashfs signature in TP-Link mtd parser
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29446 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 14:52:33 +00:00
nbd
c1679af6b3 ar71xx: add preliminary support for wzr-hp-g450h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29441 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 14:20:51 +00:00
nbd
f684eb2454 ar71xx: move multi-m25p80 concat code from wzr-hp-ag300h mach code to dev-m25p80.c, other buffalo routers use it as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29440 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 14:20:44 +00:00
juhosg
44a7438217 ar71xx: rewrite WNDR3700/3800 handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 13:03:54 +00:00
juhosg
11a837ce02 ar71xx: use the tp-link parser on the tp-link boards
Also remove static partition maps.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29416 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-03 18:13:31 +00:00
juhosg
17c2fb2fc8 ar71xx: add mtd partition parser for the TP-Link boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29415 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-03 18:13:27 +00:00
juhosg
37a46ae9f4 ar71xx: run the RedBoot parser only on the RedBoot based boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-03 18:13:25 +00:00
juhosg
23c921bb91 ar71xx: run the MyLoader parser only on the WP543 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29413 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-03 18:13:23 +00:00
juhosg
4dbb6eef31 ar71xx: run the wrt160nl parser only on the WRT160NL board
Also remove static mtd partition definitions.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29412 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-03 18:13:20 +00:00
juhosg
41d8ed17e0 ar71xx: add support for Ubiquiti AirRouter
Signed-off-by: Gergely Barta <gergely.barta@printerfairkft.hu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-01 22:49:02 +00:00
juhosg
e6638f1bd3 ar71xx: modify phy mask of the WP543 board
This fixes ethernet on newer boards. Based on a patch from #9702.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29328 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-24 20:09:43 +00:00
juhosg
4baa5f5378 ar71xx: fix wndr3800 machine name
This fixes the machine name in /proc/cpuinfo and luci status page machine name.

Signed-off-by: Petri Rosenström <petri.rosenstrom@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-24 20:09:38 +00:00
juhosg
74bada8592 ar71xx: set GE0 phy_mask for AR933x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-20 11:30:10 +00:00
juhosg
2ba51b8c17 ar71xx: fix USB LED on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29126 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 17:43:15 +00:00
juhosg
8f09b983e5 ar71xx: add a function for selecting output signal on a given GPIO pin
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29125 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 17:43:14 +00:00
juhosg
95684215c0 ar71xx: fix GPIO function handling on AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29124 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 17:43:13 +00:00
juhosg
73b96446ee ar71xx: add AR71XX_ prefix to GPIO_REG_* defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29123 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 17:43:11 +00:00
juhosg
d9b73ec674 ar71xx: merge nand scan patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 17:43:10 +00:00
juhosg
b9c4475b88 ar71xx: fix a compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29110 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 13:07:47 +00:00
juhosg
e8a5cbc660 ar71xx: fix GPIO count for AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29109 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 13:07:45 +00:00
juhosg
2f0405019f ar71xx: flush DDR writeback buffers for WMAC and PCIe on AR934X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29108 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 11:49:53 +00:00
juhosg
c86a746ece ar71xx: use a dummy irq chip for WMAC and PCIe irq hadling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29107 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 11:49:51 +00:00
juhosg
c6f1eddcdf ar71xx: add AR934X_RESET_REG_PCIE_WMAC_INT_STATUS defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 11:49:49 +00:00
juhosg
de73b57f12 ar71xx: add an irq parameter for ar724x_pcibios_init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29105 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 11:49:47 +00:00
juhosg
1937a07a4e ar71xx: remove hardwired interface parameters from mach-* files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29103 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 07:38:09 +00:00
juhosg
2b0cd69920 ar71xx: force hardwired interface parameters in ar71xx_add_device_eth
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 07:38:07 +00:00
juhosg
7f6b8dc9f4 ar71xx: use if-else instead of conditional operators in ar71xx_add_device_eth
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29101 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 07:38:05 +00:00
juhosg
f0f8408f20 ar71xx: enable has_gbit flag on AR724{0,1}
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 17:36:36 +00:00
juhosg
5e68925d9a ar71xx: fixup onboard PCIe chip registration on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 12:48:03 +00:00
juhosg
cf53375340 ar71xx: drop DB120_WMAC_MAC_OFFSET, it is not needed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29021 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 12:48:01 +00:00
juhosg
3095cc8090 ar71xx: ag71xx: add support for getting switch port link status
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29017 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:27:04 +00:00
juhosg
7ea3800d31 ar71xx: remove mii_ctrl resources of the ethernet devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29016 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:27:03 +00:00
juhosg
451654dc3a ar71xx: ag71xx: remove unused mii_ctrl field from struct ag71xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:27:01 +00:00
juhosg
749767a552 ar71xx: ag71xx: remove unused mii_cfg related functions and defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29014 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:27:00 +00:00
juhosg
228681e328 ar71xx: set MII interface speed from the set_speed callbacks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29013 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:59 +00:00
juhosg
7571fae3ab ar71xx: rename set_pll callback to set_speed in ag71xx_platform_data
Also rename the corresponding callback functions.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29012 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:57 +00:00
juhosg
95d3699b73 ar71xx: ag71xx: remove MII interface setup code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29011 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:56 +00:00
juhosg
13e0098939 ar71xx: configure MII interface type from ar71xx_setup_phy_if_mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29010 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:54 +00:00
juhosg
0999f2be56 ar71xx: use the button for WPS control on the DB120
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28990 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:50:20 +00:00
juhosg
69a4e7ba6a ar71xx: register the second ethernet interface on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28989 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:50:19 +00:00
juhosg
f42393b3c6 ar71xx: implement SoC specific phy interface setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28988 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:50:18 +00:00
juhosg
428566d3de ar71xx: move phy interface setup into a separate function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28987 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:50:16 +00:00
juhosg
9c2632e5aa ar71xx: register both MDIO bus on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28986 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:59 +00:00
juhosg
8255c166fd ar71xx: add AR934X specific MDIO registration code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:56 +00:00
juhosg
79bc01d085 ar71xx: add a secondary mdio bus
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:54 +00:00
juhosg
4e5c6e94da ar71xx: rename ar71xx_mdio_* structures to ar71xx_mdio0_*
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:50 +00:00
juhosg
f20b056795 ar71xx: add an id argument to ar71xx_add_device_mdio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28982 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:48 +00:00
juhosg
7d1b33ecbd ar71xx: pass netdev and miidev pointer to ar71xx_add_device_dsa
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 12:09:42 +00:00
juhosg
1553f9eabd ar71xx: add AR934x specific USB setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:20 +00:00
juhosg
5f0b41bae5 ar71xx: register the first ethernet interface on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28979 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:18 +00:00
juhosg
8a3f26299d ar71xx: allow to register ethernet interfaces for AR934X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:17 +00:00
juhosg
3cd36281d9 ar71xx: ag71xx: use fixed link parameters if the mii bus is not registered
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28977 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:16 +00:00
juhosg
a1f5559837 ar71xx: add AR934X specific bootstrap and reset register bits
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28976 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:15 +00:00
juhosg
bb977eb73b ar71xx: fix GPIO direction setup for AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28974 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:09 +00:00
juhosg
1d1240855a ar71xx: fix AR934X clock frequency calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28973 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:08 +00:00
nbd
33f4cde7a9 ar71xx: remove dead code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28851 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-08 00:33:20 +00:00
nbd
4677737b0a ar71xx: on ar7240, exclude ports from their own port vlan destination mask
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-08 00:33:15 +00:00
juhosg
266baaf0dd ar71xx: add support for the Buffalo WHR-HP-GN board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28805 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 12:59:10 +00:00
juhosg
17990be972 ar71xx: add support for the Buffalo WHR-G301N board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28803 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 12:59:07 +00:00
juhosg
29f0664566 ar71xx: fix WHR-HP-G300N MTD partitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28800 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 12:59:03 +00:00
juhosg
38ba6904bb ar71xx: add missing AR71XX_MACH_TL_WR741ND_V4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28709 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 14:38:12 +00:00
juhosg
77da44561c ar71xx: add initial support for the TL-WR741ND v4 board
The ethernet port LEDs are not working yet.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28706 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 11:20:52 +00:00
juhosg
2fb031808c ar71xx: add AR933X GMAC register defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 11:20:50 +00:00
juhosg
0fe49305de ar71xx: unify LED names on Planex boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 11:20:47 +00:00
juhosg
54e69d54d6 ar71xx: unify LED names on Buffalo boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 11:20:46 +00:00
juhosg
46393cef66 ar71xx: unify LED names on TP-Link boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 11:20:44 +00:00
juhosg
85713e36cb ar71xx: add initial support for the OpenMesh OM2P board
Based on a patch by Marek Lindner <marek@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28617 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 07:54:51 +00:00
juhosg
8256ef2e81 ar71xx/all0258n: fix partition layout
A miscalculation in the original patch makes OpenWrt destroy the failsafe image.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28615 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 07:54:47 +00:00
juhosg
c01dd82e04 ar71xx: Buffalo WHR-HP-G300N kernel support
The initial support for the Buffalo WHR-HP-G300N box.
The code was confirmed to boot and run, but not tested in depth.

Known problem: iw phy phy0 info shows:
	Coverage class: 0 (up to 0m)
	Available Antennas: TX 0 RX 0

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-24 21:49:26 +00:00
juhosg
61504e67d9 ar71xx: add kernel support for the Allnet ALL0258N board
This patchs adds support for the Allnet ALL0258N outdoor AP/bridge.
The ALL0258N is based on the AR7240 SoC paired with an AR9285 radio,
it got 8MB of NOR and 32MB SDRAM.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-24 21:49:21 +00:00
jogo
0f7b0ae7de linux: ar71xx: add support for Mikrotik Routerboard RB493G
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28423 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-11 23:05:16 +00:00
jogo
d066413d5d ag71xx: close a race between the phy state machine and link state
A fast stop/start cycle could leave the ag71xx interrupts and tx engine
disabled when using a phy driver with a fixed link and the start/stop
happens between two phy state machine polls.

Prevent this by always forcing the link down on stop regardless of phy
state and having a phy connected.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-08 11:37:14 +00:00
juhosg
8d0d02042c ar71xx: fix MAC addresses on the DIR-825-B1 board
Patch-by: Lukas Kuna

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28295 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-23 19:56:39 +00:00
juhosg
5fdfc7948a ar71xx: add support for the TP-Link TL-WR703N v1 board
Based on a patch by dongyuqi <729650915@qq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28277 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-21 11:47:53 +00:00
juhosg
8f241d9a09 ar71xx: add AR933x specific USB setup function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28276 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-21 11:47:51 +00:00
juhosg
3a5386be36 ar71xx: add ar71xx_device_reset_rmw helper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28275 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-21 11:47:50 +00:00
juhosg
f580569c07 ar71xx: remove 'default [yn]' from machine Kconfig entries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28273 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-21 11:47:47 +00:00
juhosg
5bc57a6b20 ar71xx: sort AR71XX_MACH_* entries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28272 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-21 11:47:45 +00:00
nbd
3c978d1604 ar71xx: fix register range check for DMA stuck checks (thx, Frédéric Moulins)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28213 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-11 17:44:12 +00:00
nbd
8708bcc2d3 ar71xx: do not count normal interrupts as spurious (fixes #10037)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28182 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-06 05:38:23 +00:00
nbd
25d7a6da6c ar71xx: fix ethernet PLL setting on ar7242
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28124 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-29 21:23:46 +00:00
nbd
db5c8f65ca ar71xx: add some code to detect DMA stuck conditions on ar7240
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27975 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-13 22:30:14 +00:00
nbd
5051a6677f ar71xx: on ar724x only reset the link status in the restart handler, the fast reset takes care of DMA stuck issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27973 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-13 21:49:46 +00:00
nbd
65dea0f0b1 ar71xx: adjust the mtd layout of tew-632brp and dir-615c to match the image layout (fixes #9922)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27959 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-11 13:52:40 +00:00
nbd
571d12ab3a ar71xx: fix ethernet FIFO state corruption on ar7240
When starting/stopping DMA sometimes the FIFO state gets corrupted,
leading to wildly fluctuating latencies or packet data corruption.
Fix this by issuing a fast MAC reset as soon as the link is detected
as up. Fixes #9689, #9405

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-04 17:36:31 +00:00
nbd
27818ae524 ag71xx: fix memory corruption issues on ar7240 on ethernet start/stop
When the DMA engine state gets corrupted due to a hardware issues, it
often won't stop rx until a full reset is issued. In that case the hardware
must keep a valid descriptor, otherwise it will write to random places in
system RAM, triggering random crashes. To fix this, keep a dummy descriptor
without a buffer that keeps the DMA engine in a sane state until the reset
is done

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27895 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-04 17:36:27 +00:00
nbd
3fe5c4149b ar71xx: fix MAC/MDIO reset mask handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27894 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-04 17:36:23 +00:00
jogo
e5839cb102 ar71xx: merge WZR-HP-G301NH support into WZR-HP-G300NH
Now that we can use a generic name for the switch there is no need for a
separate image for the WZR-HP-G301NH.
Update the default network config and remove the extra image.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27814 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-28 11:57:51 +00:00
nbd
005e21d6ac ar71xx: autodetect rtl8366s/rtl8366rb on wzr-hp-g300nh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27756 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-24 14:40:35 +00:00
nbd
de95026813 rtl8366: unify rtl8366s and rtl8366rb platform data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27754 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-24 14:40:23 +00:00
nbd
c9e45803ce ar71xx: enable the usb power regulator on the wzr-hp-ag300h through gpio 2 (#9684)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27739 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-24 08:02:20 +00:00
nbd
3bad82d2e7 ar71xx: reinitialize global switch settings after reset on ar7240
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 14:39:47 +00:00
nbd
340551c062 ar71xx: configure address aging on ar7240
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27704 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 14:39:42 +00:00
nbd
8ea4f149b0 ar71xx: reset the phy in the ethernet init on ar724x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 12:04:34 +00:00
nbd
96c14099ce ar71xx: make sure that rx and interrupts are disabled before issuing the hardware reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 12:04:29 +00:00
nbd
9dfcd7e5e2 ar71xx: increase the delay after the ethernet MAC reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 12:04:25 +00:00
nbd
db4cd49d62 ar71xx: fix an unused variable warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-20 12:04:20 +00:00
nbd
ec8e57edd9 ar71xx: do not reset the hardware on transmit timeout - this would mess up the up the PHY state
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-09 06:30:13 +00:00
nbd
cc32100390 ag71xx: keep the rx engine stopped while the link is not up, should hopefully fix stability issues from #9405
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-09 06:29:46 +00:00
juhosg
14ca52f672 ar71xx: remove CONFIG_MTD_CONCAT ifdefs from the WZR-HP-AG300H code
The config option has been removed in 2.6.39.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-30 12:15:33 +00:00
juhosg
5c047f9906 ar71xx: merge 2.6.39 patches
Also remove the old UART driver for ar933x.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:37 +00:00
juhosg
da1bd2aad6 ar71xx: add 2.6.39 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27310 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:32 +00:00
juhosg
48cf86296e ar71xx: remove ar71xx_gpio_irq_set_type
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27309 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:30 +00:00
juhosg
47d06a3f16 ar71xx: add separate handlers for IP3 interrupts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27308 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:29 +00:00
juhosg
32852643ef ar71xx: use separate handlers for IP2 interrupts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27307 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:28 +00:00
juhosg
62be67eb01 ar71xx: remove useless irq_desc.status initializations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27306 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-29 08:57:27 +00:00
nbd
40ad0e2ed9 ar71xx: bring up secondary radio on wzr-hp-ag300h (fixes #9608)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-25 13:48:47 +00:00
juhosg
8738d0666a ar71xx: cleanup AR933X UART driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-19 13:17:51 +00:00
juhosg
4a96046040 ar71xx: fix uart clock frequency for AR933X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27221 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-19 13:17:50 +00:00
juhosg
63dccaf23b ar71xx: use ar933x_uart.h in the AR933X serial driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-13 08:12:40 +00:00
juhosg
83e2548ec8 ar71xx: update early_printk code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-13 08:12:38 +00:00
juhosg
377e161817 ar71xx: setup wdt_clock for AR913X to avoid a kernel bug
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-04 12:30:10 +00:00
juhosg
7d535a19ed ar71xx: select the internal antenna by default on the ZCN-1523H boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27101 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-04 12:30:09 +00:00
nbd
480dfda6ec Revert "ar71xx: only enable the rx engine after the link is up..."
It messes up the DMA state when the link goes down

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 18:15:43 +00:00
juhosg
3db28f9561 ar71xx: init external_reset for AR933X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 13:12:30 +00:00
juhosg
1bab920361 ar71xx: add external_reset field to ath9k_platform_data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 13:12:28 +00:00
juhosg
037092a862 ar71xx: init get_mac_revision on AR9330 rev 1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 13:12:27 +00:00
juhosg
03659f9521 ar71xx: add get_mac_revision to ath9k_platform_data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27080 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 13:12:26 +00:00
juhosg
9657aff1ae ar71xx: export SoC revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 13:12:24 +00:00
nbd
50919ca9e2 ar71xx: add kernel support for the buffalo wzr-hp-ag300h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 02:23:26 +00:00
juhosg
92fa0b3f16 ar71xx: add support for the AP121/AP121-MINI reference boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27067 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:43 +00:00
juhosg
7c4adb453c ar71xx: register UART for the AR933X SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27066 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:42 +00:00
juhosg
1c869e33cc ar71xx: add serial driver for the AR933X UART
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27065 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:40 +00:00
juhosg
5e832d5f35 ar71xx: add WMAC initialization code for the AR933X SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27064 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:39 +00:00
juhosg
b33cedf6fa ar71xx: add ethernet initialization for the AR933X SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:37 +00:00
juhosg
aa6b4cd97a ar71xx: enable USB support for the AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:36 +00:00
juhosg
6f45adddfe ar71xx: add AR933x specific glue for ar71xx_device{start,stop}
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:35 +00:00
juhosg
c7eb38661b ar71xx: the watchdog uses the reference clock on the AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27060 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:34 +00:00
juhosg
0570263dcb ar71xx: add AR933x specific glue code for IRQ initialization
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:32 +00:00
juhosg
771bbc30cf ar71xx: don't register 8250 UART on the AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27058 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:31 +00:00
juhosg
4cae90b75b ar71xx: enable GPIO support for the AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:30 +00:00
juhosg
046f6d9c97 ar71xx: add AR933x specific frequency initialization code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:29 +00:00
juhosg
9d012c4aae ar71xx: add AR933x specific early_printk support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:27 +00:00
juhosg
a5e8c5446f ar71xx: add preliminary support for the Atheros AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:26 +00:00
juhosg
eaa759a8e5 ar71xx: Fix header offset for newer WRT160NL models
Newer WRT160NLs have a flash chip with 4K erase blocks instead of 64K,
resulting in miscalculated partition sizes.
Since the actual sizes did not change, hardcode them to their current
sizes, and make sure they are at least one erase block big (in case Cisco
decides to start to use chips with 128K erase blocks).

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27049 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:20 +00:00
juhosg
5b9155beba ar71xx: add SOC_AR{71XX,724X,913X,934X} config symbols
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27048 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:19 +00:00
juhosg
bd8a2aaee9 ar71xx: initialize is_clk_25mhz field for AR9340 WMAC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27045 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:15 +00:00
juhosg
c772123439 ar71xx: sync ath9k_platform_data.h with compat-wireless
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:14 +00:00
juhosg
75e1476cce ar71xx: ag71xx: make ring sizes configurable via ethtool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:10 +00:00
juhosg
a137dec884 ar71xx: ag71xx: prepare to make ring sizes configurable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27040 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:09 +00:00
juhosg
940317dc35 ar71xx: ag71xx: nuke unused AG71XX_TX_FIFO_LEN define
Reported-by: Dave Täht <dave.taht@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27039 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-31 22:53:07 +00:00
nbd
debcf79f90 ar71xx: only enable the rx engine after the link is up, fixes a race condition that got rx stuck when the interface is brought up during lots of inbound traffic (thx, matteo)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27035 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-30 23:08:01 +00:00
nbd
20aef6d6fc ar71xx: disable flow control for ar724x, it can get stuck in a loop of continously sending MAC pause frames
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27034 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-30 23:07:57 +00:00
matteo
005a65e01d ar71xx: don't probe the LAN PHY
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26924 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-17 11:15:24 +00:00
matteo
483991c363 ar71xx: detect link on LAN ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26922 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-17 11:12:56 +00:00
matteo
511dea0dac ar71xx: add link detection on Ubiquiti devices WAN port
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26891 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-14 23:31:50 +00:00
matteo
51053e7640 use correct macros and frame size in ag71xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26890 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-14 23:10:06 +00:00
matteo
0cbd6d9057 ar71xx: cosmetic fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26889 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-14 23:08:00 +00:00
juhosg
b500b67652 ar71xx: populate LED3 on the JA76PF board
Patch-by: Cezary Jackiewicz <cezary@eko.one.pl>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26862 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 21:38:51 +00:00
juhosg
5b6a159d03 ar71xx: remove superfluous fifo_cfg overrides
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26859 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 21:38:46 +00:00
juhosg
bb14a2f07c ar71xx: ag71xx: make switch register access atomic
Reading of the PHY registers occasionally returns with bogus values
under heavy load. This misleads the PHY driver and thus causes false
link/speed change notifications which leads to performance loss.

This is easily noticable during an iperf session:

...
[  3] 52.0-53.0 sec  11.3 MBytes  94.4 Mbits/sec
[  3] 53.0-54.0 sec  11.4 MBytes  95.4 Mbits/sec
eth1: link down
br-lan: port 2(eth1) entering forwarding state
eth1: link up (100Mbps/Full duplex)
br-lan: port 2(eth1) entering forwarding state
br-lan: port 2(eth1) entering forwarding state
[  3] 54.0-55.0 sec  6.75 MBytes  56.6 Mbits/sec
[  3] 55.0-56.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 56.0-57.0 sec  10.5 MBytes  88.1 Mbits/sec
...
[  3] 169.0-170.0 sec  11.4 MBytes  95.4 Mbits/sec
[  3] 170.0-171.0 sec  11.4 MBytes  95.4 Mbits/sec
eth1: link up (10Mbps/Half duplex)
[  3] 171.0-172.0 sec  7.63 MBytes  64.0 Mbits/sec
[  3] 172.0-173.0 sec  9.38 MBytes  78.6 Mbits/sec
eth1: link up (100Mbps/Full duplex)
[  3] 173.0-174.0 sec  11.3 MBytes  94.4 Mbits/sec
[  3] 174.0-175.0 sec  11.4 MBytes  95.4 Mbits/sec

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 16:32:53 +00:00
juhosg
0511a7adf1 ar71xx: ag71xx: fix section mismatch warnings
The function __devinit ag71xx_probe() references
a function __devexit ag71xx_phy_disconnect().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
ag71xx_phy_disconnect() so it may be used outside an exit section.

The function ag71xx_phy_disconnect() references a function in an exit
section.
Often the function ag71xx_ar7240_cleanup() has valid usage outside the
exit section
and the fix is to remove the __devexit annotation of
ag71xx_ar7240_cleanup.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 13:30:36 +00:00
juhosg
14088891b0 ar71xx: ag71xx: fix build error if debugfs is enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 13:30:26 +00:00
juhosg
e5061b1935 ar71xx: ag71xx: add debugfs entry for [rt]x_ring
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:34 +00:00
juhosg
5155342ee7 ar71xx: ag71xx: add timestamps to ag71xx_buf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26844 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:28 +00:00
juhosg
5e10b16d95 ar71xx: ag71xx: use dynamically allocated buffer for napi_stats
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26843 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:26 +00:00
juhosg
f6816e49d9 ar71xx: ag71xx: use debugfs_remove_recursive
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26842 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:25 +00:00
juhosg
193e04ebee ar71xx: override wmac device name for the AR934x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26840 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 09:23:32 +00:00
nbd
118a9c5154 ar71xx: use the ar8316 switch driver on the PB92 board and add a matching default network config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-28 21:27:42 +00:00
nbd
8220523bad ar71xx: fix MDIO access on ar7242 (based on a patch by Jess Zhu)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26777 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-28 19:30:49 +00:00
juhosg
b5cfb56ed4 ar71xx: fix build error w/o CONFIG_PCI
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 13:14:56 +00:00
juhosg
ec1dcc5bda ar71xx: use the gpio_keys_polled driver instead of gpio_buttons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26603 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 09:29:21 +00:00
juhosg
b47906964d ar71xx: Add support for WZR-HP-G301NH
Add support for the Buffalo WZR-HP-G301NH. The only difference between it
and the WZR-HP-G00NH is that it has a RTL8366RB instead of a RTL8366S.
Since we don't do runtime detection of the switch, we need a separate
machine definition for it.

While we are at it, also rename the profile to reflect that it now is for
more than one device.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 09:29:10 +00:00
juhosg
2be7aaf5c2 ar71xx: merge dev-ar9{13,34}x-wmac into dev-ar9xxx-wmac
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 17:37:08 +00:00
juhosg
613a88e6a5 ar71xx: fix AR934X_WMAC_SIZE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 17:37:03 +00:00
juhosg
9330419fa7 ar71xx: fix section mismatch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:55 +00:00
juhosg
f2a69b10a8 ar71xx: rename ar934x_ref_freq to ar71xx_ref_freq
Also initialize that for each SoC and print its value along with the
other frequencies.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:52 +00:00
juhosg
f4bb6b6582 ar71xx: show the SoC type earlier
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26560 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:50 +00:00
juhosg
8de3a1a306 ar71xx: cleanup SoC detection code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:49 +00:00
juhosg
db38ac7711 ar71xx: Fix mac address offset for AR934x
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:42 +00:00
juhosg
b1f3482e70 ar71xx: add DB120 board specific PCI initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:41 +00:00
juhosg
004690a661 ar71xx: register WMAC device on the DB120 board
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:37 +00:00
juhosg
ce9abcca4a ar71xx: add support for the built-in WMAC of the AR934x
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26521 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:34 +00:00
juhosg
e018221576 ar71xx: add initial support for the Atheros DB120 board
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26518 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:19 +00:00
juhosg
7072aeaf32 ar71xx: add support for the watchdog of the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:10 +00:00
juhosg
b21a1fabc6 ar71xx: enable PCI for the AR934[24] SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26515 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:05 +00:00
juhosg
d6c448b131 ar71xx: enable USB support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26514 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:03 +00:00
juhosg
3167111b62 ar71xx: enable GPIO support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:00 +00:00
juhosg
7763501529 ar71xx: add AR934x specific glue for ar7100_device{start,stop}
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:57 +00:00
juhosg
2c08ed8f8b ar71xx: add AR934x specific UART clock initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26511 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:53 +00:00
juhosg
c5000fc993 ar71xx: add AR934x specific glue for IRQ initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26510 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:49 +00:00
juhosg
a5bba4d8fb ar71xx: add initial support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26509 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:45 +00:00
nbd
abc719ecfd ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:33 +00:00
nbd
7569a2e88f ar71xx: only allow internal access to the ar7240 switch, export the MDIO bus behind the switch instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:29 +00:00
nbd
fd5cb87889 ar71xx: frequent ethernet mac resets upset the MDIO bus on ar7240, so do not run them on every device open, only on tx timeouts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:25 +00:00