From patchwork Wed May 15 09:56:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1099917 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="bogwvUI+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453qj92z8gz9s9T for ; Wed, 15 May 2019 19:57:17 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1DBF4C21E08; Wed, 15 May 2019 09:57:06 +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 37C53C21DED; Wed, 15 May 2019 09:57:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0D823C21D83; Wed, 15 May 2019 09:56:55 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00046.outbound.protection.outlook.com [40.107.0.46]) by lists.denx.de (Postfix) with ESMTPS id 56ED4C21D4A for ; Wed, 15 May 2019 09:56:52 +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=AYgryJXuGXcOzrImz+KvWtUiBkewq70npfnj2U3PxwM=; b=bogwvUI+cONasJyuf9/fnhT2u3lFbGGrI3+XIRb5IZUquYRJzwJR8RM25brjVzF6PvK1KhrXMpQ7+GHMjDTnLDP4LhupeHC8otTPCuyK4ga95cOAcdT64R+MIo6p8HwHZ2f9AfjoVXeJrXgFxjmIFwTdX1+SP0iJgkY/LWMm33o= 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:51 +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:51 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 1/5] mx7ulp: Fix APLL num and denom setting issue Thread-Index: AQHVCwSExI92yAncIUKtvgxmb++gXA== Date: Wed, 15 May 2019 09:56:51 +0000 Message-ID: <20190515101032.11905-2-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: 78d1388c-1b89-4f39-1910-08d6d91ba72a 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:7691; 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)(25786009)(68736007)(476003)(11346002)(4326008)(66946007)(64756008)(66446008)(66556008)(73956011)(2616005)(66476007)(2501003)(110136005)(6116002)(3846002)(446003)(54906003)(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: nfrbiyvfj5ToeasNv28ykWC66lK6j1PJGnSHh5hjRonLXFinmuTEgFNWZc/EklX/cFizDygT+HjYvr7lbwbpxSpZL/ZjL6859VCSipuFQoZEnrmw6zoXqGDA2FCPAngrm5xk+RxlcrCODF/ysTTM4aQMNFo0jXqAYkjSYGq55/naJAfB0y2UKO1PyN/zEo8M7RuuNDVHRB6h91XX6TjFNMK6t2qimbNyK8Ubrj1nU84yHNCVDvGlJIXsztc+vcO44WbbC+Jqzz7tW/AZRT9G3DRTi4pKEE6F8E+vxD0VCj3GKLv4iRDXwExcvaL7r1UsBHwj1hqpDn9ZQtdGVN5whnx1jNzN/8iYofaT7ycGJ2nWqGUpvpZK5YaXU/s+PKr0KE8c54jCS+jOUSB1PJuuSyOzBzqDEVgGjYT8ssyJvLQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78d1388c-1b89-4f39-1910-08d6d91ba72a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:56:51.3930 (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 1/5] mx7ulp: Fix APLL num and denom setting issue 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 For the current APLL setting, as we want the APLL PFD0 to meet DDR clock 320Mhz requirement. We set MULT to 20, NUM to 4 and DENOM to 2, to get final 22 multiplier. But according to the RM, the NUM should always be less than the DENOM. So our setting violates the rule. Actually the ROM has already set the MULT to 22 and leave NUM/DENOM in default value. The calculated APLL PFD0 clock is 318.9888Mhz, which also meet the DDR requirement. To fix the issue, we remove the PLL settings in DCD to use default value from ROM, and only set the PFD0 FRAC. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- board/freescale/mx7ulp_evk/imximage.cfg | 6 ------ board/freescale/mx7ulp_evk/plugin.S | 19 +------------------ 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg index a6e18d9440..78df69f40e 100644 --- a/board/freescale/mx7ulp_evk/imximage.cfg +++ b/board/freescale/mx7ulp_evk/imximage.cfg @@ -43,13 +43,7 @@ CSF CONFIG_CSF_SIZE */ DATA 4 0x403f00dc 0x00000000 DATA 4 0x403e0040 0x01000020 -DATA 4 0x403e0500 0x01000000 DATA 4 0x403e050c 0x80808080 -DATA 4 0x403e0508 0x00140000 -DATA 4 0x403E0510 0x00000004 -DATA 4 0x403E0514 0x00000002 -DATA 4 0x403e0500 0x00000001 -CHECK_BITS_SET 4 0x403e0500 0x01000000 DATA 4 0x403e050c 0x8080801E CHECK_BITS_SET 4 0x403e050c 0x00000040 DATA 4 0x403E0030 0x00000001 diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S index 082b2beaa3..802ae5f49a 100644 --- a/board/freescale/mx7ulp_evk/plugin.S +++ b/board/freescale/mx7ulp_evk/plugin.S @@ -13,26 +13,9 @@ ldr r2, =0x403e0000 ldr r3, =0x01000020 str r3, [r2, #0x40] - ldr r3, =0x01000000 - str r3, [r2, #0x500] + ldr r3, =0x80808080 str r3, [r2, #0x50c] - ldr r3, =0x00140000 - str r3, [r2, #0x508] - ldr r3, =0x00000004 - str r3, [r2, #0x510] - ldr r3, =0x00000002 - str r3, [r2, #0x514] - ldr r3, =0x00000001 - str r3, [r2, #0x500] - - ldr r3, =0x01000000 -wait1: - ldr r4, [r2, #0x500] - and r4, r3 - cmp r4, r3 - bne wait1 - ldr r3, =0x8080801E str r3, [r2, #0x50c] 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] From patchwork Wed May 15 09:56:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1099919 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="LN2irqn8"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453qkC6yHXz9s9T for ; Wed, 15 May 2019 19:58:11 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9A902C21DFD; Wed, 15 May 2019 09:57:31 +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 40E23C21E15; Wed, 15 May 2019 09:57:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 38C2AC21E18; Wed, 15 May 2019 09:57:01 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00078.outbound.protection.outlook.com [40.107.0.78]) by lists.denx.de (Postfix) with ESMTPS id BAD42C21E08 for ; Wed, 15 May 2019 09:56:57 +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=OIEBLlyafurR8nnhGI63x4LMAkvSmdDqR4S77sXch2Y=; b=LN2irqn8kkSGbuQ6l4zluwNF3Rh6COmece5P0aFkkWypL6d9iBU2x678UYF39lT2/3+T4bW0wTBFKyE1BAXkumc4UcIKuRD0V4WlnF7wefhp5pBHmY6qTBa01Awu25CkRH3L8SVNvUf9oNteVXVMPxJAlXPdUFxlqVCkJ9d98FI= 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:56 +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:56 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 3/5] mx7ulp_evk: Change APLL and its PFD0 frequencies Thread-Index: AQHVCwSHmN3+M0cFuEu4lAMX+LaQBQ== Date: Wed, 15 May 2019 09:56:56 +0000 Message-ID: <20190515101032.11905-4-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: 76a79f12-9fb5-4b8d-2d20-08d6d91baa32 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:4502; 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)(25786009)(68736007)(476003)(11346002)(4326008)(66946007)(64756008)(66446008)(66556008)(73956011)(2616005)(66476007)(2501003)(110136005)(6116002)(3846002)(446003)(54906003)(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: ehY7vUmzcSF7tucvho5Szr3K39kO5EKwT9/QjLoeFurkdatGMmb9BGwQSeAmRb6Kq5fSlU22lSrZMXzNnJUJVB3AG5KyjVq6V63JcK8SKRzGiXFmEnEzYcwrqeXE7kXKcrOI4ljU10ejl68RepMTKIWa2oh3MEGdMinyUeulOzD2QA4GiZFMQ2Or9W3Xds7N1UH3EH13rfHRXBDjPi0HIatmYaf7M/EMV7ywGAS4A7S69XgwDPs9u0kkZt+GlQMuSCmlkIk2EAeE+pMf+2Qt0NsKNiBBzQu3mqcvYRbq0nUnOzobuk43oUX8+GDe1/1ydC1QCUrl38Eb0w4E3QaUSAazeK8qHSJzdrq7G5lG9EsrCXcfpiuz+ZsngavYd0tSkF1wOZTkrht8xg55tfw3+nndQE7Xu1D9qhHpcm2Bd4Y= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76a79f12-9fb5-4b8d-2d20-08d6d91baa32 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:56:56.6281 (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 3/5] mx7ulp_evk: Change APLL and its PFD0 frequencies 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 To support HDMI display on EVK board, the LCDIF pix clock must be 25.2Mhz. Since the its PCC divider range is from 1-8, the max rate of LCDIF PCC source clock is 201.6Mhz. This limits the source clock must from NIC1 bus clock or NIC1 clock, other sources from APLL PFDs are higher than this max rate. The NIC1 bus clock and NIC1 clock are from DDRCLK whose parent source is APLL PFD0, so we must change the APLL PFD0 and have impact to DDRCLK, NIC1 and NIC1 bus. Eventually, this requests to set the APLL PFD0 frequency to 302.4Mhz (25.2 * 12), with settings: PFD0 FRAC: 32 APLL MULT: 22 APLL NUM: 2 APLL DENOM: 5 Signed-off-by: Ye Li Tested-by: Fancy Fang Signed-off-by: Peng Fan --- board/freescale/mx7ulp_evk/imximage.cfg | 8 +++++++- board/freescale/mx7ulp_evk/plugin.S | 20 +++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg index e7d87beb5f..d4f6c3c62d 100644 --- a/board/freescale/mx7ulp_evk/imximage.cfg +++ b/board/freescale/mx7ulp_evk/imximage.cfg @@ -43,8 +43,14 @@ CSF CONFIG_CSF_SIZE */ DATA 4 0x403f00dc 0x00000000 DATA 4 0x403e0040 0x01000020 +DATA 4 0x403e0500 0x01000000 DATA 4 0x403e050c 0x80808080 -DATA 4 0x403e050c 0x8080801E +DATA 4 0x403e0508 0x00160000 +DATA 4 0x403E0510 0x00000002 +DATA 4 0x403E0514 0x00000005 +DATA 4 0x403e0500 0x00000001 +CHECK_BITS_SET 4 0x403e0500 0x01000000 +DATA 4 0x403e050c 0x80808020 CHECK_BITS_SET 4 0x403e050c 0x00000040 DATA 4 0x403E0030 0x00000001 DATA 4 0x403e0040 0x11000020 diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S index 73636c679f..ccd2fc03a4 100644 --- a/board/freescale/mx7ulp_evk/plugin.S +++ b/board/freescale/mx7ulp_evk/plugin.S @@ -13,10 +13,28 @@ ldr r2, =0x403e0000 ldr r3, =0x01000020 str r3, [r2, #0x40] + ldr r3, =0x01000000 + str r3, [r2, #0x500] ldr r3, =0x80808080 str r3, [r2, #0x50c] - ldr r3, =0x8080801E + ldr r3, =0x00160000 + str r3, [r2, #0x508] + ldr r3, =0x00000002 + str r3, [r2, #0x510] + ldr r3, =0x00000005 + str r3, [r2, #0x514] + ldr r3, =0x00000001 + str r3, [r2, #0x500] + + ldr r3, =0x01000000 +wait1: + ldr r4, [r2, #0x500] + and r4, r3 + cmp r4, r3 + bne wait1 + + ldr r3, =0x80808020 str r3, [r2, #0x50c] ldr r3, =0x00000040 From patchwork Wed May 15 09:56:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1099921 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="M8uGOmOd"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453qlm1Nq1z9s9T for ; Wed, 15 May 2019 19:59:31 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A5B63C21DA1; Wed, 15 May 2019 09:57:44 +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 18A9CC21E02; Wed, 15 May 2019 09:57:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DB469C21D83; Wed, 15 May 2019 09:57:03 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00040.outbound.protection.outlook.com [40.107.0.40]) by lists.denx.de (Postfix) with ESMTPS id 00801C21E16 for ; Wed, 15 May 2019 09:57:00 +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=riXJMZRN8PXY4e4s+nKAbpUnMv4NFZQPwx7AVIjy1UA=; b=M8uGOmOdCXpHXqJlqcACLxIAYMEiFNfpgnZgbT07HkDqElpHebBzZZCkFoQTTnQD/SYSNlljbT2gJ+AA8iInH1vCIbxhNr41hn4mscvqAN+PmPd7MfUhqhYG9yWiAXhbAjrMZRgf5vhgIlIbB4Y+9XfB601gd8tMD+IEpw7xmjQ= 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:59 +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:59 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 4/5] mx7ulp: Select the SCG1 APLL PFD as a system clock source Thread-Index: AQHVCwSJPOL6wu5J/kiFJLQy3kwDRA== Date: Wed, 15 May 2019 09:56:59 +0000 Message-ID: <20190515101032.11905-5-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: a1ab183c-4b63-43d4-66c7-08d6d91bab98 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:4941; 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)(25786009)(68736007)(476003)(11346002)(4326008)(66946007)(64756008)(66446008)(66556008)(73956011)(2616005)(66476007)(2501003)(110136005)(6116002)(3846002)(446003)(54906003)(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: +tv7k5Eus18orhTSiuUNoE8EWOBXnBJxz8RzSnUxycHL4CInomUaByTV8FIQqBWr8GwyFi/jzUtABfiy7IV3Ks0cZoCKQxqMcveQdr2gNnuicbttN28K+4nRuvTsZXndpEsRlRdyTgHW5bNbZpbQuDG1fQIDFeUSJbOYDHnS5rE648Ad136fyFl71Yi9NvQYveA53XFAdmFrc47ufJjozV08Q8slbuh0STX+IuYyFd/UQue5naP2/qNvxSrXv2fRyTTyg0zIIZXoD969jObG0ZAVH7ckK4ODgLskrhfLKk7nzUZ1fX6RNxqxArKc/EyXjAc8LwGhJYgZUFbuHDwsMOgSwzvxjwxARYDNqLocTI7wqZdakzjarQFy3L/jOoUN9aLgkeXzpeeanoa2Uo/yN/2avNj4YTO1BoxM65lVVSA= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1ab183c-4b63-43d4-66c7-08d6d91bab98 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:56:59.0477 (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 4/5] mx7ulp: Select the SCG1 APLL PFD as a system clock source 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 Due to the APLL out glitch issue, the APLLCFG PLLS bit must be set to select SCG1 APLL PFD for generating system clock to align with the design. Signed-off-by: Ye Li Acked-by: Peng Fan --- board/freescale/mx7ulp_evk/imximage.cfg | 2 +- board/freescale/mx7ulp_evk/plugin.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg index d4f6c3c62d..6bc7c199f5 100644 --- a/board/freescale/mx7ulp_evk/imximage.cfg +++ b/board/freescale/mx7ulp_evk/imximage.cfg @@ -45,7 +45,7 @@ DATA 4 0x403f00dc 0x00000000 DATA 4 0x403e0040 0x01000020 DATA 4 0x403e0500 0x01000000 DATA 4 0x403e050c 0x80808080 -DATA 4 0x403e0508 0x00160000 +DATA 4 0x403e0508 0x00160002 DATA 4 0x403E0510 0x00000002 DATA 4 0x403E0514 0x00000005 DATA 4 0x403e0500 0x00000001 diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S index ccd2fc03a4..55dfecc751 100644 --- a/board/freescale/mx7ulp_evk/plugin.S +++ b/board/freescale/mx7ulp_evk/plugin.S @@ -18,7 +18,7 @@ ldr r3, =0x80808080 str r3, [r2, #0x50c] - ldr r3, =0x00160000 + ldr r3, =0x00160002 str r3, [r2, #0x508] ldr r3, =0x00000002 str r3, [r2, #0x510] From patchwork Wed May 15 09:57:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1099922 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="Zwc16n2Z"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453qlr3PYYz9s9T for ; Wed, 15 May 2019 19:59:36 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id EDA6CC21DD9; Wed, 15 May 2019 09:57:57 +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 9BF50C21DD7; Wed, 15 May 2019 09:57:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BA01CC21D9A; Wed, 15 May 2019 09:57:04 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00057.outbound.protection.outlook.com [40.107.0.57]) by lists.denx.de (Postfix) with ESMTPS id 330F5C21D8A for ; Wed, 15 May 2019 09:57:02 +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=m8G7FZE9qHW6vlUWVCQWL6Icr/ELfslraiptg/FkIgI=; b=Zwc16n2ZdUlLHkXUJK2rYX7hzTmPnS4eFWeNiNbleVZvmvBRbIJHwrOX+fRiF2KRq1xU4U38Tw9K4MExBqT7eDkiV/sBaLmiFYwk8IfqT4dzd+USsuuOfARIlHu72P0m/TQwfod13GGDglcyralTT5H1i3Rke3MVp52R1zaQ5l4= 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:57:01 +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:57:01 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 5/5] mx7ulp_evk: Update DDR freq to 352.8Mhz for ULP B0 Thread-Index: AQHVCwSKGb4AC1ro50ad01lmnhU8LQ== Date: Wed, 15 May 2019 09:57:01 +0000 Message-ID: <20190515101032.11905-6-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: 5b2757ad-2f7f-4c57-78c3-08d6d91bad07 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)(979002)(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)(969003)(989001)(999001)(1009001)(1019001); 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: uW0qTr57gantFrG6ev+kkKRll9YWeeiT97F75Vvwr8hZr3ptJwgqY77fh1k1z+jm7NAD8GTDQFosAAMEOp1dfwwhrKSsKsOurlHsEDs550sbM32B8WdU3nNlFB8yqS9j0FBYW2c8IiYnc1vUjCrOwVcw70WgQFSBb5RNUeHzCorg1PDDKOdC8vKlJ4D0IA4M9D/ZPxpMjjOcHkTAlVQvxNnCHPL2AARLtezzWxoGCSbHDO4I0LJMOfER2+2WAxWn/+iNTYxO5cfk0BOOHoLsj+gRovwbgCakg9Y4vrgdofVLRtsscymFF61UwyvP+I3BlaMpeJreQu4edVAEAoluvm+P1l7Rduy8d8LJw0L3MNUpSIm2OMptv258HoR7nCj3sslFs5SA9U4fWAE/Ppt7CmEyPlrl/CTwrQnVrfQC328= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b2757ad-2f7f-4c57-78c3-08d6d91bad07 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:57:01.2454 (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 5/5] mx7ulp_evk: Update DDR freq to 352.8Mhz for ULP B0 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 On i.MX7ULP B0, the DDR clock target is increased from 320Mhz to 380Mhz. We update DDR clock relevant settings to approach the target. But since the limitation on LCDIF pix clock for HDMI output (refer "mx7ulp_evk: Change APLL and its PFD0 frequencies"), we set DDR clock to 352.8Mhz (25.2Mhz * 14) by using the clock path: APLL PFD0 -> DDR CLK -> NIC0 -> NIC1 -> LCDIF clock To reduce the impact to entire system, the NIC0_DIV and NIC1_DIV are kept, so the divider 14 is calculated as: 14 = (NIC0_DIV + 1) * (NIC1_DIV + 1) * (LCDIF_PCC_DIV + 1) NIC0_DIV: 1 NIC1_DIV: 0 LCDIF_PCC_DIV: 6 APLL and APLL PFD0 settings: PFD0 FRAC: 27 APLL MULT: 22 APLL NUM: 1 APLL DENOM: 20 This patch applies the new settings for both DCD and plugin. There is no DDR script change on this new frequency. Overnight memtester is passed. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- board/freescale/mx7ulp_evk/imximage.cfg | 6 +++--- board/freescale/mx7ulp_evk/plugin.S | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg index 6bc7c199f5..43ebc23091 100644 --- a/board/freescale/mx7ulp_evk/imximage.cfg +++ b/board/freescale/mx7ulp_evk/imximage.cfg @@ -46,11 +46,11 @@ DATA 4 0x403e0040 0x01000020 DATA 4 0x403e0500 0x01000000 DATA 4 0x403e050c 0x80808080 DATA 4 0x403e0508 0x00160002 -DATA 4 0x403E0510 0x00000002 -DATA 4 0x403E0514 0x00000005 +DATA 4 0x403E0510 0x00000001 +DATA 4 0x403E0514 0x00000014 DATA 4 0x403e0500 0x00000001 CHECK_BITS_SET 4 0x403e0500 0x01000000 -DATA 4 0x403e050c 0x80808020 +DATA 4 0x403e050c 0x8080801B CHECK_BITS_SET 4 0x403e050c 0x00000040 DATA 4 0x403E0030 0x00000001 DATA 4 0x403e0040 0x11000020 diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S index 55dfecc751..2cc93dbdd5 100644 --- a/board/freescale/mx7ulp_evk/plugin.S +++ b/board/freescale/mx7ulp_evk/plugin.S @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2019 NXP */ #include @@ -20,9 +21,9 @@ str r3, [r2, #0x50c] ldr r3, =0x00160002 str r3, [r2, #0x508] - ldr r3, =0x00000002 + ldr r3, =0x00000001 str r3, [r2, #0x510] - ldr r3, =0x00000005 + ldr r3, =0x00000014 str r3, [r2, #0x514] ldr r3, =0x00000001 str r3, [r2, #0x500] @@ -34,7 +35,7 @@ wait1: cmp r4, r3 bne wait1 - ldr r3, =0x80808020 + ldr r3, =0x8080801B str r3, [r2, #0x50c] ldr r3, =0x00000040