diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2021-01-19 13:26:47 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2021-01-22 15:09:59 +0200 |
commit | 3d3475c8b79567dabc0bf06f85119115fa849167 (patch) | |
tree | 88dd1602bb054d476b32fa359e450044cb2185fb /drivers/net | |
parent | 8c0483ecbf6d251f2d12e9728ee142b29510fb4c (diff) | |
download | u-boot-3d3475c8b79567dabc0bf06f85119115fa849167.zip u-boot-3d3475c8b79567dabc0bf06f85119115fa849167.tar.gz u-boot-3d3475c8b79567dabc0bf06f85119115fa849167.tar.bz2 |
net: macb: add support for sama7g5 emac
Add support for SAMA7G5 EMAC.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/macb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index e87ffd9..f713318 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -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 }, |