arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
[platform/kernel/u-boot.git] / arch / arm / mach-rockchip / spl.c
index eda2248..30be640 100644 (file)
@@ -88,7 +88,7 @@ __weak void rockchip_stimer_init(void)
                return;
 #ifndef CONFIG_ARM64
        asm volatile("mcr p15, 0, %0, c14, c0, 0"
-                    : : "r"(COUNTER_FREQUENCY));
+                    : : "r"(CONFIG_COUNTER_FREQUENCY));
 #endif
        writel(0, CONFIG_ROCKCHIP_STIMER_BASE + TIMER_CONTROL_REG);
        writel(0xffffffff, CONFIG_ROCKCHIP_STIMER_BASE);