dd16285d74ab241e0c74046f69b86945c6d22048
[openwrt-10.03/.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-ap83.c
1 /*
2  *  Atheros AP83 board support
3  *
4  *  Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
5  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
6  *
7  *  This program is free software; you can redistribute it and/or modify it
8  *  under the terms of the GNU General Public License version 2 as published
9  *  by the Free Software Foundation.
10  */
11
12 #include <linux/platform_device.h>
13 #include <linux/input.h>
14
15 #include <asm/mips_machine.h>
16 #include <asm/mach-ar71xx/ar71xx.h>
17 #include <asm/mach-ar71xx/pci.h>
18 #include <asm/mach-ar71xx/platform.h>
19
20 static void __init ap83_setup(void)
21 {
22         ar71xx_add_device_mdio(0xfffffffe);
23
24         ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
25         ar71xx_eth0_data.phy_mask = 0x1;
26
27         ar71xx_add_device_eth(0);
28 }
29
30 MIPS_MACHINE(MACH_AR71XX_AP83, "Atheros AP83", ap83_setup);