OSDN Git Service

hw/riscv/virt: Enable basic ACPI infrastructure
authorSunil V L <sunilvl@ventanamicro.com>
Thu, 2 Mar 2023 09:12:08 +0000 (14:42 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Mar 2023 19:35:04 +0000 (11:35 -0800)
commit7da2fb240f9750d9a6fd2dac1397ec18b512a1b5
tree3792f9d17194cb38a7011c99463b7b5bbdb59a96
parent71302ff3bc9fbcceeb3ad7e6bb724ea942b5bba1
hw/riscv/virt: Enable basic ACPI infrastructure

Add basic ACPI infrastructure for RISC-V with below tables.
        1) DSDT with below basic objects
                - CPUs
                - fw_cfg
        2) FADT revision 6 with HW_REDUCED flag
        3) XSDT
        4) RSDP

Add this functionality in a new file virt-acpi-build.c and enable
building this infrastructure.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20230302091212.999767-5-sunilvl@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
hw/riscv/Kconfig
hw/riscv/meson.build
hw/riscv/virt-acpi-build.c [new file with mode: 0644]
include/hw/riscv/virt.h