aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-07-14 14:11:17 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-07-14 14:11:17 +0000
commit4cd2167005a3d421d92820cc1716da2cc377f841 (patch)
treead814fb72ced6e4876aae62bf0d3a5aec6fba17d /target/linux/generic/files
parentc1bd015d31b74202bcf979db446a9a98938c74ea (diff)
downloadmaster-187ad058-4cd2167005a3d421d92820cc1716da2cc377f841.tar.gz
master-187ad058-4cd2167005a3d421d92820cc1716da2cc377f841.tar.bz2
master-187ad058-4cd2167005a3d421d92820cc1716da2cc377f841.zip
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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37304 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/b53/b53_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
index c74bf7fbcb..86e3a787fb 100644
--- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
+++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
@@ -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;