hw/isa/lpc_ich9: Connect PM stuff to LPC internally
authorBernhard Beschow <shentey@gmail.com>
Mon, 13 Feb 2023 17:30:28 +0000 (18:30 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:01 +0000 (22:29 +0100)
commit20fe3af24f1367906ab1eb6aa56e2cef73f116a8
tree4fe06f3747a20144bf125204aaeb3b0af82e8347
parentecf403cbb87020c6215856cb4843ca49c0202ba2
hw/isa/lpc_ich9: Connect PM stuff to LPC internally

Make TYPE_ICH9_LPC_DEVICE more self-contained by moving the call to
ich9_lpc_pm_init() from board code to its realize function. In order
to propagate x86_machine_is_smm_enabled(), introduce an "smm-enabled"
property like we have in piix4.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230213173033.98762-8-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/acpi/ich9.c
hw/i386/pc_q35.c
hw/isa/lpc_ich9.c
include/hw/acpi/ich9.h
include/hw/i386/ich9.h