From patchwork Wed May 15 09:56:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1099920 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="JHJ17ccY"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453qkP0NvWz9s9T for ; Wed, 15 May 2019 19:58:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B6396C21DED; Wed, 15 May 2019 09:57:19 +0000 (UTC) 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=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id AB692C21DFD; Wed, 15 May 2019 09:57:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AC480C21DED; Wed, 15 May 2019 09:56:58 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00082.outbound.protection.outlook.com [40.107.0.82]) by lists.denx.de (Postfix) with ESMTPS id 20B2BC21DD7 for ; Wed, 15 May 2019 09:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Tl5K5kO3mpQpHsQgvpXn9A8CnEc686H3uBAQ54JVCqs=; b=JHJ17ccYASnl1K6/l88FeQsfPWb+WOTF/EElxn4DB0Dle92Wb9O6Nafskvf6wTSOaIMGlHPxtPY1hf05hBfzYl3oKaElOsOB6Gd8Ot72VbRcNSFzl7xDSShZwqX+ojrh3LC45CmTHS3wfj8JMBQmk1PehNG4njGwrBmybBX9x0E= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6305.eurprd04.prod.outlook.com (20.179.35.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.24; Wed, 15 May 2019 09:56:54 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378%6]) with mapi id 15.20.1878.024; Wed, 15 May 2019 09:56:54 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 2/5] mx7ulp_evk: Update LPDDR3 script Thread-Index: AQHVCwSG+eoOacidzUe2Zk4xQsSaXA== Date: Wed, 15 May 2019 09:56:53 +0000 Message-ID: <20190515101032.11905-3-peng.fan@nxp.com> References: <20190515101032.11905-1-peng.fan@nxp.com> In-Reply-To: <20190515101032.11905-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ac5f8f6-3c2c-419e-8da3-08d6d91ba8aa x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB6305; x-ms-traffictypediagnostic: AM0PR04MB6305: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 0038DE95A2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(136003)(346002)(39860400002)(199004)(189003)(14454004)(44832011)(486006)(316002)(305945005)(15650500001)(25786009)(68736007)(476003)(11346002)(4326008)(66946007)(64756008)(66446008)(66556008)(73956011)(2616005)(66476007)(2501003)(110136005)(6116002)(3846002)(446003)(54906003)(14444005)(256004)(53936002)(2906002)(5660300002)(8936002)(86362001)(6512007)(52116002)(66066001)(1076003)(7736002)(6486002)(50226002)(8676002)(81156014)(81166006)(76176011)(99286004)(478600001)(102836004)(186003)(71190400001)(71200400001)(36756003)(26005)(6436002)(386003)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB6305; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BLgbrq4bXS/WU0ncVU3ciB8vEmIyjkJrae8OpSLtW0gt+aGfaBmus7tSPlGZrMEDqroBaXS6J5BLkNNDWPIZ7Ydeut5MSlkXmw2fXuMBIR80ybkN+B96QtPTRsxYNCxJIY8qbMu0f9p7k2wqGD3Ta08MS5s+V8X0+HteZpUBSGq1BXHZpUsds/ybRAEa3w6pFj67SteuywfFF34mstM5u45EYNQ1tlCI42K2z2YIhS8aiuZGwhG9gPKp2M4mhz+EgR3GjSzOB0jIapgw5ttxkw84tlkXtCE79PFIMJziRfsdM3Dx9mdB6KidR51bTox693k0trBcwgq2Dp0u6IfjFAWiLmUm+3uGwYSzRvXqeWCnJ1xI3vKX16Fx+Xp8JFll/Wx6zIgFwwmlI2isaPpKl/n6c1q0qOGaIdGMZwaI528= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ac5f8f6-3c2c-419e-8da3-08d6d91ba8aa X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:56:53.9456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6305 Cc: "u-boot@lists.denx.de" , dl-uboot-imx Subject: [U-Boot] [PATCH 2/5] mx7ulp_evk: Update LPDDR3 script X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Ye Li Update LPDDR3 script with the changes below: -Update the precharge command to CMD=01 at the DDR initialization phase -remove unimplemented registers Write data bit delay --refer to the DDR_TRIM bits in IOMUXC1_DDR_SW_PAD_CTL_PAD_DDRn Test: One EVK board passes overnight stress test. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- board/freescale/mx7ulp_evk/imximage.cfg | 9 ++------- board/freescale/mx7ulp_evk/plugin.S | 13 ++----------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg index 78df69f40e..e7d87beb5f 100644 --- a/board/freescale/mx7ulp_evk/imximage.cfg +++ b/board/freescale/mx7ulp_evk/imximage.cfg @@ -88,11 +88,6 @@ DATA 4 0x40AB0820 0x33333333 DATA 4 0x40AB0824 0x33333333 DATA 4 0x40AB0828 0x33333333 -DATA 4 0x40AB082C 0xf3333333 -DATA 4 0x40AB0830 0xf3333333 -DATA 4 0x40AB0834 0xf3333333 -DATA 4 0x40AB0838 0xf3333333 - DATA 4 0x40AB08C0 0x24922492 DATA 4 0x40AB08B8 0x00000800 @@ -107,8 +102,8 @@ DATA 4 0x40AB0030 0x009F0E10 DATA 4 0x40AB0040 0x0000003F DATA 4 0x40AB0000 0xC3190000 -DATA 4 0x40AB001C 0x00008050 -DATA 4 0x40AB001C 0x00008058 +DATA 4 0x40AB001C 0x00008010 +DATA 4 0x40AB001C 0x00008018 DATA 4 0x40AB001C 0x003F8030 DATA 4 0x40AB001C 0x003F8038 DATA 4 0x40AB001C 0xFF0A8030 diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S index 802ae5f49a..73636c679f 100644 --- a/board/freescale/mx7ulp_evk/plugin.S +++ b/board/freescale/mx7ulp_evk/plugin.S @@ -115,15 +115,6 @@ wait2: ldr r1, =0x33333333 str r1, [r0, #0x828] - ldr r1, =0xf3333333 - str r1, [r0, #0x82c] - ldr r1, =0xf3333333 - str r1, [r0, #0x830] - ldr r1, =0xf3333333 - str r1, [r0, #0x834] - ldr r1, =0xf3333333 - str r1, [r0, #0x838] - ldr r1, =0x24922492 str r1, [r0, #0x8c0] ldr r1, =0x00000800 @@ -151,9 +142,9 @@ wait2: ldr r1, =0xC3190000 str r1, [r0, #0x0] - ldr r1, =0x00008050 + ldr r1, =0x00008010 str r1, [r0, #0x1c] - ldr r1, =0x00008058 + ldr r1, =0x00008018 str r1, [r0, #0x1c] ldr r1, =0x003F8030 str r1, [r0, #0x1c]