diff options
author | John Crispin <john@openwrt.org> | 2014-11-06 09:31:19 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-11-06 09:31:19 +0000 |
commit | f8404aaf9e44bab6fb629d5ee106e50ca2943d1c (patch) | |
tree | 2cf963b7cf8cff47c5a827de913e292605e8787e /target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c | |
parent | 26504289dfdd8970ce117918c623108316a56189 (diff) | |
download | master-31e0f0ae-f8404aaf9e44bab6fb629d5ee106e50ca2943d1c.tar.gz master-31e0f0ae-f8404aaf9e44bab6fb629d5ee106e50ca2943d1c.tar.bz2 master-31e0f0ae-f8404aaf9e44bab6fb629d5ee106e50ca2943d1c.zip |
ralink: add mt7628 support to the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43196
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c index ec09500afd..746b118e1e 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c @@ -18,7 +18,19 @@ #include <linux/module.h> #include <asm/mach-ralink/ralink_regs.h> +#ifdef CONFIG_SOC_MT7620 +static inline int soc_is_rt3352(void) +{ + return 0; +} + +static inline int soc_is_rt3052(void) +{ + return 0; +} +#else #include <asm/mach-ralink/rt305x.h> +#endif #include "ralink_soc_eth.h" #include "mdio_rt2880.h" @@ -79,6 +91,9 @@ static void rt305x_fe_reset(void) static void rt5350_init_data(struct fe_soc_data *data, struct net_device *netdev) { + struct fe_priv *priv = netdev_priv(netdev); + + priv->flags = FE_FLAG_PADDING_64B | FE_FLAG_PADDING_BUG; netdev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM; } |