[U-Boot,v2] armv8: configs: ls1012a: correct the generic timer frequency issue

Message ID 20171012062926.3841-1-andy.tang@nxp.com
State Accepted
Delegated to: York Sun
Headers show
Series
  • [U-Boot,v2] armv8: configs: ls1012a: correct the generic timer frequency issue
Related show

Commit Message

Yuantian Tang Oct. 12, 2017, 6:29 a.m.
From: Yuantian Tang <andy.tang@nxp.com>

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.

Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
---
v2:
    - refine the commit message

 include/configs/ls1012a_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

York Sun Oct. 30, 2017, 6:32 p.m. | #1
On 10/11/2017 11:47 PM, andy.tang@nxp.com wrote:
> From: Yuantian Tang <andy.tang@nxp.com>
> 
> 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.
> 
> Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
> ---
> v2:
>     - refine the commit message

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

York

Patch

diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 096799eb64..a4e78f335f 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -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