summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_jz47xx/timer-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/timer-target.h')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/timer-target.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/timer-target.h b/firmware/target/mips/ingenic_jz47xx/timer-target.h
index 202f941ce1..40942d4b4c 100644
--- a/firmware/target/mips/ingenic_jz47xx/timer-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/timer-target.h
@@ -22,7 +22,9 @@
22#ifndef __TIMER_H_ 22#ifndef __TIMER_H_
23#define __TIMER_H_ 23#define __TIMER_H_
24 24
25#define TIMER_FREQ (27000000) 25#include "config.h"
26
27#define TIMER_FREQ (CFG_EXTAL) /* For full precision! */
26 28
27bool __timer_set(long cycles, bool set); 29bool __timer_set(long cycles, bool set);
28bool __timer_register(void); 30bool __timer_register(void);