Skip to contentSkip to conversation

: sparc32: Use PROM device probing for sun4c timers.

PATCH New David Miller 1 participant 1 message Sep 19, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 10/13 : sparc32: Use PROM device probing for sun4c timers.

sparc32: Use PROM device probing for sun4c timers.

---
 arch/sparc/include/asm/timer_32.h |   24 ---------------
 arch/sparc/kernel/sun4c_irq.c     |   59 ++++++++++++++++++++++++------------
 2 files changed, 39 insertions(+), 44 deletions(-)
arch/sparc/include/asm/timer_32.h +0 -24
index 860a05e..351f257 100644
@@ -11,30 +11,6 @@
 #include <asm/system.h>  /* For SUN4M_NCPUS */
 #include <asm/btfixup.h>
 
-/* Timer structures. The interrupt timer has two properties which
- * are the counter (which is handled in do_timer in sched.c) and the limit.
- * This limit is where the timer's counter 'wraps' around. Oddly enough,
- * the sun4c timer when it hits the limit wraps back to 1 and not zero
- * thus when calculating the value at which it will fire a microsecond you
- * must adjust by one.  Thanks SUN for designing such great hardware ;(
- */
-
-/* Note that I am only going to use the timer that interrupts at
- * Sparc IRQ 10.  There is another one available that can fire at
- * IRQ 14. Currently it is left untouched, we keep the PROM's limit
- * register value and let the prom take these interrupts.  This allows
- * L1-A to work.
- */
-
-struct sun4c_timer_info {
-  __volatile__ unsigned int cur_count10;
-  __volatile__ unsigned int timer_limit10;
-  __volatile__ unsigned int cur_count14;
-  __volatile__ unsigned int timer_limit14;
-};
-
-#define SUN_TIMER_PHYSADDR   0xf3000000
-
 extern __volatile__ unsigned int *master_l10_counter;
 extern __volatile__ unsigned int *master_l10_limit;
 
arch/sparc/kernel/sun4c_irq.c +39 -20

87 lines not on this page · raw message

Signature · 1 line
1.5.6.5