diff options
author | Evgeny Voevodin | 2012-07-04 12:43:31 +0200 |
---|---|---|
committer | Peter Maydell | 2012-07-04 12:43:31 +0200 |
commit | b631bc37d97344bb35f54d6af6a12df35a6764d8 (patch) | |
tree | 774e692992373d7ca9b9d307eb6f21f1746dcbdb /hw/exynos4210_pwm.c | |
parent | ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel. (diff) | |
download | qemu-b631bc37d97344bb35f54d6af6a12df35a6764d8.tar.gz qemu-b631bc37d97344bb35f54d6af6a12df35a6764d8.tar.xz qemu-b631bc37d97344bb35f54d6af6a12df35a6764d8.zip |
hw/exynos4210_pwm.c: Fix STOP status in tick handler.
START/STOP bit was not cleaned correctly.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/exynos4210_pwm.c')
-rw-r--r-- | hw/exynos4210_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/exynos4210_pwm.c b/hw/exynos4210_pwm.c index 6243e59c48..0c228280a9 100644 --- a/hw/exynos4210_pwm.c +++ b/hw/exynos4210_pwm.c @@ -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); } } |