summary refs log tree commit diff stats
path: root/hw/timer/mss-timer.c
diff options
context:
space:
mode:
authorAxel Heider <axel.heider@hensoldt.net>2022-11-20 20:05:25 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-05 12:14:43 +0000
commit8d71beaf1e6b49266c4d98286f4ce6c874c998ae (patch)
treea5419c7a8bccb25b22841564caf8f045ed6660d4 /hw/timer/mss-timer.c
parente662449aa670bff938a011220593dd059b75e84b (diff)
downloadfocaccia-qemu-8d71beaf1e6b49266c4d98286f4ce6c874c998ae.tar.gz
focaccia-qemu-8d71beaf1e6b49266c4d98286f4ce6c874c998ae.zip
hw/timer/imx_epit: fix compare timer handling
- fix #1263 for CR writes
- rework compare time handling
  - The compare timer has to run even if CR.OCIEN is not set,
    as SR.OCIF must be updated.
  - The compare timer fires exactly once when the
    compare value is less than the current value, but the
    reload values is less than the compare value.
  - The compare timer will never fire if the reload value is
    less than the compare value. Disable it in this case.

Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
[PMM: fixed minor style nits]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/mss-timer.c')
0 files changed, 0 insertions, 0 deletions