]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: macb: add support for sama7g5 emac
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 19 Jan 2021 11:26:47 +0000 (13:26 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
Add support for SAMA7G5 EMAC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
drivers/net/macb.c

index e87ffd9be3ed14fd5b6741efa8c843e2365bbd71..f71331827ca0ceae846337a2b10a3daa741dba6c 100644 (file)
@@ -1482,12 +1482,21 @@ static const struct macb_config sama7g5_gmac_config = {
        .usrio = &sama7g5_usrio,
 };
 
+static const struct macb_config sama7g5_emac_config = {
+       .caps = MACB_CAPS_USRIO_HAS_CLKEN,
+       .dma_burst_length = 16,
+       .hw_dma_cap = HW_DMA_CAP_32B,
+       .usrio = &sama7g5_usrio,
+};
+
 static const struct udevice_id macb_eth_ids[] = {
        { .compatible = "cdns,macb" },
        { .compatible = "cdns,at91sam9260-macb" },
        { .compatible = "cdns,sam9x60-macb" },
        { .compatible = "cdns,sama7g5-gem",
          .data = (ulong)&sama7g5_gmac_config },
+       { .compatible = "cdns,sama7g5-emac",
+         .data = (ulong)&sama7g5_emac_config },
        { .compatible = "atmel,sama5d2-gem" },
        { .compatible = "atmel,sama5d3-gem" },
        { .compatible = "atmel,sama5d4-gem", .data = (ulong)&sama5d4_config },