All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board_r: re-order the board_early_init_r()
@ 2019-07-24 10:01 Kever Yang
  2019-07-24 10:22 ` Simon Goldschmidt
  2019-07-31 16:53 ` Simon Glass
  0 siblings, 2 replies; 8+ messages in thread
From: Kever Yang @ 2019-07-24 10:01 UTC (permalink / raw)
  To: u-boot

The board_early_init_r() suppose to be called before board_init(),
then the board callback functions in board_r will be:
- board_early_init_r()
- board_init()
- board_late_init()

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 common/board_r.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/board_r.c b/common/board_r.c
index abc31b17b8..c5e33c4654 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -681,6 +681,9 @@ static init_fnc_t init_sequence_r[] = {
 #ifdef CONFIG_DM
 	initr_dm,
 #endif
+#if defined(CONFIG_BOARD_EARLY_INIT_R)
+	board_early_init_r,
+#endif
 #if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV) || \
 	defined(CONFIG_SANDBOX)
 	board_init,	/* Setup chipselects */
@@ -712,9 +715,6 @@ static init_fnc_t init_sequence_r[] = {
 #endif
 #ifdef CONFIG_ADDR_MAP
 	initr_addr_map,
-#endif
-#if defined(CONFIG_BOARD_EARLY_INIT_R)
-	board_early_init_r,
 #endif
 	INIT_FUNC_WATCHDOG_RESET
 #ifdef CONFIG_POST
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-01 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 10:01 [U-Boot] [PATCH] board_r: re-order the board_early_init_r() Kever Yang
2019-07-24 10:22 ` Simon Goldschmidt
2019-07-24 12:22   ` Kever Yang
2019-07-31  7:23     ` Matthias Brugger
2019-07-31  8:58       ` Kever Yang
2019-08-01 16:40         ` Matthias Brugger
2019-08-01 16:47           ` Simon Glass
2019-07-31 16:53 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.