mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:32:49 +02:00
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
This commit is contained in:
parent
8a3f26299d
commit
5f0b41bae5
@ -30,6 +30,8 @@
|
||||
|
||||
#define DB120_GPIO_BTN_SW1 16
|
||||
|
||||
#define DB120_MAC0_OFFSET 0
|
||||
#define DB120_MAC1_OFFSET 6
|
||||
#define DB120_CALDATA_OFFSET 0x1000
|
||||
#define DB120_WMAC_MAC_OFFSET 0x1002
|
||||
|
||||
@ -125,6 +127,14 @@ static void __init db120_setup(void)
|
||||
ARRAY_SIZE(db120_gpio_keys),
|
||||
db120_gpio_keys);
|
||||
|
||||
/* GMAC0 is connected to an AR8327 switch */
|
||||
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, art + DB120_MAC0_OFFSET, 0);
|
||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
|
||||
ar71xx_eth0_data.speed = SPEED_1000;
|
||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||
|
||||
ar71xx_add_device_eth(0);
|
||||
|
||||
ar9xxx_add_device_wmac(art + DB120_CALDATA_OFFSET,
|
||||
art + DB120_WMAC_MAC_OFFSET);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user