summaryrefslogtreecommitdiffstats
path: root/firmware/timer.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-12-05 14:37:28 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-12-05 14:37:28 +0000
commitf07aa65117a196ecfd5ef097dc432d6f5d49c743 (patch)
tree750485cbfad9072aeddd2753645f556ee4832fe6 /firmware/timer.c
parentf577cd1fdbc24a3ffcd1f96204f862746b2362c5 (diff)
downloadrockbox-f07aa65117a196ecfd5ef097dc432d6f5d49c743.tar.gz
rockbox-f07aa65117a196ecfd5ef097dc432d6f5d49c743.tar.bz2
rockbox-f07aa65117a196ecfd5ef097dc432d6f5d49c743.zip
Sansa AMS: correct VIC registers usage
* Do not use |= on write only registers * Do use it in when setting kernel tick timer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/timer.c')
-rw-r--r--firmware/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/timer.c b/firmware/timer.c
index 0746b05e46..a11cd10b7e 100644
--- a/firmware/timer.c
+++ b/firmware/timer.c
@@ -357,7 +357,7 @@ void timer_unregister(void)
irq_disable_int(IRQ_TIMER1);
#elif CONFIG_CPU == AS3525
TIMER1_CONTROL &= 0x10; /* disable timer 1 (don't modify bit 4) */
- VIC_INT_EN_CLEAR |= INTERRUPT_TIMER1; /* disable interrupt */
+ VIC_INT_EN_CLEAR = INTERRUPT_TIMER1; /* disable interrupt */
CGU_PERI &= ~CGU_TIMER1_CLOCK_ENABLE; /* disable peripheral */
#elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320
__TIMER_UNREGISTER();