qemu-e2k/include/hw/timer
Cédric Le Goater 9b945a9ee3 aspeed/timer: use the APB frequency from the SCU
The timer controller can be driven by either an external 1MHz clock or
by the APB clock. Today, the model makes the assumption that the APB
frequency is always set to 24MHz but this is incorrect.

The AST2400 SoC on the palmetto machines uses a 48MHz input clock
source and the APB can be set to 48MHz. The consequence is a general
system slowdown. The QEMU machines using the AST2500 SoC do not seem
impacted today because the APB frequency is still set to 24MHz.

We fix the timer frequency for all SoCs by linking the Timer model to
the SCU model. The APB frequency driving the timers is now the one
configured for the SoC.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 20180622075700.5923-4-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-06-26 17:50:42 +01:00
..
a9gtimer.h
allwinner-a10-pit.h
arm_mptimer.h
armv7m_systick.h armv7m: Split systick out from NVIC 2017-02-28 16:18:49 +00:00
aspeed_timer.h aspeed/timer: use the APB frequency from the SCU 2018-06-26 17:50:42 +01:00
cmsdk-apb-timer.h hw/char/cmsdk-apb-timer: Implement CMSDK APB timer device 2017-07-17 13:36:08 +01:00
digic-timer.h
hpet.h
i8254_internal.h hw/timer/i8254: rename pit_init() -> i8254_pit_init() 2017-12-18 17:07:02 +03:00
i8254.h hw/timer/i8254: rename pit_init() -> i8254_pit_init() 2017-12-18 17:07:02 +03:00
imx_epit.h
imx_gpt.h i.MX: Add i.MX7 GPT variant 2018-02-09 10:40:30 +00:00
m48t59.h
mc146818rtc_regs.h qtest: add rtc periodic timer test 2017-06-06 20:18:35 +02:00
mc146818rtc.h hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init() 2017-12-18 17:07:02 +03:00
mips_gictimer.h
mss-timer.h msf2: Add Smartfusion2 System timer 2017-09-21 16:36:56 +01:00
stm32f2xx_timer.h
sun4v-rtc.h
xlnx-zynqmp-rtc.h xlnx-zynqmp-rtc: Add basic time support 2018-03-02 10:45:34 +00:00