Skip to contentSkip to conversation

armv8: configs: ls1012a: correct the generic timer frequency issue

PATCH New andy.tang at nxp.com 2 participants 2 messages Oct 12, 2017 – Oct 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 armv8: configs: ls1012a: correct the generic timer frequency issue

From: Yuantian Tang <[email protected]>

On ls1012a soc, core clock source frequency is 100Mhz. Generic timer frequency is derived from core clock source divided by 4, which is 25Mhz. So assign timer frequency to 25Mhz here.

---
v2:
- refine the commit message

 include/configs/ls1012a_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/ls1012a_common.h +1 -1
index 096799eb64..a4e78f335f 100644
@@ -32,7 +32,7 @@
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x880000000ULL
 
 /* Generic Timer Definitions */
-#define COUNTER_FREQUENCY		CONFIG_SYS_CLK_FREQ/4	/* 25MHz */
+#define COUNTER_FREQUENCY		25000000	/* 25MHz */
 
 /* CSU */
 #define CONFIG_LAYERSCAPE_NS_ACCESS
Signature · 1 line
2.14.1
#1 lore raw

PATCH v2 1/1 armv8: configs: ls1012a: correct the generic timer frequency issue

Quoted 10 lines · andy.tang at nxp.com

From: Yuantian Tang <[email protected]>

On ls1012a soc, core clock source frequency is 100Mhz. Generic timer frequency is derived from core clock source divided by 4, which is 25Mhz. So assign timer frequency to 25Mhz here.

---
v2:
- refine the commit message

Minor change to commit message.
Applied to fsl-qoriq master. Thanks.

York