aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2010-01-06 18:07:15 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-07 20:06:07 -0500
commitca5f12c1a82cf72ce73617dfc8ef56faf6fec30a (patch)
tree6a449b00f64e78b5b04bf2eaebc93759b0bc0f9d /drivers/net/stmmac
parentee7946a77858f417227cf57cd647729d0dd75761 (diff)
stmmac: perform hw bus configuration
On some platforms it can be required a different configuration of the bus. This can be done by invoking the bus_setup. It is defined for all the platforms that needs this kind of configuration. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r--drivers/net/stmmac/gmac.c3
-rw-r--r--drivers/net/stmmac/stmmac_main.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/stmmac/gmac.c b/drivers/net/stmmac/gmac.c
index 982875646725..c1278876ef25 100644
--- a/drivers/net/stmmac/gmac.c
+++ b/drivers/net/stmmac/gmac.c
@@ -400,9 +400,6 @@ static void gmac_core_init(unsigned long ioaddr)
400 value |= GMAC_CORE_INIT; 400 value |= GMAC_CORE_INIT;
401 writel(value, ioaddr + GMAC_CONTROL); 401 writel(value, ioaddr + GMAC_CONTROL);
402 402
403 /* STBus Bridge Configuration */
404 /*writel(0xc5608, ioaddr + 0x00007000);*/
405
406 /* Freeze MMC counters */ 403 /* Freeze MMC counters */
407 writel(0x8, ioaddr + GMAC_MMC_CTRL); 404 writel(0x8, ioaddr + GMAC_MMC_CTRL);
408 /* Mask GMAC interrupts */ 405 /* Mask GMAC interrupts */
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c
index d50fe6f171ef..a02006d57a59 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/stmmac/stmmac_main.c
@@ -1067,6 +1067,9 @@ static int stmmac_open(struct net_device *dev)
1067 1067
1068 /* Copy the MAC addr into the HW */ 1068 /* Copy the MAC addr into the HW */
1069 priv->mac_type->ops->set_umac_addr(ioaddr, dev->dev_addr, 0); 1069 priv->mac_type->ops->set_umac_addr(ioaddr, dev->dev_addr, 0);
1070 /* If required, perform hw setup of the bus. */
1071 if (priv->bus_setup)
1072 priv->bus_setup(ioaddr);
1070 /* Initialize the MAC Core */ 1073 /* Initialize the MAC Core */
1071 priv->mac_type->ops->core_init(ioaddr); 1074 priv->mac_type->ops->core_init(ioaddr);
1072 1075