All of lore.kernel.org
 help / color / mirror / Atom feed
From: Claudiu Beznea <claudiu.beznea@microchip.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 5/6] net: macb: add support for sama7g5 emac
Date: Thu, 3 Dec 2020 15:59:55 +0200	[thread overview]
Message-ID: <1607003996-28099-6-git-send-email-claudiu.beznea@microchip.com> (raw)
In-Reply-To: <1607003996-28099-1-git-send-email-claudiu.beznea@microchip.com>

Add support for SAMA7G5 EMAC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/net/macb.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 234d85a94d34..827f34bb172d 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1374,12 +1374,20 @@ 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,
+	.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 },
-- 
2.7.4

  parent reply	other threads:[~2020-12-03 13:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 13:59 [PATCH v2 0/6] add support for sama7g5 ethernet interfaces Claudiu Beznea
2020-12-03 13:59 ` [PATCH v2 1/6] net: macb: use dummy descriptor for RBQP Claudiu Beznea
2020-12-03 13:59 ` [PATCH v2 2/6] net: macb: add user io config data structure Claudiu Beznea
2020-12-03 13:59 ` [PATCH v2 3/6] net: macb: check clk_set_rate return value to be negative Claudiu Beznea
2020-12-03 13:59 ` [PATCH v2 4/6] net: macb: add support for sama7g5 gmac Claudiu Beznea
2020-12-03 13:59 ` Claudiu Beznea [this message]
2020-12-03 13:59 ` [PATCH v2 6/6] net: macb: take into account all RGMII interface types Claudiu Beznea
2021-01-19  8:10 ` [PATCH v2 0/6] add support for sama7g5 ethernet interfaces Eugen.Hristev at microchip.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1607003996-28099-6-git-send-email-claudiu.beznea@microchip.com \
    --to=claudiu.beznea@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.