2
0
forked from Ivasoft/openwrt

brcm47xx: use b53 phy driver for the switch in kernel 3.10

This makes it possible to use swconfig to controll the switch.

This was tested with devices using b43 and bgmac.
This was not tested on devices using tg3.
This does not support the adm switch used in some very old devices.

SVN-Revision: 37304
This commit is contained in:
Hauke Mehrtens
2013-07-14 14:11:17 +00:00
parent 936683b2de
commit f8d55e7541
7 changed files with 554 additions and 6 deletions

View File

@@ -1155,8 +1155,13 @@ int b53_switch_init(struct b53_device *dev)
dev->enabled_ports &= ~BIT(4);
break;
default:
/* On the BCM47XX SoCs this is the supported internal switch.*/
#ifndef CONFIG_BCM47XX
/* BCM5325M */
return -EINVAL;
#else
break;
#endif
}
} else if (dev->chip_id == BCM53115_DEVICE_ID) {
u64 strap_value;