f66736532a
au1000_eth uses firmware calls to get a valid MAC address, and changes it depending on platform device id. This patch moves this logic out of the driver into the platform device registration part, where boards with supported chips can use whatever firmware interface they need; the default implementation maintains compatibility with existing, YAMON-based firmware. Tested-by: Wolfgang Grandegger <wg@denx.de> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> To: Linux-MIPS <linux-mips@linux-mips.org> Cc: netdev@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1481/ Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 lines
430 B
C
18 lines
430 B
C
#ifndef __AU1X00_ETH_DATA_H
|
|
#define __AU1X00_ETH_DATA_H
|
|
|
|
/* Platform specific PHY configuration passed to the MAC driver */
|
|
struct au1000_eth_platform_data {
|
|
int phy_static_config;
|
|
int phy_search_highest_addr;
|
|
int phy1_search_mac0;
|
|
int phy_addr;
|
|
int phy_busid;
|
|
int phy_irq;
|
|
char mac[6];
|
|
};
|
|
|
|
void __init au1xxx_override_eth_cfg(unsigned port,
|
|
struct au1000_eth_platform_data *eth_data);
|
|
|
|
#endif /* __AU1X00_ETH_DATA_H */
|