summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/bootmem.c3
-rw-r--r--src/lib/coreboot_table.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/bootmem.c b/src/lib/bootmem.c
index 578ddac19f..ab15e85d08 100644
--- a/src/lib/bootmem.c
+++ b/src/lib/bootmem.c
@@ -4,6 +4,7 @@
#include <bootmem.h>
#include <cbmem.h>
#include <device/resource.h>
+#include <drivers/efi/capsules.h>
#include <symbols.h>
#include <assert.h>
#include <types.h>
@@ -80,6 +81,8 @@ static void bootmem_init(void)
/* Add memory used by CBMEM. */
cbmem_add_bootmem();
+ efi_add_capsules_to_bootmem();
+
bootmem_add_range((uintptr_t)_stack, REGION_SIZE(stack),
BM_MEM_RAMSTAGE);
bootmem_add_range((uintptr_t)_program, REGION_SIZE(program),
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 913588feb6..e954edb822 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -543,6 +543,10 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end)
/* Add board-specific table entries, if any. */
lb_board(head);
+ /* Possibly add UEFI capsules. */
+ if (CONFIG(DRIVERS_EFI_UPDATE_CAPSULES))
+ lb_efi_capsules(head);
+
if (CONFIG(CHROMEOS_RAMOOPS))
lb_ramoops(head);