[U-Boot] [PATCH 06/19] dm: common: board_r: add call and weak of power_init_dm()

Przemyslaw Marczak p.marczak at samsung.com
Wed Oct 8 22:48:42 CEST 2014


This function call is required to init dm pmic framework
and drivers before call to power_init_board().

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
---
 common/board_r.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/board_r.c b/common/board_r.c
index cd92288..e574130 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -285,6 +285,11 @@ __weak int power_init_board(void)
 	return 0;
 }
 
+__weak int pmic_init_dm(void)
+{
+	return 0;
+}
+
 static int initr_announce(void)
 {
 	debug("Now running in RAM - U-Boot at: %08lx\n", gd->relocaddr);
@@ -775,6 +780,9 @@ init_fnc_t init_sequence_r[] = {
 #ifdef CONFIG_ARCH_EARLY_INIT_R
 	arch_early_init_r,
 #endif
+#ifdef CONFIG_DM_PMIC
+	pmic_init_dm,
+#endif
 	power_init_board,
 #ifndef CONFIG_SYS_NO_FLASH
 	initr_flash,
-- 
1.9.1



More information about the U-Boot mailing list