aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-27 08:59:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-09-27 08:59:53 +0000
commit06d41d3a2d6cf11327102ddc8eb2cefcf7bf0bbb (patch)
tree237e4f7ce565f6b8dbd2c96d14cddc90c9614d99 /target/linux/ar71xx/base-files
parent5c61a3fe4affbe0a158bec02ebc0d587ec40ad21 (diff)
downloadupstream-06d41d3a2d6cf11327102ddc8eb2cefcf7bf0bbb.tar.gz
upstream-06d41d3a2d6cf11327102ddc8eb2cefcf7bf0bbb.tar.bz2
upstream-06d41d3a2d6cf11327102ddc8eb2cefcf7bf0bbb.zip
Add support for Atheros AP96 reference board
This is still preliminary and not really tested much. Anyway, this version seems to be enough to get both wired and wireless interfaces working. Buttons and leds are also working. mach-ap96.c is based on mach-wndr3700.c. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23125 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/defconfig/ap96/network16
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
3 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/ap96/network b/target/linux/ar71xx/base-files/etc/defconfig/ap96/network
new file mode 100644
index 0000000000..2d4d8e0121
--- /dev/null
+++ b/target/linux/ar71xx/base-files/etc/defconfig/ap96/network
@@ -0,0 +1,16 @@
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option ifname eth0
+ option type bridge
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+
+config interface wan
+ option ifname eth1
+ option proto dhcp
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index b1e1d2312b..a26a4cbdad 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -36,6 +36,9 @@ get_status_led() {
ap83)
status_led="ap83:green:power"
;;
+ ap96)
+ status_led="ap96:green:led2"
+ ;;
aw-nr580)
status_led="aw-nr580:green:ready"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 4b08e93c18..877bab2533 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -16,6 +16,9 @@ ar71xx_board_name() {
*AP83)
name="ap83"
;;
+ *AP96)
+ name="ap96"
+ ;;
*AW-NR580)
name="aw-nr580"
;;