c35bac376f9256649678b70c6f1726a2518b2026
2 * Atheros AP81 board support
4 * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2009 Imre Kaloz <kaloz@openwrt.org>
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.
12 #include <asm/mips_machine.h>
13 #include <asm/mach-ar71xx/ar71xx.h>
17 static void __init
ap81_setup(void)
19 ar71xx_add_device_mdio(0x0);
21 ar71xx_eth0_data
.phy_if_mode
= PHY_INTERFACE_MODE_RMII
;
22 ar71xx_eth0_data
.phy_mask
= 0xf;
23 ar71xx_eth0_data
.speed
= SPEED_100
;
24 ar71xx_eth0_data
.duplex
= DUPLEX_FULL
;
25 ar71xx_eth0_data
.has_ar8216
= 1;
27 ar71xx_eth1_data
.phy_if_mode
= PHY_INTERFACE_MODE_RMII
;
28 ar71xx_eth1_data
.phy_mask
= 0x10;
30 ar71xx_add_device_eth(0);
31 ar71xx_add_device_eth(1);
33 ar71xx_add_device_usb();
35 ar91xx_add_device_wmac();
38 MIPS_MACHINE(AR71XX_MACH_AP81
, "Atheros AP81", ap81_setup
);