From patchwork Tue Sep 9 20:15:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 387457 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7B99F140142 for ; Wed, 10 Sep 2014 06:40:48 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752363AbaIIUjY (ORCPT ); Tue, 9 Sep 2014 16:39:24 -0400 Received: from mail-by2on0110.outbound.protection.outlook.com ([207.46.100.110]:48427 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752017AbaIIUjW (ORCPT ); Tue, 9 Sep 2014 16:39:22 -0400 Received: from CH1PR03CA008.namprd03.prod.outlook.com (10.255.156.153) by BY2PR03MB489.namprd03.prod.outlook.com (10.141.142.14) with Microsoft SMTP Server (TLS) id 15.0.1019.16; Tue, 9 Sep 2014 20:39:20 +0000 Received: from BN1BFFO11FD030.protection.gbl (10.255.156.132) by CH1PR03CA008.outlook.office365.com (10.255.156.153) with Microsoft SMTP Server (TLS) id 15.0.1024.12 via Frontend Transport; Tue, 9 Sep 2014 20:39:19 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD030.mail.protection.outlook.com (10.58.144.93) with Microsoft SMTP Server (TLS) id 15.0.1019.14 via Frontend Transport; Tue, 9 Sep 2014 20:39:19 +0000 Received: from shlinux1.ap.freescale.net (shlinux1.ap.freescale.net [10.192.225.216]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s89KdGLx001952; Tue, 9 Sep 2014 13:39:17 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1013) id 219A11AE1F3; Wed, 10 Sep 2014 04:15:48 +0800 (CST) From: Frank Li To: , , , CC: , , , Fugang Duan , Frank Li 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 Message-ID: <1410293743-27874-3-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1410293743-27874-1-git-send-email-Frank.Li@freescale.com> References: <1410293743-27874-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019018)(6009001)(428002)(199003)(189002)(46386002)(88136002)(50466002)(83072002)(87936001)(42186005)(52956003)(62966002)(74662001)(87286001)(83322001)(103686003)(19580405001)(6806004)(77982001)(89996001)(2201001)(68736004)(48376002)(4396001)(45336002)(74502001)(50226001)(84676001)(19580395003)(92726001)(92566001)(97736003)(76482001)(44976005)(101416001)(102836001)(85306004)(80022001)(85852003)(47776003)(81342001)(106466001)(77096002)(64706001)(76176999)(46102001)(104166001)(50986999)(99396002)(79102001)(21056001)(95666004)(31966008)(16796002)(20776003)(93916002)(90102001)(77156001)(36756003)(105586002)(26826002)(107046002)(81542001)(229853001)(32563001)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB489; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 0329B15C8A Received-SPF: None (protection.outlook.com: shlinux1.ap.freescale.net does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is 192.88.168.50) smtp.mailfrom=b20596@shlinux1.ap.freescale.net; X-OriginatorOrg: freescale.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Fugang Duan Add enet AVB feature macro define for imx6sx. Signed-off-by: Fugang Duan Signed-off-by: Frank Li --- 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 */ } };