devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Li <Frank.Li@freescale.com>
To: b38611@freescale.com, davem@davemloft.net,
	netdev@vger.kernel.org, lznuaa@gmail.com
Cc: shawn.guo@linaro.org, linux-arm-kernel@lists.infradead.org,
	devicetree@vger.kernel.org, Fugang Duan <B38611@freescale.com>,
	Frank Li <Frank.Li@freescale.com>
Subject: [Patch v2 net-next 02/12] net:fec: add enet AVB feature macro define for imx6sx
Date: Wed, 10 Sep 2014 04:15:33 +0800	[thread overview]
Message-ID: <1410293743-27874-3-git-send-email-Frank.Li@freescale.com> (raw)
In-Reply-To: <1410293743-27874-1-git-send-email-Frank.Li@freescale.com>

From: Fugang Duan <B38611@freescale.com>

Add enet AVB feature macro define for imx6sx.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
---
 drivers/net/ethernet/freescale/fec_main.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index c21ecff1..ee9f04f 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -104,6 +104,16 @@ static void set_multicast_list(struct net_device *ndev);
  * ENET_TDAR[TDAR].
  */
 #define FEC_QUIRK_ERR006358            (1 << 7)
+/* ENET IP hw AVB
+ *
+ * i.MX6SX ENET IP add Audio Video Bridging (AVB) feature support.
+ * - Two class indicators on receive with configurable priority
+ * - Two class indicators and line speed timer on transmit allowing
+ *   implementation class credit based shapers externally
+ * - Additional DMA registers provisioned to allow managing up to 3
+ *   independent rings
+ */
+#define FEC_QUIRK_HAS_AVB		(1 << 8)
 
 static struct platform_device_id fec_devtype[] = {
 	{
@@ -128,6 +138,12 @@ static struct platform_device_id fec_devtype[] = {
 		.name = "mvf600-fec",
 		.driver_data = FEC_QUIRK_ENET_MAC,
 	}, {
+		.name = "imx6sx-fec",
+		.driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT |
+				FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM |
+				FEC_QUIRK_HAS_VLAN | FEC_QUIRK_ERR006358 |
+				FEC_QUIRK_HAS_AVB,
+	}, {
 		/* sentinel */
 	}
 };
-- 
1.9.1

  parent reply	other threads:[~2014-09-09 20:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09 20:15 [Patch v2 net-next 00/12] net: fec: imx6sx multiqueue support Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 01/12] net:fec: add enet refrence clock for i.MX 6SX chip Frank Li
2014-09-09 20:15 ` Frank Li [this message]
2014-09-09 20:15 ` [Patch v2 net-next 03/12] net: fec: change data structure to support multiqueue Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 04/12] net: fec: parser max queue number from dt file Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 05/12] net: fec: init multi queue date structure Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 06/12] net:fec: Disable enet-avb MAC instead of reset MAC Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 07/12] net: fec: add enet-avb IP support Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 08/12] net:fec: Add fsl,imx6sx-fec compatible strings Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 09/12] net: fec: change FEC alignment according to i.mx6 sx requirement Frank Li
2014-09-10 12:51   ` Fabio Estevam
     [not found]     ` <CAOMZO5AwOWr8uWCvt3XzM8CJideu+1LBY6QUQ772QjLjCYxL1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-10 13:22       ` Zhi Li
     [not found]         ` <CAHrpEqSf8j7NUZDAORYwN4cbd2MBA9bcKa9mzNGg4JJiKsJKvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-10 13:27           ` Fabio Estevam
     [not found] ` <1410293743-27874-1-git-send-email-Frank.Li-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2014-09-09 20:15   ` [Patch v2 net-next 10/12] net: fec: init complete variable in early to avoid kernel dump Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 11/12] ARM: Documentation: Update fec dts binding doc Frank Li
2014-09-09 20:15 ` [Patch v2 net-next 12/12] ARM: dts: imx6sx: add multi-queue support enet Frank Li

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=1410293743-27874-3-git-send-email-Frank.Li@freescale.com \
    --to=frank.li@freescale.com \
    --cc=b38611@freescale.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lznuaa@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=shawn.guo@linaro.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).