| 25d75817 | 20-Apr-2023 |
Axel Heider <axel.heider@hensoldt.net> |
hw/timer/imx_epit: fix limit check
Fix the limit check. If the limit is less than the compare value, the timer can never reach this value, thus it will never fire.
Resolves: https://gitlab.com/qemu
hw/timer/imx_epit: fix limit check
Fix the limit check. If the limit is less than the compare value, the timer can never reach this value, thus it will never fire.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1491 Signed-off-by: Axel Heider <axel.heider@hensoldt.net> Message-id: 168070611775.20412.2883242077302841473-2@git.sr.ht Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
| 8d71beaf | 20-Nov-2022 |
Axel Heider <axel.heider@hensoldt.net> |
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.
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>
show more ...
|
| e662449a | 25-Oct-2022 |
Axel Heider <axel.heider@hensoldt.net> |
hw/timer/imx_epit: remove explicit fields cnt and freq
The CNT register is a read-only register. There is no need to store it's value, it can be calculated on demand. The calculated frequency is nee
hw/timer/imx_epit: remove explicit fields cnt and freq
The CNT register is a read-only register. There is no need to store it's value, it can be calculated on demand. The calculated frequency is needed temporarily only.
Note that this is a migration compatibility break for all boards types that use the EPIT peripheral.
Signed-off-by: Axel Heider <axel.heider@hensoldt.net> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|