From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.8 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,UNWANTED_LANGUAGE_BODY, 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 72E24C11F68 for ; Fri, 2 Jul 2021 11:21:14 +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 CA559613F7 for ; Fri, 2 Jul 2021 11:21:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA559613F7 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 63B4A82979; Fri, 2 Jul 2021 13:20:28 +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="W/LXwsXj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 76DAF828F8; Fri, 2 Jul 2021 13:20:19 +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 3725F82916 for ; Fri, 2 Jul 2021 13:19:50 +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=1625224790; x=1627816790; 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=HTxotWQUxq0A3JRjVG48KpwjUxYL+7a8CbPdsHY5pqU=; b=W/LXwsXjBz31mYLthF2zK8c/ku5bQrj+vbM2wO5U29Dg7lUMFiRBX0DasBN9F4Dr DGnORePwukSypjMkLCxa2GYkRWuyg1gWUWJaUOhctgN2tPKiTfEGZUhBTmn5MGBI MqrZvY7CnstrErR+pwP7Bt5igNOQsYUYT85OyCeKhqs=; X-AuditID: c39127d2-a9fbd70000001c5e-8d-60def656939b Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id D6.B1.07262.656FED06; Fri, 2 Jul 2021 13:19:50 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070213194978-1081547 ; 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 7/9] board: phytec: phycore-imx8mp: Enable DVS1 control Date: Fri, 2 Jul 2021 11:19:46 +0000 Message-Id: <20210702111948.2197868-8-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:50, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 02.07.2021 13:19:50 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRoCBSzfs270Eg7dn2S0eXvW32HHnPrPF l00T2Cx+rPrCatF+ysfi7d5Odospj9ezO7B7rP14n9Vj3qwTLB47Z91l9zh7Zwejx8Z3O5gC WKO4bFJSczLLUov07RK4Mg7M6mEuOMBecfzVJpYGxr1sXYycHBICJhKdN7vZuxi5OIQEtjFK tB3+xwjhXGCU2PLzPTtIFZuAhsTTFaeZQGwRAQmJX/1XwYqYBa4zSkxefwIsISzgJfG/cxMz iM0ioCLx68JcoGYODl4BS4lrv00gtslLzLz0HWwmp4CVRGfrSrArhIBKfv1sBrN5BQQlTs58 wgIyX0LgCqPEy+0r2SGahSROLz4LNp9ZQFti2cLXzBMYBWYh6ZmFJLWAkWkVo1BuZnJ2alFm tl5BRmVJarJeSuomRmAgH56ofmkHY98cj0OMTByMhxglOJiVRHhD591LEOJNSaysSi3Kjy8q zUktPsQozcGiJM67gbckTEggPbEkNTs1tSC1CCbLxMEp1cCotelZt4bn8rMfm67tNLeacjXi z77AkkfPjxd9FZTzPdSzaNK98C3/e9fOlbHe57E/Rb7kb3hEKGM1zyUJ95UWk8Kz5vsrL+Zk XSDR6rLi/Dulaazl2zdUL2SMq9u5KO+F/a0LPJ+s7vmsvPFLZvZy39Dvh2XlWbbsFFj7cLHb 0qXHnshNbfC5pcRSnJFoqMVcVJwIAJd5va1SAgAA 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 Enable DVS1 control through PMIC=5FSTBY=5FREQ. Signed-off-by: Teresa Remmet --- board/phytec/phycore=5Fimx8mp/spl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore=5Fimx8mp/spl.c b/board/phytec/phycore=5Fi= mx8mp/spl.c index 815ca9badcba..19c486e55174 100644 --- a/board/phytec/phycore=5Fimx8mp/spl.c +++ b/board/phytec/phycore=5Fimx8mp/spl.c @@ -66,7 +66,11 @@ int power=5Finit=5Fboard(void) pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1OUT=5FDVS0, 0x1C); pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK2OUT=5FDVS0, 0x1C); =20 - /* set WDOG=5FB=5FCFG to cold reset */ + /* Set BUCK1 DVS1 to suspend controlled through PMIC=5FSTBY=5FREQ */ + pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1OUT=5FDVS1, 0x14); + pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1CTRL, 0x59); + + /* Set WDOG=5FB=5FCFG to cold reset */ pmic=5Freg=5Fwrite(p, PCA9450=5FRESET=5FCTRL, 0xA1); =20 return 0; --=20 2.25.1