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,URIBL_BLOCKED,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 6A02EC11F68 for ; Fri, 2 Jul 2021 11:21:03 +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 E66F0613F7 for ; Fri, 2 Jul 2021 11:21:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E66F0613F7 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 34A4082959; Fri, 2 Jul 2021 13:20:25 +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="AjCFh80T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0866982824; Fri, 2 Jul 2021 13:20:11 +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 F409982859 for ; Fri, 2 Jul 2021 13:19:49 +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=1625224789; x=1627816789; 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=3ZiGNxQTiGYAF1Go8GfD2kNFrVhw4wrBHzp4n4VWxug=; b=AjCFh80TzxF2/wQ1pDeL0rwQViOub9Bz0Qc5dKEKVahUemcOg4pm3o5ZkInEr/J1 5NpSxCRylwouT1WTVR5HjJ8Z4nU9F+KzT/mB1Ui37TNOw5RGMy9OiAxrfqzJP8/o eRZ5mil0shweJjz7p6YQ0bPTZB2v/oY2QmwPhTu9BKA=; X-AuditID: c39127d2-a77bc70000001c5e-8c-60def6559516 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 56.B1.07262.556FED06; Fri, 2 Jul 2021 13:19:49 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070213194972-1081546 ; Fri, 2 Jul 2021 13:19:49 +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 v2 6/9] board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95V Date: Fri, 2 Jul 2021 11:19:45 +0000 Message-Id: <20210702111948.2197868-7-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210702111948.2197868-1-t.remmet@phytec.de> References: <20210702111948.2197868-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 02.07.2021 13:19:49, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 02.07.2021 13:19:49 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRoCBSzf0270Eg7OfzCweXvW32HHnPrPF l00T2Cx+rPrCatF+ysfi7d5Odospj9ezO7B7rP14n9Vj3qwTLB47Z91l9zh7Zwejx8Z3O5gC WKO4bFJSczLLUov07RK4Mhbv3c1YcJG/4sqLNawNjOd5uxg5OSQETCS2dB5i7mLk4hAS2MYo cf9KLyuEc4FR4uSvblaQKjYBDYmnK04zgdgiAhISv/qvMoIUMQtcZ5SYvP4EWEJYwFti6uq9 YDaLgIrEuZuXgGwODl4BS4nONbUQ2+QlZl76zg5icwpYSXS2rmQDsYWASn79bAazeQUEJU7O fMICMl9C4AqjxMGDL5ghmoUkTi8+C2YzC2hLLFv4mnkCo8AsJD2zkKQWMDKtYhTKzUzOTi3K zNYryKgsSU3WS0ndxAgM5MMT1S/tYOyb43GIkYmD8RCjBAezkghv6Lx7CUK8KYmVValF+fFF pTmpxYcYpTlYlMR5N/CWhAkJpCeWpGanphakFsFkmTg4pRoYNz9p3BOeE/+x5M+NH5ltO5KO pOz6q3NpY+oHPQULzcdJGoWx6i+PMXscX77PdmnDfabvb09Lq94QMY9ZOyFW3ZjlUhZ37Jq0 gsXnQ4ob5jUr37qu0d2bs1Lqxsxfh0znb8w33raw7ZBKnfi2qYcDIkQn9aTPXH377dWtdRcU 71a81eKw1bknq8RSnJFoqMVcVJwIAOOb36pSAgAA 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 --- 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