]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/acpi/ich9: Add periodic and swsmi timer
authorDominic Prinz <git@dprinz.de>
Tue, 10 Sep 2024 18:08:20 +0000 (20:08 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Sep 2024 13:46:14 +0000 (09:46 -0400)
commit6e3c2d58e967cde3dadae298e81c5e8eb9fb9080
treed71ae4bcd2cc142b94e88aa92f1f56c2ecbf3ddc
parent95b717a8154b955de2782305f305b63f357b0576
hw/acpi/ich9: Add periodic and swsmi timer

This patch implements the periodic and the swsmi ICH9 chipset timers. They are
especially useful when prototyping UEFI firmware (e.g. with EDK2's OVMF)
using QEMU.

For backwards compatibility, the compat properties "x-smi-swsmi-timer",
and "x-smi-periodic-timer" are introduced.

Additionally, writes to the SMI_STS register are enabled for the
corresponding two bits using a write mask to make future work easier.

Signed-off-by: Dominic Prinz <git@dprinz.de>
Message-Id: <1d90ea69e01ab71a0f2ced116801dc78e04f4448.1725991505.git.git@dprinz.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/ich9.c
hw/acpi/ich9_timer.c [new file with mode: 0644]
hw/acpi/meson.build
hw/i386/pc.c
hw/isa/lpc_ich9.c
include/hw/acpi/ich9.h
include/hw/acpi/ich9_timer.h [new file with mode: 0644]
include/hw/southbridge/ich9.h