Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5059BC07E95 for ; Wed, 7 Jul 2021 12:58:44 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F83461CBD for ; Wed, 7 Jul 2021 12:58:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F83461CBD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8037382E00; Wed, 7 Jul 2021 14:58:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="FV3ivlfA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6290C82E32; Wed, 7 Jul 2021 14:58:16 +0200 (CEST) Received: from mickerik.phytec.de (mickerik.phytec.de [195.145.39.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 44AFD82E0A for ; Wed, 7 Jul 2021 14:58:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=t.remmet@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1625662686; x=1628254686; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kVH3hv3JJAMPDwqgEKTtKvxqSk6X8aHmskevVp8LJ8c=; b=FV3ivlfAjlb+DbklY0N83ojHfrJ7E7Ftd/1BnZXwO4h2cqrxJb7wVm+EAAhZ7Akx KQSGyVGi4S0lWhRggdrbf8tkkDBxL3GWHuEmE1fSbEx8bgZPtoBa5cUVCgjO/6wA iNEl7cZeh3CL332Jd9wbQANSXHj0nggOkXidbg62Jf8=; X-AuditID: c39127d2-1d8f870000001daf-f6-60e5a4de67e3 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 1D.71.07599.ED4A5E06; Wed, 7 Jul 2021 14:58:06 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070714580589-1108505 ; Wed, 7 Jul 2021 14:58:05 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Jagan Teki , Heiko Schocher Subject: [PATCH v3 6/9] board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95V Date: Wed, 7 Jul 2021 12:58:01 +0000 Message-Id: <20210707125804.3010652-7-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210707125804.3010652-1-t.remmet@phytec.de> References: <20210707125804.3010652-1-t.remmet@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 07.07.2021 14:58:06, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 07.07.2021 14:58:06 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRoCBS/fekqcJBnO7eC0eXvW32HHnPrPF l00T2Cx+rPrCatF+ysfi7d5Odospj9ezO7B7rP14n9Vj3qwTLB47Z91l9zh7Zwejx8Z3O5gC WKO4bFJSczLLUov07RK4Mk6/WsBaMFegYs6NP+wNjL18XYycHBICJhI3r55i6WLk4hAS2MYo MWP+bSjnAqPEhzOdbCBVbAIaEk9XnGYCsUUEJCR+9V9lBCliFrjOKDF5/QmwhLCAt8S+iWsZ QWwWARWJQwfWgNm8ApYS7y9sZodYJy8x89J3MJtTwEpi74l7YLYQUM3N6R9YIeoFJU7OfMIC UX+FUeLJFyUIW0ji9OKzzCA2s4C2xLKFr5knMArMQtIyC0lqASPTKkah3Mzk7NSizGy9gozK ktRkvZTUTYzAQD48Uf3SDsa+OR6HGJk4GA8xSnAwK4nwMjo8TRDiTUmsrEotyo8vKs1JLT7E KM3BoiTOu4G3JExIID2xJDU7NbUgtQgmy8TBKdXAqDBBoWzX5aZs30cJ+nxd01omc00O1Lu0 SX/P5jYllS9M//KvZ6k9blvq2Pj49Vwnowkzrr7wf2fnL/hq/++bfNvsliu/v7itOXlmzbH3 x6oTyxtuxt3Jy2a02JrPaOjffWmudvPsFc5PI819Zv1rkOlSLNg9pSIkZPvnQzfVVzKtDLmu ft/ZSImlOCPRUIu5qDgRADCfz/NSAgAA X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Increase VDD=5FARM to prevent timing issues as VDD=5FSOC is used in OD mode. Also increase GIC clock. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam --- No changes in v2 or v3. board/phytec/phycore=5Fimx8mp/spl.c | 11 ++++++++++- configs/phycore-imx8mp=5Fdefconfig | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore=5Fimx8mp/spl.c b/board/phytec/phycore=5Fi= mx8mp/spl.c index 0bc4c7693b06..815ca9badcba 100644 --- a/board/phytec/phycore=5Fimx8mp/spl.c +++ b/board/phytec/phycore=5Fimx8mp/spl.c @@ -62,7 +62,8 @@ int power=5Finit=5Fboard(void) /* BUCKxOUT=5FDVS0/1 control BUCK123 output */ pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK123=5FDVS, 0x29); =20 - /* increase VDD=5FSOC to typical value 0.95V */ + /* Increase VDD=5FSOC and VDD=5FARM to OD voltage 0.95V */ + pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1OUT=5FDVS0, 0x1C); pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK2OUT=5FDVS0, 0x1C); =20 /* set WDOG=5FB=5FCFG to cold reset */ @@ -71,6 +72,14 @@ int power=5Finit=5Fboard(void) return 0; } =20 +void spl=5Fboard=5Finit(void) +{ + /* Set GIC clock to 500Mhz for OD VDD=5FSOC. */ + clock=5Fenable(CCGR=5FGIC, 0); + clock=5Fset=5Ftarget=5Fval(GIC=5FCLK=5FROOT, CLK=5FROOT=5FON | CLK=5FROOT= =5FSOURCE=5FSEL(5)); + clock=5Fenable(CCGR=5FGIC, 1); +} + int board=5Ffit=5Fconfig=5Fname=5Fmatch(const char *name) { return 0; diff --git a/configs/phycore-imx8mp=5Fdefconfig b/configs/phycore-imx8mp=5F= defconfig index a22f5e089d97..89c2ac977f47 100644 --- a/configs/phycore-imx8mp=5Fdefconfig +++ b/configs/phycore-imx8mp=5Fdefconfig @@ -25,6 +25,7 @@ CONFIG=5FOF=5FSYSTEM=5FSETUP=3Dy CONFIG=5FSYS=5FEXTRA=5FOPTIONS=3D"IMX=5FCONFIG=3Darch/arm/mach-imx/imx8m/i= mximage-8mp-lpddr4.cfg" CONFIG=5FDEFAULT=5FFDT=5FFILE=3D"oftree" CONFIG=5FBOARD=5FLATE=5FINIT=3Dy +CONFIG=5FSPL=5FBOARD=5FINIT=3Dy CONFIG=5FSPL=5FBOOTROM=5FSUPPORT=3Dy CONFIG=5FSPL=5FSYS=5FMALLOC=5FSIMPLE=3Dy CONFIG=5FSPL=5FSEPARATE=5FBSS=3Dy --=20 2.25.1