mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-04 22:50:39 +02:00
ar71xx: ag71xx: show PHY interface mode in dmesg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34880 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d3ca1d22b3
commit
ffbe131263
@ -1056,6 +1056,27 @@ static const struct net_device_ops ag71xx_netdev_ops = {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static __devinit const char *ag71xx_get_phy_if_mode_name(phy_interface_t mode)
|
||||||
|
{
|
||||||
|
switch (mode) {
|
||||||
|
case PHY_INTERFACE_MODE_MII:
|
||||||
|
return "MII";
|
||||||
|
case PHY_INTERFACE_MODE_GMII:
|
||||||
|
return "GMII";
|
||||||
|
case PHY_INTERFACE_MODE_RMII:
|
||||||
|
return "RMII";
|
||||||
|
case PHY_INTERFACE_MODE_RGMII:
|
||||||
|
return "RGMII";
|
||||||
|
case PHY_INTERFACE_MODE_SGMII:
|
||||||
|
return "SGMII";
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "unknown";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int __devinit ag71xx_probe(struct platform_device *pdev)
|
static int __devinit ag71xx_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
@ -1149,8 +1170,9 @@ static int __devinit ag71xx_probe(struct platform_device *pdev)
|
|||||||
goto err_free_desc;
|
goto err_free_desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_info("%s: Atheros AG71xx at 0x%08lx, irq %d\n",
|
pr_info("%s: Atheros AG71xx at 0x%08lx, irq %d, mode:%s\n",
|
||||||
dev->name, dev->base_addr, dev->irq);
|
dev->name, dev->base_addr, dev->irq,
|
||||||
|
ag71xx_get_phy_if_mode_name(pdata->phy_if_mode));
|
||||||
|
|
||||||
ag71xx_dump_regs(ag);
|
ag71xx_dump_regs(ag);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user