x86: acpi: Expand the GNVS
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:44:54 +0000 (12:44 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:13 +0000 (11:27 +0800)
Expand this to 4KB so that it is possible to add custom information to it.
On Chromebooks this is used to pass verified-boot information.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/acpi/global_nvs.h
arch/x86/include/asm/intel_gnvs.h

index a552cf6..4638362 100644 (file)
@@ -16,6 +16,6 @@
  * DSDT, since it is created by code, so ACPI_GNVS_ADDR is unused.
  */
 #define ACPI_GNVS_ADDR 0xdeadbeef
-#define ACPI_GNVS_SIZE 0x100
+#define ACPI_GNVS_SIZE 0x1000
 
 #endif /* _ACPI_GNVS_H_ */
index e2d479d..c1e9d65 100644 (file)
@@ -36,6 +36,7 @@ struct __packed acpi_global_nvs {
        u8      unused2[0x1000 - 0x100];        /* Pad out to 4096 bytes */
 #endif
 };
+
 #ifdef CONFIG_CHROMEOS
 check_member(acpi_global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
 #endif