projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
[platform/kernel/u-boot.git]
/
arch
/
arm
/
cpu
/
armv7
/
ls102xa
/
timer.c
diff --git
a/arch/arm/cpu/armv7/ls102xa/timer.c
b/arch/arm/cpu/armv7/ls102xa/timer.c
index
d79bf10
..
c6126b1
100644
(file)
--- a/
arch/arm/cpu/armv7/ls102xa/timer.c
+++ b/
arch/arm/cpu/armv7/ls102xa/timer.c
@@
-65,7
+65,7
@@
int timer_init(void)
/* Enable System Counter */
writel(SYS_COUNTER_CTRL_ENABLE, &sctr->cntcr);
- freq = COUNTER_FREQUENCY;
+ freq = CO
NFIG_CO
UNTER_FREQUENCY;
asm("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq));
/* Set PL1 Physical Timer Ctrl */