summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8195/timer.c')
-rw-r--r--src/soc/mediatek/mt8195/timer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/timer.c b/src/soc/mediatek/mt8195/timer.c
new file mode 100644
index 0000000000..3fb4be7f2d
--- /dev/null
+++ b/src/soc/mediatek/mt8195/timer.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mmio.h>
+#include <soc/addressmap.h>
+#include <soc/timer.h>
+
+void timer_prepare(void)
+{
+ clrbits32((void *)SYSTIMER_BASE, COMP_FEATURE_MASK);
+ setbits32((void *)SYSTIMER_BASE, COMP_25_MASK);
+}