mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 01:11:52 +02:00
ar71xx: UBNT M-Series MAC address fix
UBNT M-Series devices have 2 MAC addresses in board data. Fix is to use both entries from board data instead of one entry. Signed-off-by: Kestutis Barkauskas<keba@devint.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24611 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7a9fbd9d70
commit
786449614f
@ -225,15 +225,16 @@ MIPS_MACHINE(AR71XX_MACH_UBNT_LSSR71, "UBNT-LS-SR71", "Ubiquiti LS-SR71",
|
|||||||
|
|
||||||
static void __init ubnt_m_setup(void)
|
static void __init ubnt_m_setup(void)
|
||||||
{
|
{
|
||||||
u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000);
|
u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff0000);
|
||||||
|
u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff0000 + ETH_ALEN);
|
||||||
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
|
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
|
||||||
|
|
||||||
ar71xx_add_device_m25p80(NULL);
|
ar71xx_add_device_m25p80(NULL);
|
||||||
|
|
||||||
ar71xx_add_device_mdio(~0);
|
ar71xx_add_device_mdio(~0);
|
||||||
|
|
||||||
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
|
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac1, 0);
|
||||||
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
|
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac2, 0);
|
||||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
|
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user