hw/exynos4210_pwm.c: Fix STOP status in tick handler.
authorEvgeny Voevodin <e.voevodin@samsung.com>
Tue, 26 Jun 2012 09:24:15 +0000 (13:24 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Wed, 27 Jun 2012 10:46:50 +0000 (14:46 +0400)
START/STOP bit was not cleaned correctly.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
hw/exynos4210_pwm.c

index 6243e59c48f57dc4a95740f5cbbb7c0413c86804..0c228280a91dd9d237671db2cadcda7d69ae5c6e 100644 (file)
@@ -200,7 +200,7 @@ static void exynos4210_pwm_tick(void *opaque)
         ptimer_run(p->timer[id].ptimer, 1);
     } else {
         /* stop timer, set status to STOP, see Basic Timer Operation */
-        p->reg_tcon = ~TCON_TIMER_START(id);
+        p->reg_tcon &= ~TCON_TIMER_START(id);
         ptimer_stop(p->timer[id].ptimer);
     }
 }