From patchwork Thu Aug 8 09:59:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1143945 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="fS28ZqXM"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4643tP02NTz9sMr for ; Thu, 8 Aug 2019 20:06:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B2FEAC21F24; Thu, 8 Aug 2019 10:03:22 +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 2AAF6C21F1D; Thu, 8 Aug 2019 09:59:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2DA5EC21E60; Thu, 8 Aug 2019 09:59:13 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20069.outbound.protection.outlook.com [40.107.2.69]) by lists.denx.de (Postfix) with ESMTPS id 7C3D5C21E77 for ; Thu, 8 Aug 2019 09:59:03 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dpTgaN3nbnD+tJtpoxYCLr5Dy1IsB2nWv2Mr8FJqVqPCo6uqQMXrh4TA64V3V2bvy9eGTsblvCF/9ud8Utguzt7ZDehomVifXbblii/0xS6oqiNq9wZiptLMhIJHFB951vcQOhRTmjzfmxs8hDesj9/tRhXdDOzpItcebnaI6D0QEju+HA1EZ6orP/+10axC9YVaTkfc4OQOshwzaL71iB1TbL+DoEOjIraYNrSKG7jBvR3DUOqv4htwUg8yE7linbgQjbfrr0AVZ5fAhXcE6K6aFDqdlmlaHQLhZmHRr2hVrSw7fFp+iM82pKHUyrn8r4AVS+MEnMzn/v2rzxE+7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IxGTCnn7f4xqraCN0ZQHR0DCq8NM9PQ5+6U8txMekxY=; b=TLLjwLpkpvMr+DY4quHl0IkZDzQKgQTiZKqmXg1U2C+MSPFidBFLyTSrblbbw++ivxXxGJ+wq29BJnRn25rMiTAOWvQEnTmln3qp41fwkLc5fWK5CkCQn2s+x7P9Vr/qBTyDSicyQ0OEPJL3jh3c7XQzmV5CFFWAfZUNPDRJbePUXDwQ/6eAxNkfAlGSuZYpHXC6va9zsg2xCdd2mjWCW4QeNVfB28yhwfM+pBWRg0v9VdGBKzXplYrvQKIzTGv8TkzVHzCsnvJ++rpylEFLmRnL1j0mOBLf9wf6ptkJgnhk3vDYjEVveW38NaL1Z1VG57tU5+rSjci/S3G+xZJMTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=IxGTCnn7f4xqraCN0ZQHR0DCq8NM9PQ5+6U8txMekxY=; b=fS28ZqXMF471/GBCE9FRK5z/sKtoDTBnFCYI74bs0Vmvu+TycNcaCoqmUin/hw9gL5Qx/Y7hTwJo0aSg35j9ksEcpLJGO270sPZa6TXgyHd2EhFLt41hrhPt8dS18TfSmhx2DscQsC/+LxEmOKH6KkQzD6cplBVSooUNvC6v7RQ= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5778.eurprd04.prod.outlook.com (20.178.203.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.14; Thu, 8 Aug 2019 09:59:02 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4%4]) with mapi id 15.20.2115.017; Thu, 8 Aug 2019 09:59:02 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" Thread-Topic: [PATCH 1/4] ddr: imx8m: Fix ddr4 driver build issue Thread-Index: AQHVTc/oWd0Df/8x9EebEQOGPAwW1g== Date: Thu, 8 Aug 2019 09:59:02 +0000 Message-ID: <20190808101440.22235-2-peng.fan@nxp.com> References: <20190808101440.22235-1-peng.fan@nxp.com> In-Reply-To: <20190808101440.22235-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: HK2PR02CA0130.apcprd02.prod.outlook.com (2603:1096:202:16::14) 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: fcc19032-a5e4-47e6-fc4c-08d71be70a67 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB5778; x-ms-traffictypediagnostic: AM0PR04MB5778: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:935; x-forefront-prvs: 012349AD1C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(376002)(396003)(39860400002)(366004)(199004)(189003)(71200400001)(4326008)(26005)(6486002)(446003)(6436002)(305945005)(2501003)(386003)(36756003)(486006)(64756008)(316002)(66476007)(66446008)(66946007)(66556008)(86362001)(44832011)(6506007)(25786009)(2906002)(186003)(76176011)(102836004)(99286004)(7736002)(11346002)(2616005)(8676002)(476003)(52116002)(478600001)(110136005)(81156014)(53936002)(71190400001)(8936002)(50226002)(66066001)(81166006)(5660300002)(4744005)(14454004)(6116002)(3846002)(54906003)(1076003)(6512007)(256004)(14444005)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5778; 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: QvYogBpFKzitdWb3lUSYpK/hjgefT1DbCxeZorhkza+NlQk3n3ZYSHznbvcyOsU4gi2diWtsN6y9En/W6eJcwMqVOz5Et75BHYbcBnI65fIA3Moi5QLvqDHF6e2b0vVVnOY0LiIgPIiMDUwy10Ugs8bzh755oaEqDDV13C+mvD14Ebru1aWZb2tf1qE9/Q5DJyX3u3HiPYK7Xw8HjiF79BaFrummq/6+XoxuFM24au+3A/wRqrvP2vEucv5cM8svHXqiU7lcQA+Jn9nyORbSABc5EsyAN1KYOuJVY3EXT5+Tt3yCBhr2eEnFB2jFP8iQCvH01EgKW4QnfT5J0GOSbzaGHm0SiVpU9paInVUPhflJhWHqFyGB2hZuhiuKSAJW0U+8WuE2EmmHDfPO/W3Ub2LpSW0Z33RtkRjBkmnVMO4= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcc19032-a5e4-47e6-fc4c-08d71be70a67 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2019 09:59:02.5924 (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-CrossTenant-userprincipalname: peng.fan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5778 Cc: "u-boot@lists.denx.de" , dl-uboot-imx Subject: [U-Boot] [PATCH 1/4] ddr: imx8m: Fix ddr4 driver build 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 Since the parameter of dram_pll_init is changed, update to use new. Also remove non-existed header file. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr4_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ddr/imx/imx8m/ddr4_init.c b/drivers/ddr/imx/imx8m/ddr4_init.c index 031cdc57e1..b8aa104536 100644 --- a/drivers/ddr/imx/imx8m/ddr4_init.c +++ b/drivers/ddr/imx/imx8m/ddr4_init.c @@ -8,7 +8,6 @@ #include #include #include -#include #include void ddr4_cfg_umctl2(struct dram_cfg_param *ddrc_cfg, int num) @@ -41,7 +40,7 @@ void ddr_init(struct dram_timing_info *dram_timing) CLK_ROOT_SOURCE_SEL(4) | CLK_ROOT_PRE_DIV(CLK_ROOT_PRE_DIV4)); - dram_pll_init(DRAM_PLL_OUT_600M); + dram_pll_init(MHZ(600)); reg32_write(0x303A00EC, 0x0000ffff); /* PGC_CPU_MAPPING */ reg32setbit(0x303A00F8, 5); /* PU_PGC_SW_PUP_REQ */