aboutsummaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3288/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip/rk3288/timer.h')
-rw-r--r--src/soc/rockchip/rk3288/timer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/rockchip/rk3288/timer.h b/src/soc/rockchip/rk3288/timer.h
index 1820f56da4..9f1fbaf8c5 100644
--- a/src/soc/rockchip/rk3288/timer.h
+++ b/src/soc/rockchip/rk3288/timer.h
@@ -21,10 +21,11 @@
#define __SOC_ROCKCHIP_RK3288_TIMER_H__
#include <inttypes.h>
+#include <timer.h>
#include "addressmap.h"
-#define SYS_CLK_FREQ 24000000
-static const u32 clocks_per_usec = SYS_CLK_FREQ/1000000;
+#define SYS_CLK_FREQ (24*MHz)
+static const u32 clocks_per_usec = SYS_CLK_FREQ/USECS_PER_SEC;
struct rk3288_timer {
u32 timer_load_count0;