summaryrefslogtreecommitdiff
path: root/board/samsung/smdk5250/exynos5-dt.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-05-20 06:01:39 -0600
committerMinkyu Kang <mk7.kang@samsung.com>2014-05-28 10:58:19 +0900
commit0f2e739c99fde8cec8378f05907fb4f12ccdfbc0 (patch)
tree85e85ca31207f4f087606f9c9594c7d64edaf7b5 /board/samsung/smdk5250/exynos5-dt.c
parent0b259dc2e849183dfea604fa137bb616e09b319a (diff)
downloadu-boot-imx-0f2e739c99fde8cec8378f05907fb4f12ccdfbc0.zip
u-boot-imx-0f2e739c99fde8cec8378f05907fb4f12ccdfbc0.tar.gz
u-boot-imx-0f2e739c99fde8cec8378f05907fb4f12ccdfbc0.tar.bz2
exynos5: support tps65090 pmic
The TSP65090 is a PMIC on some exynos5 boards. The init function is called for the TPS65090 pmic. If that device is not a part of the device tree (returns -ENODEV) then continue. Otherwise return a failure. Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/smdk5250/exynos5-dt.c')
-rw-r--r--board/samsung/smdk5250/exynos5-dt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/exynos5-dt.c b/board/samsung/smdk5250/exynos5-dt.c
index fbf5850..bce7583 100644
--- a/board/samsung/smdk5250/exynos5-dt.c
+++ b/board/samsung/smdk5250/exynos5-dt.c
@@ -20,6 +20,7 @@
#include <asm/arch/sromc.h>
#include <power/pmic.h>
#include <power/max77686_pmic.h>
+#include <power/tps65090_pmic.h>
#include <tmu.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -161,7 +162,19 @@ int exynos_power_init(void)
#ifdef CONFIG_POWER_MAX77686
ret = max77686_init();
+ if (ret)
+ return ret;
#endif
+#ifdef CONFIG_POWER_TPS65090
+ /*
+ * The TPS65090 may not be in the device tree. If so, it is not
+ * an error.
+ */
+ ret = tps65090_init();
+ if (ret == 0 || ret == -ENODEV)
+ return 0;
+#endif
+
return ret;
}
#endif /* CONFIG_POWER */