* Patches by Reinhard Meyer, 14 Feb 2004:
[platform/kernel/u-boot.git] / cpu / nios / interrupts.c
index 31eabde..450946b 100644 (file)
@@ -128,6 +128,10 @@ int interrupt_init (void)
 
        tmr->control &= ~NIOS_TIMER_ITO;
        tmr->control |= NIOS_TIMER_STOP;
+#if defined(CFG_NIOS_TMRCNT)
+       tmr->periodl = CFG_NIOS_TMRCNT & 0xffff;
+       tmr->periodh = (CFG_NIOS_TMRCNT >> 16) & 0xffff;
+#endif
 #endif
 
        for (vec=0; vec<64; vec++ ) {