[PATCH V3 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY for i.MX

Peng Fan (OSS) peng.fan at oss.nxp.com
Wed Apr 13 04:01:13 CEST 2022


From: Peng Fan <peng.fan at nxp.com>

i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz,
so set default value for them.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d77186b77b4..b633cc9c943 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -23,6 +23,7 @@ config COUNTER_FREQUENCY
 	int "Timer clock frequency"
 	depends on ARM64 || CPU_V7A
 	default 0
+	default 8000000 if IMX8 || MX7 || MX6UL || MX6ULL
 	help
 	  For platforms with ARMv8-A and ARMv7-A which features a system
 	  counter, those platforms needs software to program the counter
-- 
2.35.1



More information about the U-Boot mailing list