|
@@ -23,6 +23,14 @@
|
|
|
#include <common.h>
|
|
|
#include <asm/arch/platform.h>
|
|
|
|
|
|
+/*
|
|
|
+ * Initial timer set constants. Nothing complicated, just set for a 1ms
|
|
|
+ * tick.
|
|
|
+ */
|
|
|
+#define TIMER_INTERVAL (TICKS_PER_uSEC * mSEC_1)
|
|
|
+#define TIMER_COUNT (TIMER_INTERVAL / 2)
|
|
|
+#define TIMER_PULSE TIMER_COUNT
|
|
|
+
|
|
|
/*
|
|
|
* Handy KS8695 register access functions.
|
|
|
*/
|
|
@@ -42,14 +50,6 @@ int timer_init (void)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * Initial timer set constants. Nothing complicated, just set for a 1ms
|
|
|
- * tick.
|
|
|
- */
|
|
|
-#define TIMER_INTERVAL (TICKS_PER_uSEC * mSEC_1)
|
|
|
-#define TIMER_COUNT (TIMER_INTERVAL / 2)
|
|
|
-#define TIMER_PULSE TIMER_COUNT
|
|
|
-
|
|
|
ulong get_timer_masked(void)
|
|
|
{
|
|
|
/* Check for timer wrap */
|