arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
[platform/kernel/u-boot.git] / arch / arm / cpu / armv7 / ls102xa / timer.c
index d79bf10..c6126b1 100644 (file)
@@ -65,7 +65,7 @@ int timer_init(void)
        /* Enable System Counter */
        writel(SYS_COUNTER_CTRL_ENABLE, &sctr->cntcr);
 
-       freq = COUNTER_FREQUENCY;
+       freq = CONFIG_COUNTER_FREQUENCY;
        asm("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq));
 
        /* Set PL1 Physical Timer Ctrl */