]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Add FDT table support with acpi ged pm register
authorBibo Mao <maobibo@loongson.cn>
Wed, 18 Sep 2024 01:42:06 +0000 (09:42 +0800)
committerSong Gao <gaosong@loongson.cn>
Wed, 16 Oct 2024 07:56:42 +0000 (15:56 +0800)
commite1ecdc630d7aaee85cbf22b3b6b3a4da19763521
treee7c5a9d68f5214fef217956c32d2ac7f24aa95fc
parentedafc90ba481c586d0a649f34dcb8cd1f29c4259
hw/loongarch/virt: Add FDT table support with acpi ged pm register

ACPI ged is used for power management on LoongArch virt platform, in
general it is parsed from acpi table. However if system boot directly from
elf kernel, no UEFI bios is provided and acpi table cannot be used also.

Here acpi ged pm register is exposed with FDT table, it is compatbile
with syscon method in FDT table, only that acpi ged pm register is accessed
with 8-bit mode, rather with 32-bit mode.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Tested-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240918014206.2165821-3-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c