{"id":802397,"url":"http://patchwork.ozlabs.org/api/patches/802397/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502955089-2049-4-git-send-email-ran.wang_1@nxp.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1502955089-2049-4-git-send-email-ran.wang_1@nxp.com>","list_archive_url":null,"date":"2017-08-17T07:31:25","name":"[U-Boot,v3,4/8] armv8: Add workaround for USB erratum A-009007","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ebc41d89270a9ed7c0f9d4894e9040ebaaeb9e51","submitter":{"id":71939,"url":"http://patchwork.ozlabs.org/api/people/71939/?format=json","name":"Ran Wang","email":"ran.wang_1@nxp.com"},"delegate":{"id":2666,"url":"http://patchwork.ozlabs.org/api/users/2666/?format=json","username":"yorksun","first_name":"York","last_name":"Sun","email":"yorksun@freescale.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1502955089-2049-4-git-send-email-ran.wang_1@nxp.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/802397/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/802397/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed)\n\theader.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xXyzt6Ybjz9t31\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 17 Aug 2017 17:50:02 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 92F04C21F51; Thu, 17 Aug 2017 07:49:52 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 10143C21F34;\n\tThu, 17 Aug 2017 07:48:55 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid B7220C21EBC; Thu, 17 Aug 2017 07:48:47 +0000 (UTC)","from NAM03-CO1-obe.outbound.protection.outlook.com\n\t(mail-co1nam03on0083.outbound.protection.outlook.com [104.47.40.83])\n\tby lists.denx.de (Postfix) with ESMTPS id DEFDAC21E7F\n\tfor <u-boot@lists.denx.de>; Thu, 17 Aug 2017 07:48:42 +0000 (UTC)","from CY4PR03CA0084.namprd03.prod.outlook.com (10.171.242.153) by\n\tDM5PR03MB3322.namprd03.prod.outlook.com (10.174.241.143) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.1.1362.18; Thu, 17 Aug 2017 07:48:40 +0000","from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:133) by\n\tCY4PR03CA0084.outlook.office365.com (2603:10b6:910:4d::25) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18\n\tvia Frontend Transport; Thu, 17 Aug 2017 07:48:40 +0000","from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15\n\tvia Frontend Transport; Thu, 17 Aug 2017 07:48:39 +0000","from titan.ap.freescale.net ([10.192.208.233])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tv7H7mNcU022692; Thu, 17 Aug 2017 00:48:35 -0700"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=BAD_ENC_HEADER,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tSPF_HELO_PASS\n\tautolearn=unavailable autolearn_force=no version=3.4.0","Received-SPF":"Fail (protection.outlook.com: domain of nxp.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;","From":"Ran Wang <ran.wang_1@nxp.com>","To":"open list <u-boot@lists.denx.de>, Albert Aribaud\n\t<albert.u.boot@aribaud.net>, York Sun <york.sun@nxp.com>, Suresh Gupta\n\t<suresh.bhagat@nxp.com>, Sriram Dash <sriram.dash@nxp.com>","Date":"Thu, 17 Aug 2017 15:31:25 +0800","Message-ID":"<1502955089-2049-4-git-send-email-ran.wang_1@nxp.com>","X-Mailer":"git-send-email 2.1.0.27.g96db324","In-Reply-To":"<1502955089-2049-1-git-send-email-ran.wang_1@nxp.com>","References":"<1502955089-2049-1-git-send-email-ran.wang_1@nxp.com>","X-EOPAttributedMessage":"0","X-Matching-Connectors":"131474297198480791;\n\t(91ab9b29-cfa4-454e-5278-08d120cd25b8); ()","X-Forefront-Antispam-Report":"CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(86362001)(575784001)(97736004)(50226002)(5660300001)(104016004)(189998001)(68736007)(498600001)(626005)(47776003)(53936002)(4326008)(85426001)(48376002)(50466002)(2906002)(77096006)(2950100002)(5003940100001)(356003)(6636002)(305945005)(54906002)(8656003)(50986999)(76176999)(7416002)(106466001)(105606002)(81166006)(81156014)(8936002)(8676002)(36756003)(33646002)(6666003);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3322;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ","X-Microsoft-Exchange-Diagnostics":["1; BN1BFFO11FD002;\n\t1:cxs5waX+XFyqM5GocV9DK0UUv3E1OHjpXxG3Zv8GEdTZajN5a+CCjUJZDADPlJcKKrcy/CHJ1bAdctSxwAiHUtaD8dhsLZ2VHoxylAHdPZmdR46GhUMfNHrQfuJj/Ntk","1; DM5PR03MB3322;\n\t3:OGFHA0Z4Vy/r3BxZf4MFq8CCNcai7fKRJ5RhsvuDp1qjrBP5TzaewMjjKeSD0GIb2TVrL/8aHgU++atfOFPZzbn3XtpLQBVgIIGPcvIgqT75vUoVJLbVL6WDFIZkzZQcxMxH/H9drBSVVKm3L9qPbJaCptZqI3Hq356YYj1czLsd8fTlBtyhlawgFz1z6oxEVLmKKeYlrHDRUQm3laFg4tAAmw4kn+Oj9aF2UxX4gwV6DksXlq5MxrxyXRdD60CSH46ehtxavTYCbE2ujdqQpgRreiBvBv3g1SLbnvgnFqrzbT1WJ+5c9d5DML1bi18sdHbRzCA15jYteqFEz/GL1Leh3n1SYIEkrM62dB38hoc=;\n\t25:gZhoslH+2sVzudfj9LBJ6eClLS6PobCF0jtrgCmSPulTEBYVgsDOfxUiLf3IJINB1Oi3MXYDCgsl3529Bf8GJEC2EjflxLwv/vGGIyW2OORFJfMoUTqIjcMHw0T5sJ/RMFQBFBBjfZWbma9rDMXudSBEfFdG/LJJvsqZPQS3WPIqY1hjYpEWvdRhqm+Bpjv32qeiXKePRN1hiIJmiVbEq3b6cBJJxVFA2+5B2hNhZv/T3oRyfoVIIHDVzfWx1M/xr+5vRZDsjtI8GBgELfX6FLFLyJcEdw2m/KS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","1; DM5PR03MB3322;\n\t6:s4iHrGPe6Gg0zsoZT6DWbd+pNZhw0lpYU/pIgwqnmGYLIqyKcCXQtAZ9JMVzsVVwMdUbTTmd1+Qs/+pdl7vZD+JRUbFgMV4ubhVmSdkXOSSNtHbauXvDjMZuinWSi5KHzJJonNxboxrqbscVhstNUjPb7K7x6KxhzFkPCAgwKRWGMn4Di56KsgRu9dws5Oq4IVMNs4WhTIZInpbcNl2qs4xLcIzPfEhv/ybdt7yQvjcIDogVQXf7IJSyCw+he7TIq0CWztO+k6VdOBtt+9eIISqiCCNRNZWhQu+lUcF1SAUjfVMYTcHLlhOFM1A4rSwT/5xjusajyeScx4HxwRckpw==;\n\t5:PpLZrkyBSedOa/8c2XfJIo2cneqDuEkqn6sDSDwPKnPcjoo3eIIj5FAJXYRrvsWvBJNsMituJhTdrd6vAyHh7TWIOLbKRHC9LbYyqT/pMOgfS/reKFpKmD/Qc+0AWaD9k+MPRpH1Kvy/djrzyWpBMg==;\n\t24:YTP4z0Aws/s2/jBnsLyAcO0DURJqJP3Yu3sI3KbRKtNQLTEgw9h+wbX0Np4OL+zGPYAsoqWZhyYvwnKP+qXw/+2qgUpiJRy4WVHDCRNXK+A=;\n\t7:laAbDqKY3/mdZDlAYylx/UTQWhUT+yylYbDb+KynRbkrj1UXq0yRRt9Gks4H3kdszgBnqiv6Orr2nCcf7OCVJGT73kL5eWiKKlIPmhqTYyUDjHsgwrGKXZWFZvhaNsmWMShevZwbThac/ZW/EE+VimNakFgt0vg+Gj4tkAyvecnWq9+9z72MSdfXkqcpnOIHRvfeovsABF6XKbN2PwX6d3O/n8Q3Frs+yL9WNoGoVXg="],"MIME-Version":"1.0","X-MS-PublicTrafficType":"Email","X-MS-Office365-Filtering-Correlation-Id":"437cef9d-5cd0-4bd2-ac36-08d4e5446010","X-Microsoft-Antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:DM5PR03MB3322; ","X-MS-TrafficTypeDiagnostic":"DM5PR03MB3322:","X-Exchange-Antispam-Report-Test":"UriScan:(185117386973197);","X-Microsoft-Antispam-PRVS":"<DM5PR03MB33225181077AA2137FBC0676F1830@DM5PR03MB3322.namprd03.prod.outlook.com>","X-Exchange-Antispam-Report-CFA-Test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:DM5PR03MB3322; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:DM5PR03MB3322; ","X-Forefront-PRVS":"0402872DA1","SpamDiagnosticOutput":"1:99","SpamDiagnosticMetadata":"NSPM","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"17 Aug 2017 07:48:39.5828\n\t(UTC)","X-MS-Exchange-CrossTenant-Id":"5afe0b00-7697-4969-b663-5eab37d5f47e","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;\n\tIp=[192.88.168.50]; \n\tHelo=[tx30smr01.am.freescale.net]","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"DM5PR03MB3322","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, ran.wang_1@nxp.com","Subject":"[U-Boot] [PATCH v3 4/8] armv8: Add workaround for USB erratum\n\tA-009007","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Rx Compliance tests may fail intermittently at high\njitter frequencies using default register values.\n\nChanges identified in setup makes the Rx compliance test pass.\n\nSigned-off-by: Sriram Dash <sriram.dash@nxp.com>\nSigned-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>\nSigned-off-by: Suresh Gupta <suresh.bhagat@nxp.com>\nSigned-off-by: Ran Wang <ran.wang_1@nxp.com>\n---\nChange in v3:\n- none\n\nChange in v2:\n\tIn function erratum_a009007():\n\t1.Put a blank line after variable declaration.\n\t2.Create a mcro to run for each USB for easier to read and maintain.\n\n arch/arm/cpu/armv8/fsl-layerscape/Kconfig          | 12 ++++++-\n arch/arm/cpu/armv8/fsl-layerscape/soc.c            | 40 ++++++++++++++++++++++\n .../include/asm/arch-fsl-layerscape/immap_lsch2.h  |  8 +++++\n .../include/asm/arch-fsl-layerscape/immap_lsch3.h  |  9 +++++\n 4 files changed, 68 insertions(+), 1 deletion(-)","diff":"diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig\nindex a2de86b..1744ed9 100644\n--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig\n+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig\n@@ -25,6 +25,7 @@ config ARCH_LS1043A\n \tselect SYS_FSL_ERRATUM_A009008\n \tselect SYS_FSL_ERRATUM_A009798\n \tselect SYS_FSL_ERRATUM_A008997\n+\tselect SYS_FSL_ERRATUM_A009007\n \tselect SYS_FSL_HAS_DDR3\n \tselect SYS_FSL_HAS_DDR4\n \tselect ARCH_EARLY_INIT_R\n@@ -49,6 +50,7 @@ config ARCH_LS1046A\n \tselect SYS_FSL_ERRATUM_A009008\n \tselect SYS_FSL_ERRATUM_A009798\n \tselect SYS_FSL_ERRATUM_A008997\n+\tselect SYS_FSL_ERRATUM_A009007\n \tselect SYS_FSL_HAS_DDR4\n \tselect SYS_FSL_SRDS_2\n \tselect ARCH_EARLY_INIT_R\n@@ -88,6 +90,7 @@ config ARCH_LS2080A\n \tselect SYS_FSL_ERRATUM_A009008\n \tselect SYS_FSL_ERRATUM_A009798\n \tselect SYS_FSL_ERRATUM_A008997\n+\tselect SYS_FSL_ERRATUM_A009007\n \tselect ARCH_EARLY_INIT_R\n \tselect BOARD_EARLY_INIT_F\n \n@@ -238,7 +241,14 @@ config SYS_FSL_ERRATUM_A009798\n \tbool \"Workaround for USB PHY erratum A009798\"\n \n config SYS_FSL_ERRATUM_A008997\n-\tbool \"Workaround for USB PHY erratum A008997\"\n+\tbool\n+\thelp\n+\t\tWorkaround for USB PHY erratum A008997\n+\n+config SYS_FSL_ERRATUM_A009007\n+\tbool\n+\thelp\n+\t\tWorkaround for USB PHY erratum A009007\n \n config MAX_CPUS\n \tint \"Maximum number of CPUs permitted for Layerscape\"\ndiff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c\nindex f0dac99..624ee82 100644\n--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c\n+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c\n@@ -124,6 +124,44 @@ static void erratum_a008997(void)\n #endif /* CONFIG_SYS_FSL_ERRATUM_A008997 */\n }\n \n+#if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A)\n+\n+#define PROGRAM_USB_PHY_RX_OVRD_IN_HI(phy)\t\\\n+\tout_be16((phy) + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_1);\t\\\n+\tout_be16((phy) + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_2);\t\\\n+\tout_be16((phy) + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_3);\t\\\n+\tout_be16((phy) + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_4)\n+\n+#elif defined(CONFIG_ARCH_LS2080A)\n+\n+#define PROGRAM_USB_PHY_RX_OVRD_IN_HI(phy)\t\\\n+\tout_le16((phy) + DCSR_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_1); \\\n+\tout_le16((phy) + DCSR_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_2); \\\n+\tout_le16((phy) + DCSR_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_3); \\\n+\tout_le16((phy) + DCSR_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_4)\n+\n+#endif\n+\n+static void erratum_a009007(void)\n+{\n+#if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A)\n+\tvoid __iomem *usb_phy = (void __iomem *)USB_PHY1;\n+\n+\tPROGRAM_USB_PHY_RX_OVRD_IN_HI(usb_phy);\n+\n+\tusb_phy = (void __iomem *)USB_PHY2;\n+\tPROGRAM_USB_PHY_RX_OVRD_IN_HI(usb_phy);\n+\n+\tusb_phy = (void __iomem *)USB_PHY3;\n+\tPROGRAM_USB_PHY_RX_OVRD_IN_HI(usb_phy);\n+#elif defined(CONFIG_ARCH_LS2080A)\n+\tvoid __iomem *dcsr = (void __iomem *)DCSR_BASE;\n+\n+\tPROGRAM_USB_PHY_RX_OVRD_IN_HI(dcsr + DCSR_USB_PHY1);\n+\tPROGRAM_USB_PHY_RX_OVRD_IN_HI(dcsr + DCSR_USB_PHY2);\n+#endif /* CONFIG_SYS_FSL_ERRATUM_A009007 */\n+}\n+\n #if defined(CONFIG_FSL_LSCH3)\n /*\n  * This erratum requires setting a value to eddrtqcr1 to\n@@ -273,6 +311,7 @@ void fsl_lsch3_early_init_f(void)\n \terratum_a009008();\n \terratum_a009798();\n \terratum_a008997();\n+\terratum_a009007();\n #ifdef CONFIG_CHAIN_OF_TRUST\n \t/* In case of Secure Boot, the IBR configures the SMMU\n \t* to allow only Secure transactions.\n@@ -551,6 +590,7 @@ void fsl_lsch2_early_init_f(void)\n \terratum_a009008();\n \terratum_a009798();\n \terratum_a008997();\n+\terratum_a009007();\n }\n #endif\n \ndiff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h\nindex 2e52078..69fd79c 100644\n--- a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h\n+++ b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h\n@@ -347,6 +347,14 @@ struct ccsr_gur {\n #define USB_TXVREFTUNE\t\t\t0x9\n #define USB_SQRXTUNE\t\t\t0xFC7FFFFF\n #define USB_PCSTXSWINGFULL\t\t0x47\n+#define USB_PHY1\t\t\t0x084F0000\n+#define USB_PHY2\t\t\t0x08500000\n+#define USB_PHY3\t\t\t0x08510000\n+#define USB_PHY_RX_OVRD_IN_HI\t\t0x200c\n+#define USB_PHY_RX_EQ_VAL_1\t\t0x0000\n+#define USB_PHY_RX_EQ_VAL_2\t\t0x0080\n+#define USB_PHY_RX_EQ_VAL_3\t\t0x0380\n+#define USB_PHY_RX_EQ_VAL_4\t\t0x0b80\n \n #define SCFG_SNPCNFGCR_SECRDSNP\t\t0x80000000\n #define SCFG_SNPCNFGCR_SECWRSNP\t\t0x40000000\ndiff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h\nindex 2d309d5..238d647 100644\n--- a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h\n+++ b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h\n@@ -137,6 +137,15 @@\n #define USB_SQRXTUNE\t\t\t0xFC7FFFFF\n #define SCFG_QSPICLKCTLR\t0x10\n \n+#define DCSR_BASE\t\t0x700000000ULL\n+#define DCSR_USB_PHY1\t\t\t0x4600000\n+#define DCSR_USB_PHY2\t\t\t0x4610000\n+#define DCSR_USB_PHY_RX_OVRD_IN_HI\t0x200C\n+#define USB_PHY_RX_EQ_VAL_1\t\t0x0000\n+#define USB_PHY_RX_EQ_VAL_2\t\t0x0080\n+#define USB_PHY_RX_EQ_VAL_3\t\t0x0380\n+#define USB_PHY_RX_EQ_VAL_4\t\t0x0b80\n+\n #define TP_ITYP_AV\t\t0x00000001\t/* Initiator available */\n #define TP_ITYP_TYPE(x)\t(((x) & 0x6) >> 1)\t/* Initiator Type */\n #define TP_ITYP_TYPE_ARM\t0x0\n","prefixes":["U-Boot","v3","4/8"]}