diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2021-08-25 10:01:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-25 13:18:17 +0300 |
commit | 511d74d9d86ceccb3463fd49adf9de95d4cb3772 (patch) | |
tree | f0ef89644c2915bad035a31d3b186a4940d0ae2e /drivers/net/ethernet/renesas/ravb.h | |
parent | eb4fd127448b173df15b4e92ace016467b2fc441 (diff) | |
download | linux-511d74d9d86ceccb3463fd49adf9de95d4cb3772.tar.xz |
ravb: Factorise ravb_emac_init function
The E-MAC IP on the R-Car AVB module has different initialization
parameters for RX frame size, duplex settings, different offset
for transfer speed setting and has magic packet detection support
compared to E-MAC on RZ/G2L Gigabit Ethernet module. Factorise
the ravb_emac_init function to support the later SoC.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb.h')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h index 24a3abd00053..117eb22349c5 100644 --- a/drivers/net/ethernet/renesas/ravb.h +++ b/drivers/net/ethernet/renesas/ravb.h @@ -987,6 +987,7 @@ struct ravb_hw_info { void (*set_rate)(struct net_device *ndev); int (*set_rx_csum_feature)(struct net_device *ndev, netdev_features_t features); void (*dmac_init)(struct net_device *ndev); + void (*emac_init)(struct net_device *ndev); const char (*gstrings_stats)[ETH_GSTRING_LEN]; size_t gstrings_size; netdev_features_t net_hw_features; |