hw/loongarch: Add acpi SPCR table support
authorBibo Mao <maobibo@loongson.cn>
Sat, 7 Sep 2024 07:30:37 +0000 (15:30 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 12 Sep 2024 12:57:54 +0000 (20:57 +0800)
commit45d1fe46e5a6fe2b22b034e2b2bc0d941acd4b9e
tree938378d5ef7df6dd92ea17e51d6c45a982907f01
parentd9bd1ccbf1d84d872aed684c65fec33814b8ac1b
hw/loongarch: Add acpi SPCR table support

Serial port console redirection table can be used for default serial
port selection, like chosen stdout-path selection with FDT method.

With acpi SPCR table added, early debug console can be parsed from
SPCR table with simple kernel parameter earlycon rather than
earlycon=uart,mmio,0x1fe001e0

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240907073037.243353-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/acpi-build.c