diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-14 01:47:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-20 00:18:02 -0400 |
commit | 8bd8deead7f00006781c366887da8cf6a02c69ce (patch) | |
tree | 79a964a943a01990ba676d4a5cc49988a82fa26d /arch/sparc/include | |
parent | 45bb5a7cbfa28dedc07730d6ecedbd574faf5459 (diff) |
sparc32: Use PROM device probing for sun4c timers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/timer_32.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/sparc/include/asm/timer_32.h b/arch/sparc/include/asm/timer_32.h index 860a05ef4561..351f257eec01 100644 --- a/arch/sparc/include/asm/timer_32.h +++ b/arch/sparc/include/asm/timer_32.h | |||
@@ -11,30 +11,6 @@ | |||
11 | #include <asm/system.h> /* For SUN4M_NCPUS */ | 11 | #include <asm/system.h> /* For SUN4M_NCPUS */ |
12 | #include <asm/btfixup.h> | 12 | #include <asm/btfixup.h> |
13 | 13 | ||
14 | /* Timer structures. The interrupt timer has two properties which | ||
15 | * are the counter (which is handled in do_timer in sched.c) and the limit. | ||
16 | * This limit is where the timer's counter 'wraps' around. Oddly enough, | ||
17 | * the sun4c timer when it hits the limit wraps back to 1 and not zero | ||
18 | * thus when calculating the value at which it will fire a microsecond you | ||
19 | * must adjust by one. Thanks SUN for designing such great hardware ;( | ||
20 | */ | ||
21 | |||
22 | /* Note that I am only going to use the timer that interrupts at | ||
23 | * Sparc IRQ 10. There is another one available that can fire at | ||
24 | * IRQ 14. Currently it is left untouched, we keep the PROM's limit | ||
25 | * register value and let the prom take these interrupts. This allows | ||
26 | * L1-A to work. | ||
27 | */ | ||
28 | |||
29 | struct sun4c_timer_info { | ||
30 | __volatile__ unsigned int cur_count10; | ||
31 | __volatile__ unsigned int timer_limit10; | ||
32 | __volatile__ unsigned int cur_count14; | ||
33 | __volatile__ unsigned int timer_limit14; | ||
34 | }; | ||
35 | |||
36 | #define SUN_TIMER_PHYSADDR 0xf3000000 | ||
37 | |||
38 | extern __volatile__ unsigned int *master_l10_counter; | 14 | extern __volatile__ unsigned int *master_l10_counter; |
39 | extern __volatile__ unsigned int *master_l10_limit; | 15 | extern __volatile__ unsigned int *master_l10_limit; |
40 | 16 | ||