From: Simon Glass Date: Wed, 15 Apr 2015 03:03:28 +0000 (-0600) Subject: tegra: Add support for setting up a as3722 PMIC X-Git-Tag: v2015.07-rc2~245^2~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=346451b5888c4663bccef4c5203357319aa41f99;p=oweals%2Fu-boot.git 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 Signed-off-by: Tom Warren --- diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 4cc23ef616..131802ae62 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -40,6 +41,7 @@ #include #endif #include +#include #include #include #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