diff options
author | Andrew Jeffery | 2019-12-20 15:03:00 +0100 |
---|---|---|
committer | Peter Maydell | 2019-12-20 15:03:00 +0100 |
commit | 058d095532dbd50aa3a2b5ef907b76c08f7d6de7 (patch) | |
tree | b1c3e30853bf2867e0343e38ce428eaea34fa01a /hw/arm/aspeed_ast2600.c | |
parent | target/arm: Prepare generic timer for per-platform CNTFRQ (diff) | |
download | qemu-058d095532dbd50aa3a2b5ef907b76c08f7d6de7.tar.gz qemu-058d095532dbd50aa3a2b5ef907b76c08f7d6de7.tar.xz qemu-058d095532dbd50aa3a2b5ef907b76c08f7d6de7.zip |
ast2600: Configure CNTFRQ at 1125MHz
This matches the configuration set by u-boot on the AST2600.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 080ca1267a09381c43cf3c50d434fb6c186f2b6e.1576215453.git-series.andrew@aj.id.au
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/aspeed_ast2600.c')
-rw-r--r-- | hw/arm/aspeed_ast2600.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c index be88005dab..89e4b00950 100644 --- a/hw/arm/aspeed_ast2600.c +++ b/hw/arm/aspeed_ast2600.c @@ -250,6 +250,9 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp) object_property_set_int(OBJECT(&s->cpu[i]), aspeed_calc_affinity(i), "mp-affinity", &error_abort); + object_property_set_int(OBJECT(&s->cpu[i]), 1125000000, "cntfrq", + &error_abort); + /* * TODO: the secondary CPUs are started and a boot helper * is needed when using -kernel |