1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 03:13:20 +02:00

[ar71xx] add dummy code for the Atheros AP83 board

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13354 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-11-25 19:19:55 +00:00
parent 71b1c3a5af
commit 611fd7328c
7 changed files with 35 additions and 2 deletions

View File

@ -4,6 +4,7 @@ CONFIG_32BIT=y
CONFIG_ADM6996_PHY=y
CONFIG_AG71XX=y
# CONFIG_AR71XX_EARLY_SERIAL is not set
CONFIG_AR71XX_MACH_AP83=y
CONFIG_AR71XX_MACH_AW_NR580=y
CONFIG_AR71XX_MACH_GENERIC=y
CONFIG_AR71XX_MACH_RB_4XX=y

View File

@ -4,6 +4,7 @@ CONFIG_32BIT=y
CONFIG_ADM6996_PHY=y
CONFIG_AG71XX=y
# CONFIG_AR71XX_EARLY_SERIAL is not set
CONFIG_AR71XX_MACH_AP83=y
CONFIG_AR71XX_MACH_AW_NR580=y
CONFIG_AR71XX_MACH_GENERIC=y
CONFIG_AR71XX_MACH_RB_4XX=y

View File

@ -6,6 +6,10 @@ config AR71XX_EARLY_SERIAL
menu "Atheros AR71xx machine selection"
config AR71XX_MACH_AP83
bool "Atheros AP83 board support"
default y
config AR71XX_MACH_AW_NR580
bool "AzureWave AW-NR580 board support"
default y

View File

@ -10,6 +10,7 @@
obj-y := prom.o irq.o setup.o platform.o gpio.o ar71xx.o
obj-$(CONFIG_AR71XX_MACH_AP83) += mach-ap83.o
obj-$(CONFIG_AR71XX_MACH_AW_NR580) += mach-aw-nr580.o
obj-$(CONFIG_AR71XX_MACH_GENERIC) += mach-generic.o
obj-$(CONFIG_AR71XX_MACH_RB_4XX) += mach-rb-4xx.o

View File

@ -0,0 +1,24 @@
/*
* Atheros AP83 board support
*
* Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <linux/platform_device.h>
#include <linux/input.h>
#include <asm/mips_machine.h>
#include <asm/mach-ar71xx/ar71xx.h>
#include <asm/mach-ar71xx/pci.h>
#include <asm/mach-ar71xx/platform.h>
static void __init ap83_setup(void)
{
}
MIPS_MACHINE(MACH_AR71XX_AP83, "Atheros AP83", ap83_setup);

View File

@ -16,7 +16,7 @@
--- a/include/asm-mips/bootinfo.h
+++ b/include/asm-mips/bootinfo.h
@@ -79,6 +79,17 @@
@@ -79,6 +79,18 @@
#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */
/*
@ -29,6 +29,7 @@
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
+#define MACH_AR71XX_RB_493 5 /* Mikrotik RouterBOARD 493/493AH */
+#define MACH_AR71XX_AW_NR580 6 /* AzureWave AW-NR580 */
+#define MACH_AR71XX_AP83 7 /* Atheros AP83 */
+
+/*
* Valid machtype for group NEC EMMA2RH

View File

@ -16,7 +16,7 @@
--- a/include/asm-mips/bootinfo.h
+++ b/include/asm-mips/bootinfo.h
@@ -57,6 +57,17 @@
@@ -57,6 +57,18 @@
#define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
#define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
@ -30,6 +30,7 @@
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
+#define MACH_AR71XX_RB_493 5 /* MikroTik RouterBOARD 493 */
+#define MACH_AR71XX_AW_NR580 6 /* AzureWave AW-NR580 */
+#define MACH_AR71XX_AP83 7 /* Atheros AP83 */
+
#define CL_SIZE COMMAND_LINE_SIZE