Received: by 10.223.185.116 with SMTP id b49csp3718462wrg; Tue, 6 Mar 2018 03:57:31 -0800 (PST) X-Google-Smtp-Source: AG47ELux8sT7za22SK+8mruGsrwJBdaw+NIcnbB9gCnBRePSCrZGu+VTbBVgOVEV1ET5Ifz5HahA X-Received: by 10.167.130.193 with SMTP id f1mr18399531pfn.241.1520337451732; Tue, 06 Mar 2018 03:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520337451; cv=none; d=google.com; s=arc-20160816; b=BXT0i7QORwf3hgsQEwbXIrUIdYaofpPTcZo502tvk0P/eaYzuvPSsW8pFA7Y6VrlnD GK8yV1BHGNFoVGy7q5EycaIA7LXdhg08YuGVrNT0lGJSjZLYZhT4kcNsAKut5VfidN9D cKT9IfYUkhaionSxWkYPDSIwuZJNPSgwT8bT/CcC3HlgT54T4nrkCCXcPVJNaI8Ruo8G O933WvSMWEEIef+lKzpY5Y2eBGzTt7oFKDCGFUaNdu7TeHAh35GenR/1DSl89YPYEGPj M3yVXnMwR/axW74W4BPD1L/YC7U2O4aL/Ps72cx/2bLGpRj/d7ZgyF+dtN1yP35Neh8q gwYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:arc-authentication-results; bh=CRQ4YWDOOLD3glcLgTbcpExGWVLZwYNc14wic/l2CoA=; b=MaW7zamHjtHJ58C2qE2+NRGtA/fFgW//QjIs6MSYeXEfkPpMtXUbHeHxPbCSIU1+Ni Opj4yE/CPcLPkDlxbgdyLfcqJDlNCo0AEodxorWjvbEzvW8AtTV4uqd8yWWY7bHQ2L6c Jg1iji8y6HufHAel8MOBxSO7Z4lFaV7JakQRVCXt8pLWoa3p4laB6a6NEpXVAqnlqQDG 0MbXd3VNbItA/fpSfkLLeFwwOhDmSfZgllW/vflWXgqcvK2qqlNA+6Nh9gS9elYqLneZ URqapd8rR/WOQIH1vJa16tfElHg976rxf6IIibIekk8C7X0SVPWltf3yM6k58ZkFjdPy UKQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si9705576pgv.124.2018.03.06.03.57.17; Tue, 06 Mar 2018 03:57:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932659AbeCFLzu (ORCPT + 99 others); Tue, 6 Mar 2018 06:55:50 -0500 Received: from mail-bn3nam01on0073.outbound.protection.outlook.com ([104.47.33.73]:39917 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932444AbeCFLzq (ORCPT ); Tue, 6 Mar 2018 06:55:46 -0500 Received: from BN3PR03CA0094.namprd03.prod.outlook.com (2603:10b6:400:4::12) by BY1PR0301MB1191.namprd03.prod.outlook.com (2a01:111:e400:481b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Tue, 6 Mar 2018 11:55:44 +0000 Received: from BL2FFO11OLC014.protection.gbl (2a01:111:f400:7c09::160) by BN3PR03CA0094.outlook.office365.com (2603:10b6:400:4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.567.12 via Frontend Transport; Tue, 6 Mar 2018 11:55:44 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC014.mail.protection.outlook.com (10.173.160.144) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.527.18 via Frontend Transport; Tue, 6 Mar 2018 11:55:43 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w269JjCx018667; Tue, 6 Mar 2018 02:19:46 -0700 From: Ran Wang To: Felipe Balbi , Shawn Guo , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Russell King , Catalin Marinas , Will Deacon , Li Yang CC: , , , , , Changming Huang Subject: [PATCH v5 1/3] USB3/DWC3: Add definition for global soc bus configuration register Date: Tue, 6 Mar 2018 16:59:09 +0800 Message-ID: <20180306085911.5930-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131648109442038636;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(346002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(51416003)(85426001)(26826003)(47776003)(68736007)(5660300001)(1076002)(50226002)(336012)(498600001)(8936002)(105606002)(86362001)(26005)(81166006)(8676002)(356003)(81156014)(77096007)(106466001)(6636002)(6666003)(104016004)(16586007)(316002)(110136005)(36756003)(54906003)(2906002)(50466002)(48376002)(53936002)(4326008)(450100002)(305945005)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0301MB1191;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11OLC014;1:+jky14zqgmqIkSurmD4p2sqa/MHjeZtSFt+Ns9X39ENq21DD/DDR+C27nomr5g5lNwH25SxIAlGtpts+5D+MdM0iUUILfvqXvZ4gLNiVsq6WXx24wOEAdroqqbZxKGNF MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5ee5778-37f8-494c-8f15-08d583593106 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(5600026)(4604075)(2017052603328);SRVR:BY1PR0301MB1191; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1191;3:a/VMU7keJIkM7jk9ULQsN6zN6/IQTdB6vAvMEIv8eK7Ka5dBrtRH53ji7U9TjlMWmIkGVS0Jp5C40w2htE/Rl4fXUpdW1TClCNOLfQwANVx5ysnZ9CjV7sVIEI4wdIElZO+wMEMI4d2blghnjoMNStm/q65DszSFvFUu7AxSFVmrooDPNQ/vLax4cZ3o9SOH6H14DXjF+fCgN+KwioAJFBheGnYdHiun0zvG5TqpJIxtk+hJkci/6/uleH2y2frPHLdeH1bHOKoW8EBgrwuU+BZLHt1Dpc6+V1QByIN/n3yfV4EHcsx0XrQ2bZrFnhVQoyRxAorRXLmTTRd4W0Az+xPJFRlqJpn6DiZHdcaSa/M=;25:hgYYeGuAY12n3KqFupJ0flEgOjADdgE7WQafyYn35fCf0aO6NrcqFEkoC9IDn4OXe6Hf7DB+zicFthbbDDCJiHX4Zvb9vhvgRPMeaD4MQfs6gqOeiqZR1TLG5DLevKWG7yUJhwhokufchBck3C0OkxJQ5CIfP6GpIKMH7XmyymvIpp50hJz4XWbjVkod67pBheDwUoaYlfNTFj9iYE8MX30KRzBTYttFV+avcc5hjG3nqONirD1idWhKQ85pTOwXKJ3ruljy45Fzcv+9CVuZW+4wwKGiXPgmRCalsNU9UMGKFV5G6+BH4NnqXACsZGNokCOgWYJVD2GznouLHXOTbw== X-MS-TrafficTypeDiagnostic: BY1PR0301MB1191: X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1191;31:d8e/E33C4BjxIfIEOZxgubD1QqV6uImQ50bFyru3qViS1dgtw+3s9EE84PsY3fiAtBcJa9KRKb8M8hLx7mqu7iaNyMj3AB8lsx0MxCvz9foPnPNSivyxsVcIRtHvpEf8wchJEYSWI01UKE4kZXSQTxlPaqtFrLP0gib74WPUe9Q9EhJp+DV3ZIqBHydgoHx8nzVCXbfukAsnDvvC8Mq7VXf92wx7sN5aef8lgqIMpzg=;4:ppa9Vs4eqRPs51Et6MrRVSDQWMDmkZyMGeLHENjbkt3bxNnU65RbJP9Fb3t6P32PBnNmjzlWEkqACPv7comj9px+Si8WL+CaIGqofQPG17x4GJIe/+g0b9DcNFx0QqNdaNSVgGbNC06C2oG5LF4NoPuNYUbEGPQG8WbRQJmia0qzmTKBrXhxpL/e+jeb1KswnCSj6LeGtmPdbwBVnIeCQqaaHizhACe3vmkC+rhrCRdP7JNUdMCShtipffbDqHSh96Gi6Dz1OLwOPUn/ew2wVaWo4R4U9JKsI3c5X5DEf10PfHI/snhYS+QZ7lBkQ9E6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(3231220)(944501244)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123556025)(20161123563025)(20161123561025)(201708071742011);SRVR:BY1PR0301MB1191;BCL:0;PCL:0;RULEID:(400006);SRVR:BY1PR0301MB1191; X-Forefront-PRVS: 06036BD506 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB1191;23:bPakyOrHaty6oQQPCovX9yASUap2m78xGNBdy2I?= =?us-ascii?Q?SiG9qpd0/GYm4EkNj+3qn1evGf95JuyePgA4ppE8X8Z/fSt4NtlcqyOGQMnM?= =?us-ascii?Q?eANnNqznNoqRM/Efk7aogPiQC/XGShioAsXWo3yznXGSVM/tkgo4ogpQjFtH?= =?us-ascii?Q?UVDU+XagtG2o7vvWuKyo6aPxjoLX91Ybgx8GjWEbY9jBrGfnZv40x7ZZOoXS?= =?us-ascii?Q?9z70SE63louPWfoZJuW06LmN+UG9RO+V+8PlVugfp4WTAujy75QqLh6qhp2f?= =?us-ascii?Q?RyHj4QKAng01DX2dvlEy4XBnj16bOtp4b3NcaTaT+N4hnnbJHTT3q5Nwb8jX?= =?us-ascii?Q?SW0xSjQ8zNFAu0JsXmtXX0DkxXG1q92XL36OP16W2vsAKd5LDy/AFTgwqrzf?= =?us-ascii?Q?31c0PGLyHWOmnAIQcQcd3tgMnXnjKg2WJByt4GzLCw5s1JLSmz2hwEAio/xF?= =?us-ascii?Q?IQ6yYbsog7QNOIYvfgEhX22RhA0ASGzChf7nWEA5mLlyRTHF7sMV6t4tnsOF?= =?us-ascii?Q?AoKLTWcxPHubg6tk4PTbYXGhQnF0IumF9/csH4kO3hCRUQTjknzuYrKZGUcK?= =?us-ascii?Q?6Ip8GfVihcv7q8rGxy6LQfn7UKADAy3zO1bIc1ioe2MfQrXHIJxI34tgfHO9?= =?us-ascii?Q?AouHG4TJS//Mn3oQGxtFMifMKAw9lr3CJsX5WxbtpSs/tFRud79l3Roy3S8H?= =?us-ascii?Q?3fiC3c/oJG3FkES7ZA297BA65qoDS1Yx7nhbPYrHWD70IGL7+P+eqv1KB6W8?= =?us-ascii?Q?GEhONIPfzrqE7S2UKv1CSyJaWJWzSLTnfVO/ykMlTbtLazS28U2KkjkZTGZT?= =?us-ascii?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GsrZIvFWvxZe+nBS+AxdYTMF8QO4AE6FMygSdgq/UmP3ZqQy2trIjxYDMAzTMNNOU=;24:GyVEwynV0HGQuZu4l3VkTAomBRlUqRM2yx+gYj+VM7CFgJ4P0ApziXe3e5DZVKxOQQNFQkLyhHNO8eqODwg4qSq2E1wafRqZlHThQzt3BqI=;7:r0TqOhF4v9yLwrXrfOVLHuvG4c0HSaC8z42Opnx5lXLXRIpxujY1rdVXpeclbXbXKEj+ATsACt0mwfpHr+sISDXibll3/pM7/FgNWWcyphga6lk0AhobwGz9oOXOcmQQjgYPV7Xl6UBjRGKMpqG0i0V5An5yjCMqyyFb6JciFrx2BHC1HGApHZB540tSLG2ItMtHRAJao8trPkaH0m6COd4SwjnWflbzBj1ymiJ7IiNid44ci0ma6Pkjp9qmngFz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2018 11:55:43.4394 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5ee5778-37f8-494c-8f15-08d583593106 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1191 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Changming Huang Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang Signed-off-by: Ran Wang --- Changes in v5: - no change Changes in v4: - no change Changes in v3: - no change Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 860d2bc..8f97f61 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -153,6 +153,32 @@ /* Bit fields */ +/* Global SoC Bus Configuration Register 0 */ +#define AXI3_CACHE_TYPE_AW 0x8 /* write allocate */ +#define AXI3_CACHE_TYPE_AR 0x4 /* read allocate */ +#define AXI3_CACHE_TYPE_SNP 0x2 /* cacheable */ +#define AXI3_CACHE_TYPE_BUF 0x1 /* bufferable */ +#define DWC3_GSBUSCFG0_DATARD_SHIFT 28 +#define DWC3_GSBUSCFG0_DESCRD_SHIFT 24 +#define DWC3_GSBUSCFG0_DATAWR_SHIFT 20 +#define DWC3_GSBUSCFG0_DESCWR_SHIFT 16 +#define DWC3_GSBUSCFG0_SNP_MASK 0xffff0000 +#define DWC3_GSBUSCFG0_DATABIGEND (1 << 11) +#define DWC3_GSBUSCFG0_DESCBIGEND (1 << 10) +#define DWC3_GSBUSCFG0_INCR256BRSTENA (1 << 7) /* INCR256 burst */ +#define DWC3_GSBUSCFG0_INCR128BRSTENA (1 << 6) /* INCR128 burst */ +#define DWC3_GSBUSCFG0_INCR64BRSTENA (1 << 5) /* INCR64 burst */ +#define DWC3_GSBUSCFG0_INCR32BRSTENA (1 << 4) /* INCR32 burst */ +#define DWC3_GSBUSCFG0_INCR16BRSTENA (1 << 3) /* INCR16 burst */ +#define DWC3_GSBUSCFG0_INCR8BRSTENA (1 << 2) /* INCR8 burst */ +#define DWC3_GSBUSCFG0_INCR4BRSTENA (1 << 1) /* INCR4 burst */ +#define DWC3_GSBUSCFG0_INCRBRSTENA (1 << 0) /* undefined length enable */ +#define DWC3_GSBUSCFG0_INCRBRST_MASK 0xff + +/* Global SoC Bus Configuration Register 1 */ +#define DWC3_GSBUSCFG1_1KPAGEENA (1 << 12) /* 1K page boundary enable */ +#define DWC3_GSBUSCFG1_PTRANSLIMIT_MASK 0xf00 + /* Global Debug Queue/FIFO Space Available Register */ #define DWC3_GDBGFIFOSPACE_NUM(n) ((n) & 0x1f) #define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0) -- 1.7.1