]> www.infradead.org Git - users/hch/misc.git/commitdiff
RISC-V: ACPI: enable parsing the BGRT table
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 29 Jul 2025 13:15:34 +0000 (15:15 +0200)
committerPaul Walmsley <pjw@kernel.org>
Thu, 18 Sep 2025 14:21:45 +0000 (08:21 -0600)
The BGRT table is used to display a vendor logo during the boot process.
Add the code for parsing it.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Link: https://lore.kernel.org/r/20250729131535.522205-2-heinrich.schuchardt@canonical.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/acpi.c

index 3f6d5a6789e8784a25b2fd7a63a9ea338374f38b..71698ee11621ac4ffddcc87c6d21cc08aac6dc71 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <linux/acpi.h>
+#include <linux/efi-bgrt.h>
 #include <linux/efi.h>
 #include <linux/io.h>
 #include <linux/memblock.h>
@@ -160,6 +161,8 @@ done:
                        early_init_dt_scan_chosen_stdout();
        } else {
                acpi_parse_spcr(earlycon_acpi_spcr_enable, true);
+               if (IS_ENABLED(CONFIG_ACPI_BGRT))
+                       acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);
        }
 }