From: Simon Glass Date: Wed, 11 Feb 2015 07:52:02 -0700 Subject: [U-Boot] [PATCH v3 09/25] tegra: Add support for setting up a as3722 PMIC In-Reply-To: <1423666338-6946-1-git-send-email-sjg@chromium.org> References: <1423666338-6946-1-git-send-email-sjg@chromium.org> Message-ID: <1423666338-6946-10-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add support for this PMIC which is used on some Tegra124 boards. Signed-off-by: Simon Glass --- Changes in v3: None 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 -- 2.2.0.rc0.207.ga3a616c