1 From 0085cd8576ceeaddeedf973b939b41ba96e3f77c Mon Sep 17 00:00:00 2001
2 From: Claudiu Beznea <claudiu.beznea@microchip.com>
3 Date: Wed, 9 Dec 2020 15:03:38 +0200
4 Subject: [PATCH 119/247] net: macb: add support for sama7g5 gem interface
6 Add support for SAMA7G5 gigabit ethernet interface.
8 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
9 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
12 drivers/net/ethernet/cadence/macb_main.c | 17 +++++++++++++++++
13 1 file changed, 17 insertions(+)
15 --- a/drivers/net/ethernet/cadence/macb_main.c
16 +++ b/drivers/net/ethernet/cadence/macb_main.c
17 @@ -4383,6 +4383,14 @@ static const struct macb_usrio_config ma
18 .refclk = MACB_BIT(CLKEN),
21 +static const struct macb_usrio_config sama7g5_usrio = {
29 static const struct macb_config fu540_c000_config = {
30 .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_JUMBO |
31 MACB_CAPS_GEM_HAS_PTP,
32 @@ -4476,6 +4484,14 @@ static const struct macb_config zynq_con
33 .usrio = &macb_default_usrio,
36 +static const struct macb_config sama7g5_gem_config = {
37 + .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG,
38 + .dma_burst_length = 16,
39 + .clk_init = macb_clk_init,
41 + .usrio = &sama7g5_usrio,
44 static const struct of_device_id macb_dt_ids[] = {
45 { .compatible = "cdns,at32ap7000-macb" },
46 { .compatible = "cdns,at91sam9260-macb", .data = &at91sam9260_config },
47 @@ -4493,6 +4509,7 @@ static const struct of_device_id macb_dt
48 { .compatible = "cdns,zynqmp-gem", .data = &zynqmp_config},
49 { .compatible = "cdns,zynq-gem", .data = &zynq_config },
50 { .compatible = "sifive,fu540-c000-gem", .data = &fu540_c000_config },
51 + { .compatible = "microchip,sama7g5-gem", .data = &sama7g5_gem_config },
54 MODULE_DEVICE_TABLE(of, macb_dt_ids);