Skip to content

Commit d0bb0b6

Browse files
bibo-maochenhuacai
authored andcommitted
LoongArch: Enable ACPI BGRT handling
Add ACPI BGRT support on LoongArch so it can display image provied by acpi table at boot stage and switch to graphical UI smoothly. Signed-off-by: Bibo Mao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent e8dd556 commit d0bb0b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

arch/loongarch/kernel/acpi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <linux/init.h>
1111
#include <linux/acpi.h>
12+
#include <linux/efi-bgrt.h>
1213
#include <linux/irq.h>
1314
#include <linux/irqdomain.h>
1415
#include <linux/memblock.h>
@@ -212,6 +213,9 @@ void __init acpi_boot_table_init(void)
212213
/* Do not enable ACPI SPCR console by default */
213214
acpi_parse_spcr(earlycon_acpi_spcr_enable, false);
214215

216+
if (IS_ENABLED(CONFIG_ACPI_BGRT))
217+
acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);
218+
215219
return;
216220

217221
fdt_earlycon:

drivers/acpi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ config ACPI_HED
451451

452452
config ACPI_BGRT
453453
bool "Boottime Graphics Resource Table support"
454-
depends on EFI && (X86 || ARM64)
454+
depends on EFI && (X86 || ARM64 || LOONGARCH)
455455
help
456456
This driver adds support for exposing the ACPI Boottime Graphics
457457
Resource Table, which allows the operating system to obtain

0 commit comments

Comments
 (0)