mx7_common: initialize generic timer on all CPU's
PATCH 1/1 mx7_common: initialize generic timer on all CPU's
From: Stefan Agner <[email protected]>
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.
---
include/configs/mx7_common.h | 1 + 1 file changed, 1 insertion(+)
include/configs/mx7_common.h +1 -0
@@ -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
Signature · 1 line
2.9.0
PATCH 1/1 mx7_common: initialize generic timer on all CPU's
Hi Stefan
Quoted 6 lines
From: Stefan Agner [mailto:stefan at agner.ch]
Sent: Dienstag, 26. Juli 2016 07:58Use
CONFIG_TIMER_CLK_FREQto 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.
[Krummenacher Max]
Could you elaborate on the 'other CPUs'? The SMP companions Cortex A7 or the Cortex M4. And what exactly is KVM here?
Quoted 20 lines
Signed-off-by Stefan Agner <[email protected]>---
include/configs/mx7_common.h | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/include/configs/mx7_common.hindex 9f80f9f..7295fa6 100644include/configs/mx7_common.h +1
-1@@ -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 --
Quoted 1 line
2.9.0
Thanks & Regards,
Max Krummenacher
PATCH 1/1 mx7_common: initialize generic timer on all CPU's
Hi Max,
Quoted 11 lines · Max Krummenacher
Hi Stefan
Quoted 6 lines
From: Stefan Agner [mailto:stefan at agner.ch]
Sent: Dienstag, 26. Juli 2016 07:58Use
CONFIG_TIMER_CLK_FREQto 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.[Krummenacher Max]
Could you elaborate on the 'other CPUs'? The SMP companions Cortex A7 or the Cortex M4.
This is only for the primary A-Class CPU complex. The generic timer is only available there.
Quoted 1 line
And what exactly is KVM here?
Kernel-based Virtual Machine, the Linux integrated hypervisor. The Cortex-A7 support ARM's virtualization extensions which allow to make use of KVM...
--
Stefan
Quoted 25 lines
Quoted 21 lines
Signed-off-by Stefan Agner <[email protected]>---
include/configs/mx7_common.h | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/include/configs/mx7_common.hindex 9f80f9f..7295fa6 100644include/configs/mx7_common.h +1
-1@@ -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 --Quoted 1 line
2.9.0
Thanks & Regards,
Max Krummenacher
PATCH 1/1 mx7_common: initialize generic timer on all CPU's
Quoted 15 lines · Stefan Agner
Hi Max,
Quoted 11 lines · Max Krummenacher
Hi Stefan
Quoted 6 lines
From: Stefan Agner [mailto:stefan at agner.ch]
Sent: Dienstag, 26. Juli 2016 07:58Use
CONFIG_TIMER_CLK_FREQto 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.[Krummenacher Max]
Could you elaborate on the 'other CPUs'? The SMP companions Cortex A7 or the Cortex M4.
Quoted 9 lines
This is only for the primary A-Class CPU complex. The generic timer is only available there.
Quoted 1 line
And what exactly is KVM here?
Kernel-based Virtual Machine, the Linux integrated hypervisor. The Cortex-A7 support ARM's virtualization extensions which allow to make use of KVM...
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================