qemu/include/hw/timer
Peter Maydell d18fdd69d0 hw/timer/stellaris-gptm: Use Clock input instead of system_clock_scale
The stellaris-gptm timer currently uses system_clock_scale for one of
its timer modes where the timer runs at the CPU clock rate.  Make it
use a Clock input instead.

We don't try to make the timer handle changes in the clock frequency
while the downcounter is running.  This is not a change in behaviour
from the previous system_clock_scale implementation -- we will pick
up the new frequency only when the downcounter hits zero.  Handling
dynamic clock changes when the counter is running would require state
that the current gptm implementation doesn't have.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Message-id: 20210812093356.1946-25-peter.maydell@linaro.org
2021-09-01 11:08:20 +01:00
..
a9gtimer.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
allwinner-a10-pit.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
arm_mptimer.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
armv7m_systick.h hw/timer/armv7m_systick: Add input clocks 2021-09-01 11:08:19 +01:00
aspeed_timer.h Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
avr_timer16.h hw: Remove superfluous includes of hw/hw.h 2021-05-02 17:24:50 +02:00
bcm2835_systmr.h hw/timer/bcm2835: Support the timer COMPARE registers 2020-10-20 16:12:00 +01:00
cmsdk-apb-dualtimer.h arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE 2021-01-29 15:54:44 +00:00
cmsdk-apb-timer.h arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE 2021-01-29 15:54:44 +00:00
digic-timer.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
hpet.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
i8254.h Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
i8254_internal.h i8254: Move PITCommonState/PITCommonClass typedefs to i8254.h 2020-08-27 14:04:54 -04:00
ibex_timer.h hw/timer: Initial commit of Ibex Timer 2021-06-24 05:00:12 -07:00
imx_epit.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
imx_gpt.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
mips_gictimer.h hw/mips_gictimer: provide API for retrieving frequency 2017-02-21 22:24:58 +00:00
mss-timer.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
npcm7xx_timer.h hw/timer: Refactor NPCM7XX Timer to use CLK clock 2021-01-12 21:19:02 +00:00
nrf51_timer.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
renesas_cmt.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
renesas_tmr.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
sse-counter.h hw/timer/sse-counter: Model the SSE Subsystem System Counter 2021-03-08 17:20:01 +00:00
sse-timer.h hw/timer/sse-timer: Model the SSE Subsystem System Timer 2021-03-08 17:20:01 +00:00
stellaris-gptm.h hw/timer/stellaris-gptm: Use Clock input instead of system_clock_scale 2021-09-01 11:08:20 +01:00
stm32f2xx_timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
tmu012.h hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' 2020-06-22 18:37:12 +02:00