From patchwork Sun Feb 1 16:54:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 435267 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id CDE481401AC for ; Mon, 2 Feb 2015 04:02:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 620104A032; Sun, 1 Feb 2015 18:02:34 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XbSgiZMvtmc0; Sun, 1 Feb 2015 18:02:34 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2C414A02C; Sun, 1 Feb 2015 18:02:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A38C74A02E for ; Sun, 1 Feb 2015 18:02:29 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Kb46sOX1RRO for ; Sun, 1 Feb 2015 18:02:29 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yk0-f201.google.com (mail-yk0-f201.google.com [209.85.160.201]) by theia.denx.de (Postfix) with ESMTPS id 406A54A02A for ; Sun, 1 Feb 2015 18:02:27 +0100 (CET) Received: by mail-yk0-f201.google.com with SMTP id q9so7333004ykb.0 for ; Sun, 01 Feb 2015 09:02:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fGZVYgb/Wv9jwccM8+oTa77AYdNNgfjUH/HIVmwyc/k=; b=Qoum9zJMBr7s3WbsWq/LlhMxkhT6SJ0CejO6c7txDdctjFSy46YaVNx9PYz9hC/0Md 4VMaZz+zzkAmDI6WYcWgqbmhBseZUf8BW70Phgk7i77+V5WV04dQQv12oqDTSoBB71uU zr6D6a/5auLAdmE3Vdv8bdQ9mq+6+me17Mnf63jX9S3uO6pXtDPCST1+EWiobI3ow5h5 W2m+I2/RM7bUwiyNVzyNtoDEIobAplA4LHODxWUxGxDThxVeEfS2Y0Kr96eF3QAmVlZD uBRqWBwTrH9eJCSFK9TJJU0eCio/5rdXFkstUXuhMlvGY2k2uU+YdM3d+gDEPbjEXREE 2gQw== X-Gm-Message-State: ALoCoQkAq3vz+Ecm0YgiAkN5PVy0kQINCTCH5nF6zk2vnG7sJlc0bxp3FzwoqxlowgxDrAy7jVNf X-Received: by 10.236.222.161 with SMTP id t31mr6084020yhp.1.1422810146208; Sun, 01 Feb 2015 09:02:26 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id fg3si2677265qcb.1.2015.02.01.09.02.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Feb 2015 09:02:26 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id fI3bfeVk.1; Sun, 01 Feb 2015 09:02:26 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 103192212EE; Sun, 1 Feb 2015 09:54:47 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Sun, 1 Feb 2015 09:54:05 -0700 Message-Id: <1422809661-29227-11-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1422809661-29227-1-git-send-email-sjg@chromium.org> References: <1422809661-29227-1-git-send-email-sjg@chromium.org> Cc: Jimmy Zhang , Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH v2 10/26] tegra: Add support for setting up a as3722 PMIC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Add support for this PMIC which is used on some Tegra124 boards. Signed-off-by: Simon Glass --- Changes in v2: None board/nvidia/common/board.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 0a33bc5..18e1709 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -39,6 +40,7 @@ #include #endif #include +#include #include #include #include "emc.h" @@ -144,6 +146,11 @@ int board_init(void) debug("Memory controller init failed: %d\n", err); # endif # endif /* CONFIG_TEGRA_PMU */ +#ifdef CONFIG_AS3722_POWER + err = as3722_init(NULL); + if (err && err != -ENODEV) + return err; +#endif #endif /* CONFIG_SYS_I2C_TEGRA */ #ifdef CONFIG_USB_EHCI_TEGRA