[U-Boot] [PATCH] microblaze: Do not call timer init that early

Michal Simek michal.simek at xilinx.com
Wed Jul 11 14:32:09 UTC 2018


Timer needs to be converted to DM but as of now it can't be called so
early because intc controller is not ready. Call it later in board_r.c.
Before this patch timer_init is called twice which is wrong.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 common/board_f.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index e943347ce3df..ccca794fc82b 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -775,7 +775,7 @@ static const init_fnc_t init_sequence_f[] = {
 	/* get CPU and bus clocks according to the environment variable */
 	get_clocks,		/* get CPU and bus clocks (etc.) */
 #endif
-#if !defined(CONFIG_M68K)
+#if !defined(CONFIG_MICROBLAZE) && !defined(CONFIG_M68K)
 	timer_init,		/* initialize timer */
 #endif
 #if defined(CONFIG_BOARD_POSTCLK_INIT)
-- 
1.9.1



More information about the U-Boot mailing list