66f75ccb85
This patch makes the board code register the au1000-eth platform device. The au1000-eth platform data can be overriden with the au1xxx_override_eth_cfg function like it has to be done for the Bosporus board which uses a different MAC/PHY setup. Signed-off-by: Florian Fainelli <florian@openwrt.org> Cc: David Miller <davem@davemloft.net> Cc: linux-mips@linux-mips.org Cc: netdev@vger.kernel.org Patchwork: http://patchwork.linux-mips.org/patch/618/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 lines
416 B
C
18 lines
416 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;
|
|
};
|
|
|
|
void __init au1xxx_override_eth_cfg(unsigned port,
|
|
struct au1000_eth_platform_data *eth_data);
|
|
|
|
#endif /* __AU1X00_ETH_DATA_H */
|