-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: Alchemy: Add au1000-eth platform device
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>
- Loading branch information
Florian Fainelli
authored and
Ralf Baechle
committed
Feb 27, 2010
1 parent
cf6e47e
commit 66f75cc
Showing
3 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#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 */ |