projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Patches by Reinhard Meyer, 14 Feb 2004:
[platform/kernel/u-boot.git]
/
cpu
/
nios
/
interrupts.c
diff --git
a/cpu/nios/interrupts.c
b/cpu/nios/interrupts.c
index
31eabde
..
450946b
100644
(file)
--- a/
cpu/nios/interrupts.c
+++ b/
cpu/nios/interrupts.c
@@
-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++ ) {