aspeed: introduce the APB clock settings
Status from this message: Applied to target-arm.next, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 6 repliesApplied
- v13 patches 5 repliesSuperseded
Changes in v2 from the cover letter
- fixed AST2400 HPLL calculation when CLKIN is 25MHz
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | aspeed/scu: introduce clock frequencieshw/ include/ | +172 | 1 reply | |
| 2/3 | aspeed: initialize the SCU controller firsthw/ | +20 | 1 reply | |
| 3/3 | aspeed/timer: use the APB frequency from the SCUhw/ hw/ include/ | +21 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Joel Stanley | Andrew Jeffery |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | R-b | A-b |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v2 0/3] aspeed: introduce the APB clock settings
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.
Changes since v1:
- fixed AST2400 HPLL calculation when CLKIN is 25MHz
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(-)
Signature · 1 line
2.13.6