juhosg
4cc612872a
ar71xx: fix occasional kernel hangs during boot on AR934x
...
The patch taken from the linux-mips mailing list.
The Kernel hangs occasionally during boot after
"Calibrating delay loop..". This is caused by the
c0_compare_int_usable() routine in cevt-r4k.c
returning false which causes the system to disable
the timer and hang later. The false return happens
because the routine is using a series of four calls
to irq_disable_hazard() as a delay while it waits
for the timer changes to propagate to the cp0 cause
register. On newer MIPS cores, like the 74K, the
series of irq_disable_hazard() calls turn into ehb
instructions and can take as little as a few clock
ticks for all 4 instructions. This is not enough of
a delay, so the routine thinks the timer is not
working.
This fix uses up to a max number of cycle counter
ticks for the delay and uses back_to_back_c0_hazard()
instead of irq_disable_hazard() to handle the hazard
condition between cp0 writes and cp0 reads.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29009 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:52 +00:00
juhosg
5fb5b4483b
ar71xx: refresh kernel patches
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29008 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:26:51 +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
a3d2129487
ar71xx: add diag support for the DB120 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28975 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:10 +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
juhosg
b780360c45
ar71xx: generate ubootenv from uci-defaults instead of providing defconfig
...
I noticed most of /etc/defconfig was replaced by /etc/uci-defaults, which is
indeed much nicer. So I moved over ubootenv from having a defconfig-entry to
also be generated from uci-defaults.
Signed-off-by: Daniel Golle <dgolle@allnet.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28971 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 10:54:04 +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
e3ad4fdef0
ar71xx: create TL-WA901ND network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:24 +00:00
juhosg
53b106bac4
ar71xx: create ALL0258N network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:23 +00:00
juhosg
6827eb6991
ar71xx: create NBG{460N,550N,550NH} network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28831 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:20 +00:00
juhosg
cec23da75a
ar71xx: create WZR-HP-G300NH network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28830 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:17 +00:00
juhosg
78fd771952
ar71xx: create RB-493G network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:12 +00:00
juhosg
27b52397f9
ar71xx: create TL-WR1043ND network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28828 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:11 +00:00
juhosg
97783936b3
ar71xx: create WRT160NL network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:09 +00:00
juhosg
9a2f4e2196
ar71xx: create PB92 network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28826 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:08 +00:00
juhosg
55fb18f8e1
ar71xx: create DIR-825-B1 network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:07 +00:00
juhosg
c46cd218f0
ar71xx: create TL-WR{841N-v1,941ND} network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28824 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:03 +00:00
juhosg
b9aab9ba7e
ar71xx: create RB-450 network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:02 +00:00
juhosg
e1af0acf19
ar71xx: create RB-450G, RouterStation Pro network config from uci-defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28822 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:44:01 +00:00
juhosg
989312537f
ar71xx: create RB-433{,U} network config from uci defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28821 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:43:58 +00:00
juhosg
0c1f9db114
ar71xx: create even more network configs from the uci-defaults script
...
Create the default network configuration dynamically for the
AR724x/AR9331 boards. Some other boards are using the same
configuration, so convert those as well.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28820 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:43:56 +00:00
juhosg
08c0787d79
ar71xx: create more network configs from the uci-defaults script
...
Create the default network configuration dynamically for the boards with
swapped eth0, eth1 interfaces.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:43:54 +00:00
juhosg
15334c9058
ar71xx: create a bunch of network configs from the uci-defaults script
...
Create the default network configuration dynamically for the boards with
a single ethernet interface.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:43:52 +00:00
juhosg
7a36f263be
ar71xx: create generic network config from an uci-defaults script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28817 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:43:51 +00:00
juhosg
650912aa45
ar71xx: remove AP81 defconfig, it is the same as the generic config
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28816 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:34:33 +00:00
juhosg
ebf7a3e2f9
ar71xx: change generated Buffalo firmware versions
...
With version 1.76 the upgrade may fail with newer Buffalo firmwares with
a message like this:
"You can not update the firmware because the firmware version is earlier
than 1.82. Please use 1.82 or later version for firmware update."
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28815 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 21:34:32 +00:00
juhosg
03dd4c25f7
ar71xx: enable sysupgrade on the WHR-G301N and WHR-HP-GN boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28812 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 20:25:00 +00:00
juhosg
8c1109a28d
ar71xx: wrap long lines in the upgrade script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 20:24:59 +00:00
juhosg
1823bd18f8
ar71xx: fix WHR-HP-G300N firmware partition offset
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28810 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 20:24:57 +00:00
juhosg
ab5f1e4aa3
ar71xx: add default network configuration for the WHR-HP-GN
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 13:32:43 +00:00
juhosg
8853be8e17
ar71xx: build image for the Buffalo WHR-HP-GN
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 12:59:11 +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
24f3dbc411
ar71xx: build image for the Buffalo WHR-G301N
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 12:59:08 +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