diff options
author | Bibo Mao <maobibo@loongson.cn> | 2024-09-24 10:32:06 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-09-24 10:32:06 +0300 |
commit | d0bb0b600081bc7c246b97b2901abbb6c357ff7b (patch) | |
tree | 7b6c6ae6a5a7ae7210aad3bd9512b7cabecd1c60 /arch | |
parent | e8dd556c74325f29597665c2c557a8ea699a0686 (diff) | |
download | linux-d0bb0b600081bc7c246b97b2901abbb6c357ff7b.tar.xz |
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 <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/loongarch/kernel/acpi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/acpi.c b/arch/loongarch/kernel/acpi.c index 929a497c987e..f1a74b80f22c 100644 --- a/arch/loongarch/kernel/acpi.c +++ b/arch/loongarch/kernel/acpi.c @@ -9,6 +9,7 @@ #include <linux/init.h> #include <linux/acpi.h> +#include <linux/efi-bgrt.h> #include <linux/irq.h> #include <linux/irqdomain.h> #include <linux/memblock.h> @@ -212,6 +213,9 @@ void __init acpi_boot_table_init(void) /* Do not enable ACPI SPCR console by default */ acpi_parse_spcr(earlycon_acpi_spcr_enable, false); + if (IS_ENABLED(CONFIG_ACPI_BGRT)) + acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt); + return; fdt_earlycon: |