diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-10-29 13:09:33 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-05 13:09:42 -0500 |
commit | 6c0fb41a0ac6e83728280c5946f0c7c25ec61da1 (patch) | |
tree | 1953fd3fc6b9e0a74362efc38d40963a1046a7c0 /drivers/net/keystone_net.c | |
parent | 87ac27bd5b02262cdca7d4701aabdfb7d9a43507 (diff) |
net: keystone_net: add Keystone2 K2L SoC support
The Keystone2 Lamar SoC uses the same keystone net driver.
This patch adds opportunity to use it by K2L SoCs.
Acked-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'drivers/net/keystone_net.c')
-rw-r--r-- | drivers/net/keystone_net.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c index 83eeedae17..bedab1d606 100644 --- a/drivers/net/keystone_net.c +++ b/drivers/net/keystone_net.c @@ -315,7 +315,7 @@ int mac_sl_config(u_int16_t port, struct mac_sl_cfg *cfg) writel(cfg->max_rx_len, DEVICE_EMACSL_BASE(port) + CPGMACSL_REG_MAXLEN); writel(cfg->ctl, DEVICE_EMACSL_BASE(port) + CPGMACSL_REG_CTL); -#ifdef CONFIG_K2E_EVM +#if defined(CONFIG_SOC_K2E) || defined(CONFIG_SOC_K2L) /* Map RX packet flow priority to 0 */ writel(0, DEVICE_EMACSL_BASE(port) + CPGMACSL_REG_RX_PRI_MAP); #endif @@ -400,6 +400,9 @@ static int keystone2_eth_open(struct eth_device *dev, bd_t *bis) keystone2_net_serdes_setup(); + if (sys_has_mdio) + keystone2_mdio_reset(mdio_bus); + keystone_sgmii_config(phy_dev, eth_priv->slave_port - 1, eth_priv->sgmii_link_type); |