]> git.sur5r.net Git - u-boot/commitdiff
net: keystone_net: add Keystone2 K2E SoC support
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>
Fri, 17 Oct 2014 18:01:14 +0000 (21:01 +0300)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 15:27:29 +0000 (11:27 -0400)
The Keystone2 Edison SoC uses the same keystone net driver.
This patch adds opportunity to use it by K2E SoCs.

Acked-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
arch/arm/include/asm/arch-keystone/hardware-k2e.h
drivers/net/keystone_net.c

index 1d6fd11d03aeeca139341b2ac3cc691cdb23afb1..9512756619b3eae14075a9d36b756ac46ae4bdaa 100644 (file)
@@ -61,4 +61,7 @@
 #define KS2_NETCP_PDMA_RX_RCV_QUEUE    4002
 #define KS2_NETCP_PDMA_TX_SND_QUEUE    896
 
+/* NETCP */
+#define KS2_NETCP_BASE                 0x24000000
+
 #endif
index 43c263e612e6dbaffbe3d94e49178a2bf2c7a438..11861881b763d481d7b6cb30230438c19cd0d5a9 100644 (file)
@@ -289,6 +289,11 @@ 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
+       /* Map RX packet flow priority to 0 */
+       writel(0, DEVICE_EMACSL_BASE(port) + CPGMACSL_REG_RX_PRI_MAP);
+#endif
+
        return ret;
 }