All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] aspeed: introduce the APB clock settings
@ 2018-06-21 22:39 Cédric Le Goater
  2018-06-21 22:39 ` [Qemu-devel] [PATCH 1/3] aspeed/scu: introduce clock frequencies Cédric Le Goater
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Cédric Le Goater @ 2018-06-21 22:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, Peter Maydell, Joel Stanley, Andrew Jeffery,
	Cédric Le Goater

Hello,

The Aspeed SoC clocks are driven by an input source clock which can
have different frequencies : 24MHz or 25MHz, and also, on the Aspeed
AST2400 SoC, 48MHz. The H-PLL (CPU) clock is defined from a calculation
using parameters in the H-PLL Parameter register or from a predefined
set of frequencies if the setting is strapped by hardware (Aspeed
AST2400 SoC). The other clocks of the SoC are then defined from the
H-PLL using dividers.

We first introduce the APB clock because it drives the timer model.
This fixes a slowdown issue on the palmetto machine (AST2400) when
running Linux. The latest Linux versions take into account more
precisely the SoC settings for the clocks and the APB freq is set to
48MHz but modeled at 24MHz by QEMU.

Thanks,

C.

Cédric Le Goater (3):
  aspeed/scu: introduce clock frequencies
  aspeed: initialize the SCU controller first
  aspeed/timer: use the APB frequency from the SCU

 include/hw/misc/aspeed_scu.h    |  70 ++++++++++++++++++++++++--
 include/hw/timer/aspeed_timer.h |   4 ++
 hw/arm/aspeed_soc.c             |  42 ++++++++--------
 hw/misc/aspeed_scu.c            | 106 ++++++++++++++++++++++++++++++++++++++++
 hw/timer/aspeed_timer.c         |  19 +++++--
 5 files changed, 213 insertions(+), 28 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-06-22  5:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21 22:39 [Qemu-devel] [PATCH 0/3] aspeed: introduce the APB clock settings Cédric Le Goater
2018-06-21 22:39 ` [Qemu-devel] [PATCH 1/3] aspeed/scu: introduce clock frequencies Cédric Le Goater
2018-06-22  0:57   ` Joel Stanley
2018-06-22  5:28     ` Cédric Le Goater
2018-06-21 22:39 ` [Qemu-devel] [PATCH 2/3] aspeed: initialize the SCU controller first Cédric Le Goater
2018-06-22  0:58   ` Joel Stanley
2018-06-21 22:39 ` [Qemu-devel] [PATCH 3/3] aspeed/timer: use the APB frequency from the SCU Cédric Le Goater
2018-06-22  1:01   ` Joel Stanley
2018-06-22  5:55     ` Cédric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.