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>
This commit is contained in:
parent
2e2aafc0f6
commit
b631bc37d9
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user