Skip to content

Commit bf4206d

Browse files
cp0613rafaeljw
authored andcommitted
ACPI: SPCR: Add support for DBG2 RISC-V SBI port subtype
Commit 4aca2be ("ACPICA: Headers: Add RISC-V SBI Subtype to DBG2") added the definition of ACPI_DBG2_RISCV_SBI_CON. Continue to implement its function so that the parameters of UART can be configured correctly. Subsequent calls to setup_earlycon() will reuse the earlycon based on SBI. Signed-off-by: Chen Pei <cp0613@linux.alibaba.com> Reviewed-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org> Link: https://patch.msgid.link/20250910094136.4423-1-cp0613@linux.alibaba.com [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f83ec76 commit bf4206d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/acpi/spcr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
141141
case ACPI_DBG2_16550_NVIDIA:
142142
uart = "uart";
143143
break;
144+
case ACPI_DBG2_RISCV_SBI_CON:
145+
uart = "sbi";
146+
break;
144147
default:
145148
err = -ENOENT;
146149
goto done;

0 commit comments

Comments
 (0)