Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 713B3C433EF for ; Wed, 13 Oct 2021 13:40:38 +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 86F4E60698 for ; Wed, 13 Oct 2021 13:40:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 86F4E60698 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3586381FEC; Wed, 13 Oct 2021 15:40:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634132435; bh=UV/3tr3C/hhTEpvan1W2ibkrvwN+1jF6WJb5wbgMzkw=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Mgga0B/Hoxj86RGzGKhamsG2oSE7vDko+iwku8iwMoDbtlN3P5kovtUl76SQ6KNWg AT13NJOZBHjgED8sSWjIJUdb/L1fSLS9miX5NVH3AqRsqBZEA/4Io9l3Gfaka4zYWS DPxnTYS917t4HtJUZdy8+Dg4MNpMU9VBJQDuIbkOE/7oebTTpwChpko3zAri1qEeo0 nkzeCl7SrWMdHt/UXiFjMKUxbrcie6KQz7dbj9mLsSEViGGztANaLS+bGafdlJUxkl rwD+Wn5FRV/EVah714tWrfXajy3Tmv4EaAHheMXjO/CFSUmRQzjNJELfSjLRsD3xIL +KhJmvxQWz0kA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1DD9680FBE; Wed, 13 Oct 2021 15:40:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634132433; bh=UV/3tr3C/hhTEpvan1W2ibkrvwN+1jF6WJb5wbgMzkw=; h=From:To:Cc:Subject:Date:From; b=QA+SBH8jfX87mYbOBgO/XXHpUI3M8aEI4oDxWymMmLbZ9IECPu0ur1vg8GnKXjCqu 15GhefVE9VwiDAhi3iuVS9As8R1loHSN41GIviJ5CC2csDn0bVrjze/GCFAevImm0j rONwL78TMqWTm13oVifXenks4g9wEDrM8t3DW8gnns83Xy059pLktUwvUhIfUDWdsK 4p4tjj5hxisKMpWO1MJCVxBZG4fAoyS948RP/xvA3/kPT0G+mui8dArO/7Ybt7b8Dc KYAfuUMDScCmeF20iBxdTORxaBzZIHZf9J0d/lXvvzk31oR12btYqmz+SW+NCRudl+ EjuZRczlsDbtw== From: Lukasz Majewski To: Stefano Babic Cc: u-boot@lists.denx.de, Lukasz Majewski Subject: [PATCH] mxs: power: Change sequence of enabling DCDC switches Date: Wed, 13 Oct 2021 15:40:12 +0200 Message-Id: <20211013134012.9204-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The imx28 uses following voltage supplies hierarchy: VDD_5V (VDD_BAT) -> VDDIO -> VDDA -> VDDMEM \-----> VDDD One shall first enable DCDC on the parent source (VDDIO) and then follow with its children. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index 35ea71a5ba8..c33170f06d3 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c @@ -627,11 +627,11 @@ static void mxs_power_enable_4p2(void) mxs_power_init_dcdc_4p2_source(); - writel(vdddctrl, &power_regs->hw_power_vdddctrl); + writel(vddioctrl, &power_regs->hw_power_vddioctrl); early_delay(20); writel(vddactrl, &power_regs->hw_power_vddactrl); early_delay(20); - writel(vddioctrl, &power_regs->hw_power_vddioctrl); + writel(vdddctrl, &power_regs->hw_power_vdddctrl); /* * Check if FET is enabled on either powerout and if so, -- 2.20.1