From patchwork Wed May 8 06:38:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 1096768 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=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="YDnjgqp5"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44zRjW5pYYz9s55 for ; Wed, 8 May 2019 16:42:23 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 60D31C21E74; Wed, 8 May 2019 06:41:21 +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=RCVD_IN_MSPIKE_H2, 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 3D7F0C21DD7; Wed, 8 May 2019 06:40:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CBAD0C21DB5; Wed, 8 May 2019 06:40:02 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id D8837C21E42 for ; Wed, 8 May 2019 06:39:58 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p21so1702135wmc.0 for ; Tue, 07 May 2019 23:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JBJTIDiXDG+ZBlWUnsylMgThFAH9Ce0Bd0mifG8l8eo=; b=YDnjgqp557ZggJVwSvzXsxSPkD9ysMBYkpIyizeUE/c6MyWPjC6+EcDjjYIThZekRH iWBfbbRZBT+jK0hXsokimxpvwfdh9MDX4LCKchIHV/p774usoIC0phk3rkfzUkZTxvfJ N/XBwcA7ErQq80OCQemA/h2sFR/q9ucCMM1Eo5JP9bMqr0JZzc1y5/Zj9+RW7HblqqME OFqWFFDz5SO+GK4/YU0h73lLjw04ZIChDHxkAKiltVwDIMyaplVkXYd3v3Dc3tpSdi/L 8jH49ftc+w5nOos4PGdyoVTRb3jhutoa+60+ygQ5zDgK4dczmnFCayUyljqK4ysR83rr bLBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JBJTIDiXDG+ZBlWUnsylMgThFAH9Ce0Bd0mifG8l8eo=; b=mqZkn/Ie7h49b6sHgJcEz7ijOYwDwylVZsnM7KsAyNOEXwfQZSDZ0E1e73b2VlVU0N JflWiF7sT9ooLYrzINL96EeyiDFNiVVtr3jMrGANylOHsXmvtJMRI3DBBXC390NsGEoK PjCriq40aFoetYMp3PSWTSrh1MePVSjpavNLmLp414+2yD3mrlIBZGmHOf5EbhdIWJ25 x7MGUjGK2Go3nSamwLGbA/5MXCanVHAUCE9s4Q7G2WW1yAVitrKlk5wOXRn2yRw6tXgQ zzm/cOps6kpMloWlv1uBuTarWHEewdDMyMfhlqCCvgWa773liesvAc7PWrb9KgHDhcJN cx7Q== X-Gm-Message-State: APjAAAWNkeeK8qI5lR0HpyoITKqJB3VF/MxBc2liiRiJgtE2xxXl/54M L6jRDmUC0yfICsWvdVXkgjAd/Q== X-Google-Smtp-Source: APXvYqz2yyCL8JFLlP5SCt5HJKYVy5iYqS6vi6O/OLGiSN7ykFa6JSfR5yEOHdUJrrnkyWlf5MQpVQ== X-Received: by 2002:a05:600c:3d1:: with SMTP id z17mr1656953wmd.27.1557297598453; Tue, 07 May 2019 23:39:58 -0700 (PDT) Received: from localhost.localdomain (li1415-253.members.linode.com. [139.162.148.253]) by smtp.gmail.com with ESMTPSA id e8sm1539086wrc.34.2019.05.07.23.39.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 May 2019 23:39:57 -0700 (PDT) From: Jun Nie To: festevam@gmail.com, otavio@ossystems.com.br, peng.fan@nxp.com, vanessa.maegima@nxp.com, bryan.odonoghue@linaro.org, u-boot@lists.denx.de Date: Wed, 8 May 2019 14:38:36 +0800 Message-Id: <1557297516-18616-9-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557297516-18616-1-git-send-email-jun.nie@linaro.org> References: <1557297516-18616-1-git-send-email-jun.nie@linaro.org> Subject: [U-Boot] [PATCH v4 8/8] pico-imx7d: enable boot without PMIC 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If PMIC is not probed successfully, it is still OK to boot with default configuration although power is not optimized. Default voltage of SW1A/SW1B is 1.1V/1.0V for PC32PF3000A1EP on pico according to table 42 of spec of PF3000 ver 9.0. Default mode of SW1A/SW1B is APS as expected(table 47). Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/pico-imx7d.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index 5b357f2..e3d75e5 100644 --- a/board/technexion/pico-imx7d/pico-imx7d.c +++ b/board/technexion/pico-imx7d/pico-imx7d.c @@ -85,8 +85,11 @@ int power_init_board(void) p = pmic_get("PFUZE3000"); ret = pmic_probe(p); - if (ret) - return ret; + if (ret) { + printf("Warning: Cannot find PMIC PFUZE3000\n"); + printf("\tPower consumption is not optimized.\n"); + return 0; + } pmic_reg_read(p, PFUZE3000_DEVICEID, ®); pmic_reg_read(p, PFUZE3000_REVID, &rev_id);