aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm
diff options
context:
space:
mode:
authorSergey Kambalin <sergey.kambalin@auriga.com>2023-06-13 00:34:56 +0200
committerPeter Maydell <peter.maydell@linaro.org>2023-06-19 15:27:21 +0100
commit074259c0f2ac40042dce766d870318cc22f388eb (patch)
treeb3c5e674788806a0c0c7b303ad236db359e9f4bd /include/hw/arm
parent5dc496363a5bd7bec9cf0287cfbece9b94bcfa9a (diff)
downloadqemu-074259c0f2ac40042dce766d870318cc22f388eb.zip
qemu-074259c0f2ac40042dce766d870318cc22f388eb.tar.gz
qemu-074259c0f2ac40042dce766d870318cc22f388eb.tar.bz2
hw/misc/bcm2835_property: Handle CORE_CLK_ID firmware property
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20230612223456.33824-5-philmd@linaro.org Message-Id: <20230531155258.8361-1-sergey.kambalin@auriga.com> [PMD: Split from bigger patch: 3/4] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> [PMM: added a comment about RPI_FIRMWARE_CORE_CLK_RATE really being SoC-specific] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm')
-rw-r--r--include/hw/arm/raspi_platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/arm/raspi_platform.h b/include/hw/arm/raspi_platform.h
index 83f2588..ede98e6 100644
--- a/include/hw/arm/raspi_platform.h
+++ b/include/hw/arm/raspi_platform.h
@@ -173,6 +173,11 @@
/* Clock rates */
#define RPI_FIRMWARE_EMMC_CLK_RATE 50000000
#define RPI_FIRMWARE_UART_CLK_RATE 3000000
+/*
+ * TODO: this is really SoC-specific; we might want to
+ * set it per-SoC if it turns out any guests care.
+ */
+#define RPI_FIRMWARE_CORE_CLK_RATE 350000000
#define RPI_FIRMWARE_DEFAULT_CLK_RATE 700000000
#endif