Axel Heider 8d71beaf1e 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>
2023-01-05 12:14:43 +00:00
..
2022-12-21 07:32:24 -05:00
2022-12-21 06:35:28 -05:00
2022-12-21 06:35:28 -05:00
2022-10-31 11:32:07 +01:00
2022-12-21 06:35:28 -05:00
2022-12-21 18:08:09 +00:00
2022-09-04 07:02:56 +01:00
2022-10-27 11:34:31 +01:00
2022-12-21 06:35:28 -05:00
2022-10-24 11:20:15 +02:00