summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-14 21:03:28 -0600
committerTom Warren <twarren@nvidia.com>2015-05-13 09:24:08 -0700
commit346451b5888c4663bccef4c5203357319aa41f99 (patch)
treed63153ea0d9bebc4ba30662464b62d328e1c3c35
parent8277636420970777310c467b554c39d171ef969b (diff)
downloadu-boot-imx-346451b5888c4663bccef4c5203357319aa41f99.zip
u-boot-imx-346451b5888c4663bccef4c5203357319aa41f99.tar.gz
u-boot-imx-346451b5888c4663bccef4c5203357319aa41f99.tar.bz2
tegra: Add support for setting up a as3722 PMIC
Add support for this PMIC which is used on some Tegra124 boards. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r--board/nvidia/common/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 4cc23ef..131802a 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>
@@ -40,6 +41,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"
@@ -145,6 +147,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