mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: use soc specific divider for mdio clock
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18225 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -186,9 +186,7 @@ static struct resource ar71xx_mdio_resources[] = {
|
||||
}
|
||||
};
|
||||
|
||||
static struct ag71xx_mdio_platform_data ar71xx_mdio_data = {
|
||||
.phy_mask = 0xffffffff,
|
||||
};
|
||||
static struct ag71xx_mdio_platform_data ar71xx_mdio_data;
|
||||
|
||||
static struct platform_device ar71xx_mdio_device = {
|
||||
.name = "ag71xx-mdio",
|
||||
@@ -202,7 +200,11 @@ static struct platform_device ar71xx_mdio_device = {
|
||||
|
||||
void __init ar71xx_add_device_mdio(u32 phy_mask)
|
||||
{
|
||||
if (ar71xx_soc == AR71XX_SOC_AR7240)
|
||||
ar71xx_mdio_data.is_ar7240 = 1;
|
||||
|
||||
ar71xx_mdio_data.phy_mask = phy_mask;
|
||||
|
||||
platform_device_register(&ar71xx_mdio_device);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ struct ag71xx_platform_data {
|
||||
|
||||
struct ag71xx_mdio_platform_data {
|
||||
u32 phy_mask;
|
||||
int is_ar7240;
|
||||
};
|
||||
|
||||
struct ar71xx_ehci_platform_data {
|
||||
|
||||
Reference in New Issue
Block a user