[U-Boot] [PATCH v2 10/26] tegra: Add support for setting up a as3722 PMIC

Simon Glass sjg at chromium.org
Sun Feb 1 17:54:05 CET 2015


Add support for this PMIC which is used on some Tegra124 boards.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

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 <common.h>
 #include <dm.h>
+#include <errno.h>
 #include <ns16550.h>
 #include <linux/compiler.h>
 #include <asm/io.h>
@@ -39,6 +40,7 @@
 #include <asm/arch-tegra/mmc.h>
 #endif
 #include <asm/arch-tegra/xusb-padctl.h>
+#include <power/as3722.h>
 #include <i2c.h>
 #include <spi.h>
 #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



More information about the U-Boot mailing list