RISC-V: ACPI: Enable SPCR table for console output on RISC-V
authorSia Jee Heng <jeeheng.sia@starfivetech.com>
Thu, 2 May 2024 07:37:51 +0000 (00:37 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 24 Jul 2024 14:33:37 +0000 (07:33 -0700)
commit38738947db38520b58b7dae64bd0eec513e83139
tree63bdb4df274f61fa072c481a5ea80ff97bb29a72
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
RISC-V: ACPI: Enable SPCR table for console output on RISC-V

The ACPI SPCR code has been used to enable console output for ARM64 and
X86. The same code can be reused for RISC-V. Furthermore, SPCR table is
mandated for headless system as outlined in the RISC-V BRS
Specification, chapter 6.

Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Link: https://lore.kernel.org/r/20240502073751.102093-2-jeeheng.sia@starfivetech.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/kernel/acpi.c