summaryrefslogtreecommitdiff
path: root/drivers/net/cpsw.c
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2013-07-08 16:04:38 +0530
committerTom Rini <trini@ti.com>2013-07-26 16:39:11 -0400
commit454ac635257f78a369015bde7795ddf979d64e12 (patch)
tree7929156eaa3f96bf750ac8dfaa74ba752d31f2b9 /drivers/net/cpsw.c
parent2bf36ac638ab2db9f0295aa47064976eeebf80c1 (diff)
downloadu-boot-imx-454ac635257f78a369015bde7795ddf979d64e12.zip
u-boot-imx-454ac635257f78a369015bde7795ddf979d64e12.tar.gz
u-boot-imx-454ac635257f78a369015bde7795ddf979d64e12.tar.bz2
drivers: net: cpsw: Enable statistics for all port
Enable hardware statistics for all ports, enabling only to host port is useless Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Diffstat (limited to 'drivers/net/cpsw.c')
-rw-r--r--drivers/net/cpsw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index dc0a2be..f1e9f72 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -772,6 +772,7 @@ static int cpsw_init(struct eth_device *dev, bd_t *bis)
/* enable statistics collection only on the host port */
__raw_writel(BIT(priv->host_port), &priv->regs->stat_port_en);
+ __raw_writel(0x7, &priv->regs->stat_port_en);
cpsw_ale_port_state(priv, priv->host_port, ALE_PORT_STATE_FORWARD);