OSDN Git Service

hw/timer/imx_epit: remove explicit fields cnt and freq
authorAxel Heider <axel.heider@hensoldt.net>
Tue, 25 Oct 2022 10:33:42 +0000 (12:33 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Jan 2023 12:14:43 +0000 (12:14 +0000)
commite662449aa670bff938a011220593dd059b75e84b
treeb805fd12b4275ff98750c94495ba1bde070f4958
parent793a6ea0753562ab74ef86617415d3b50b9ec308
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>
hw/timer/imx_epit.c
include/hw/timer/imx_epit.h