qemu/hw/watchdog
Peter Maydell 88c756bc9e hw/watchdog/sbsa_gwdt: Make watchdog timer frequency a QOM property
Currently the sbsa_gdwt watchdog device hardcodes its frequency at
62.5MHz. In real hardware, this watchdog is supposed to be driven
from the system counter, which also drives the CPU generic timers.
Newer CPU types (in particular from Armv8.6) should have a CPU
generic timer frequency of 1GHz, so we can't leave the watchdog
on the old QEMU default of 62.5GHz.

Make the frequency a QOM property so it can be set by the board,
and have our only board that uses this device set that frequency
to the same value it sets the CPU frequency.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240426122913.3427983-4-peter.maydell@linaro.org
2024-04-30 15:14:15 +01:00
..
allwinner-wdt.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
cmsdk-apb-watchdog.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
Kconfig
meson.build
sbsa_gwdt.c hw/watchdog/sbsa_gwdt: Make watchdog timer frequency a QOM property 2024-04-30 15:14:15 +01:00
spapr_watchdog.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events
trace.h
watchdog.c
wdt_aspeed.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
wdt_diag288.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
wdt_i6300esb.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
wdt_ib700.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00
wdt_imx2.c hw/watchdog: Constify VMState 2023-12-30 07:38:06 +11:00