aboutsummaryrefslogtreecommitdiff
path: root/include/hw/timer
diff options
context:
space:
mode:
authorAxel Heider <axel.heider@hensoldt.net>2022-10-25 12:33:42 +0200
committerPeter Maydell <peter.maydell@linaro.org>2023-01-05 12:14:43 +0000
commite662449aa670bff938a011220593dd059b75e84b (patch)
treeb805fd12b4275ff98750c94495ba1bde070f4958 /include/hw/timer
parent793a6ea0753562ab74ef86617415d3b50b9ec308 (diff)
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>
Diffstat (limited to 'include/hw/timer')
-rw-r--r--include/hw/timer/imx_epit.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/timer/imx_epit.h b/include/hw/timer/imx_epit.h
index 783eaf0c3a..79aff0cec2 100644
--- a/include/hw/timer/imx_epit.h
+++ b/include/hw/timer/imx_epit.h
@@ -74,9 +74,7 @@ struct IMXEPITState {
uint32_t sr;
uint32_t lr;
uint32_t cmp;
- uint32_t cnt;
- uint32_t freq;
qemu_irq irq;
};