From patchwork Wed Sep 3 20:34:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: y@shlinux1.ap.freescale.net X-Patchwork-Id: 385658 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 77BB4140216 for ; Thu, 4 Sep 2014 07:11:39 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756502AbaICVLf (ORCPT ); Wed, 3 Sep 2014 17:11:35 -0400 Received: from mail-by2on0057.outbound.protection.outlook.com ([207.46.100.57]:43160 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756488AbaICVLe (ORCPT ); Wed, 3 Sep 2014 17:11:34 -0400 Received: from DM2PR03MB367.namprd03.prod.outlook.com (10.141.55.21) by DM2PR03MB416.namprd03.prod.outlook.com (10.141.84.152) with Microsoft SMTP Server (TLS) id 15.0.1019.16; Wed, 3 Sep 2014 20:56:33 +0000 Received: from BN3PR0301CA0048.namprd03.prod.outlook.com (25.160.152.144) by DM2PR03MB367.namprd03.prod.outlook.com (10.141.55.21) with Microsoft SMTP Server (TLS) id 15.0.1019.16; Wed, 3 Sep 2014 20:56:28 +0000 Received: from BY2FFO11FD043.protection.gbl (2a01:111:f400:7c0c::106) by BN3PR0301CA0048.outlook.office365.com (2a01:111:e400:401e::16) with Microsoft SMTP Server (TLS) id 15.0.1019.16 via Frontend Transport; Wed, 3 Sep 2014 20:56:27 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD043.mail.protection.outlook.com (10.1.14.228) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Wed, 3 Sep 2014 20:56:26 +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 s83KuLWP027112; Wed, 3 Sep 2014 13:56:22 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1013) id 4B7DC1AE1F1; Thu, 4 Sep 2014 04:34:52 +0800 (CST) From: To: , , , CC: , , , Fugang Duan , Frank Li Subject: [Patch net-next 02/11] net:fec: add enet AVB feature macro define for imx6sx Date: Thu, 4 Sep 2014 04:34:37 +0800 Message-ID: <1409776486-1403-3-git-send-email-y> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1409776486-1403-1-git-send-email-y> References: <1409776486-1403-1-git-send-email-y> X-EOPAttributedMessage: 0 X-Matching-Connectors: 130542513872481739; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009014)(6009001)(428002)(199003)(189002)(93916002)(85852003)(83072002)(2201001)(88136002)(92566001)(89996001)(92726001)(77982001)(85306004)(6806004)(107046002)(99396002)(19580395003)(4396001)(50226001)(52956003)(19580405001)(101416001)(90102001)(79102001)(62966002)(76482001)(46386002)(87936001)(103686003)(86152002)(11926002)(21056001)(74502001)(42186005)(31966008)(50986999)(77156001)(76176999)(77096002)(105586002)(95666004)(46102001)(81542001)(20776003)(104166001)(74662001)(81342001)(102836001)(106466001)(84676001)(64706001)(47776003)(229853001)(83322001)(44976005)(50466002)(16796002)(97736001)(87286001)(306002)(68736004)(26826002)(48376002)(80022001)(45336002)(49092002)(32563001)(90966001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB367; 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:;UriScan:; X-Forefront-PRVS: 032334F434 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-Microsoft-Antispam: BCL:0;PCL:0;RULEID:; 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 */ } };