arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
[platform/kernel/u-boot.git] / arch / arm / cpu / armv7 / sunxi / psci.c
index 1ac50f5..d1bd6b9 100644 (file)
@@ -57,7 +57,7 @@ static u32 __secure cp15_read_cntp_ctl(void)
        return val;
 }
 
-#define ONE_MS (COUNTER_FREQUENCY / 1000)
+#define ONE_MS (CONFIG_COUNTER_FREQUENCY / 1000)
 
 static void __secure __mdelay(u32 ms)
 {