diff options
author | Greg Ungerer <greg.ungerer@opengear.com> | 2011-09-09 22:19:10 +1000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-10 00:12:13 +0200 |
commit | 3a52cfa5cc402c06bb80ce46eedb5496150d4046 (patch) | |
tree | 9e9412fb3a0b0d09ec63abfc1a23c472e47cce4a /arch/arm/cpu/arm920t/ks8695 | |
parent | 041c542219af7f31c372d89b4c7c6f4c8064a8ce (diff) |
KS8695: move TIMER_ definitions before code use
Move the TIMER_ definitions before they are used in KS8695 timer.c code.
Fixes:
timer.c: In function ‘timer_init’:
timer.c:37: error: ‘TIMER_COUNT’ undeclared (first use in this function)
timer.c:37: error: (Each undeclared identifier is reported only once
timer.c:37: error: for each function it appears in.)
timer.c:38: error: ‘TIMER_PULSE’ undeclared (first use in this function)
Signed-off-by: Greg Ungerer <greg.ungerer@opengear.com>
Diffstat (limited to 'arch/arm/cpu/arm920t/ks8695')
-rw-r--r-- | arch/arm/cpu/arm920t/ks8695/timer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/cpu/arm920t/ks8695/timer.c b/arch/arm/cpu/arm920t/ks8695/timer.c index 234fe913e9..0852502f91 100644 --- a/arch/arm/cpu/arm920t/ks8695/timer.c +++ b/arch/arm/cpu/arm920t/ks8695/timer.c @@ -24,6 +24,14 @@ #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. */ #define ks8695_read(a) *((volatile ulong *) (KS8695_IO_BASE + (a))) @@ -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 */ |