mirror of https://github.com/hak5/openwrt.git
ar71xx: register the second ethernet interface on the DB120 board
SVN-Revision: 28989lede-17.01
parent
368c6605a0
commit
4555be2bec
|
@ -138,6 +138,14 @@ static void __init db120_setup(void)
|
||||||
|
|
||||||
ar71xx_add_device_eth(0);
|
ar71xx_add_device_eth(0);
|
||||||
|
|
||||||
|
/* GMAC1 is connected to the internal switch */
|
||||||
|
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, art + DB120_MAC1_OFFSET, 0);
|
||||||
|
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
|
||||||
|
ar71xx_eth1_data.speed = SPEED_100;
|
||||||
|
ar71xx_eth1_data.duplex = DUPLEX_FULL;
|
||||||
|
|
||||||
|
ar71xx_add_device_eth(1);
|
||||||
|
|
||||||
ar9xxx_add_device_wmac(art + DB120_CALDATA_OFFSET,
|
ar9xxx_add_device_wmac(art + DB120_CALDATA_OFFSET,
|
||||||
art + DB120_WMAC_MAC_OFFSET);
|
art + DB120_WMAC_MAC_OFFSET);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue