[U-Boot] [PATCH] mx7_common: initialize generic timer on all CPU's

Stefan Agner stefan at agner.ch
Tue Jul 26 07:57:47 CEST 2016


From: Stefan Agner <stefan.agner at toradex.com>

Use CONFIG_TIMER_CLK_FREQ to let the non-secure init code initialize
the generic timer on all CPU's. This allows to make use of the timer
freuquency register also on other CPU than the start CPU which is
important for KVM.

Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
---

 include/configs/mx7_common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h
index 9f80f9f..7295fa6 100644
--- a/include/configs/mx7_common.h
+++ b/include/configs/mx7_common.h
@@ -21,6 +21,7 @@
 #define CONFIG_MXC_GPT_HCLK
 #define CONFIG_SYSCOUNTER_TIMER
 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
+#define CONFIG_TIMER_CLK_FREQ CONFIG_SC_TIMER_CLK
 #define CONFIG_SYS_FSL_CLK
 
 #define CONFIG_SYS_BOOTM_LEN	0x1000000
-- 
2.9.0



More information about the U-Boot mailing list