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 Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
allwinner-a10-pit.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
arm_mptimer.h arm_mptimer: Convert to use ptimer 2016-10-24 16:26:53 +01:00
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 Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
hpet.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
i8254.h hw/timer/i8254: rename pit_init() -> i8254_pit_init() 2017-12-18 17:07:02 +03:00
i8254_internal.h hw/timer/i8254: rename pit_init() -> i8254_pit_init() 2017-12-18 17:07:02 +03:00
imx_epit.h i.MX: Split the CCM class into an abstract base class and a concrete class 2015-12-17 13:37:15 +00:00
imx_gpt.h i.MX: Add i.MX7 GPT variant 2018-02-09 10:40:30 +00:00
m48t59.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
mc146818rtc.h hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init() 2017-12-18 17:07:02 +03:00
mc146818rtc_regs.h qtest: add rtc periodic timer test 2017-06-06 20:18:35 +02:00
mips_gictimer.h hw/mips_gictimer: provide API for retrieving frequency 2017-02-21 22:24:58 +00:00
mss-timer.h msf2: Add Smartfusion2 System timer 2017-09-21 16:36:56 +01:00
stm32f2xx_timer.h stm32f2xx_timer: Add the stm32f2xx Timer 2015-03-11 13:21:05 +00:00
sun4v-rtc.h target-sparc: implement sun4v RTC 2017-01-18 22:03:44 +01:00
xlnx-zynqmp-rtc.h xlnx-zynqmp-rtc: Add basic time support 2018-03-02 10:45:34 +00:00