qemu-e2k/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.c
allwinner-a10-pit.c allwinner-a10-pit: Use ptimer_free() in the finalize function to avoid memleaks 2021-01-08 15:13:38 +00:00
altera_timer.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
arm_mptimer.c
arm_timer.c arm: Update infocenter.arm.com URLs 2021-02-11 11:50:14 +00:00
armv7m_systick.c hw/timer/armv7m_systick: Use clock inputs instead of system_clock_scale 2021-09-01 11:08:20 +01:00
aspeed_timer.c
avr_timer16.c
bcm2835_systmr.c hw/timer/bcm2835: Support the timer COMPARE registers 2020-10-20 16:12:00 +01:00
cadence_ttc.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
cmsdk-apb-dualtimer.c clock: Add ClockEvent parameter to callbacks 2021-03-08 17:20:01 +00:00
cmsdk-apb-timer.c clock: Add ClockEvent parameter to callbacks 2021-03-08 17:20:01 +00:00
digic-timer.c digic-timer: Use ptimer_free() in the finalize function to avoid memleaks 2021-01-08 15:13:38 +00:00
etraxfs_timer.c hw/timer/etraxfs_timer: Convert to 3-phase reset (Resettable interface) 2021-05-13 18:04:50 +02:00
exynos4210_mct.c exynos4210_mct: Use ptimer_free() in the finalize function to avoid memleaks 2021-01-08 15:13:39 +00:00
exynos4210_pwm.c exynos4210_pwm: Use ptimer_free() in the finalize function to avoid memleaks 2021-01-08 15:13:38 +00:00
grlib_gptimer.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
hpet.c nomaintainer: Fix Lesser GPL version number 2020-11-15 17:04:40 +01:00
i8254_common.c
i8254.c hw/i8254: fix vmstate load 2021-03-16 14:30:30 -04:00
ibex_timer.c hw/timer: Initial commit of Ibex Timer 2021-06-24 05:00:12 -07:00
imx_epit.c
imx_gpt.c
Kconfig hw/arm/stellaris: Split stellaris-gptm into its own file 2021-09-01 11:08:20 +01:00
meson.build hw/arm/stellaris: Split stellaris-gptm into its own file 2021-09-01 11:08:20 +01:00
mips_gictimer.c hw: Do not include hw/sysbus.h if it is not necessary 2021-05-02 17:24:50 +02:00
mss-timer.c mss-timer: Use ptimer_free() in the finalize function to avoid memleaks 2021-01-08 15:13:38 +00:00
npcm7xx_timer.c hw/timer/npcm7xx_timer: Use new clock_ns_to_ticks() 2021-03-08 17:20:01 +00:00
nrf51_timer.c
omap_gptimer.c
omap_synctimer.c
pxa2xx_timer.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
renesas_cmt.c
renesas_tmr.c hw/timer/renesas_tmr: Add default-case asserts in read_tcnt() 2021-03-30 14:05:34 +01:00
sh_timer.c hw/timer/sh_timer: Remove superfluous "break" statements 2020-10-27 00:22:56 +01:00
slavio_timer.c hw/timer/slavio_timer: Allow 64-bit accesses 2021-01-06 11:41:37 +00:00
sse-counter.c hw: Do not include hw/irq.h if it is not necessary 2021-05-02 17:24:50 +02:00
sse-timer.c hw/timer/sse-timer: Propagate eventual error in sse_timer_realize() 2021-03-12 12:43:52 +00:00
stellaris-gptm.c hw/timer/stellaris-gptm: Use Clock input instead of system_clock_scale 2021-09-01 11:08:20 +01:00
stm32f2xx_timer.c
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
xilinx_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00