summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/intel/fsp1_1/temp_ram_exit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp1_1/temp_ram_exit.c b/src/drivers/intel/fsp1_1/temp_ram_exit.c
index 08324eb8cf..df7e67459b 100644
--- a/src/drivers/intel/fsp1_1/temp_ram_exit.c
+++ b/src/drivers/intel/fsp1_1/temp_ram_exit.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include <cbmem.h>
#include <console/console.h>
#include <fsp/util.h>
@@ -10,6 +11,10 @@ asmlinkage void chipset_teardown_car_main(void)
FSP_TEMP_RAM_EXIT temp_ram_exit;
struct prog fsp = PROG_INIT(PROG_REFCODE, "fsp.bin");
+ /* CBMEM_ID_VBOOT_WORKBUF is used as vboot workbuffer.
+ * Init CBMEM before loading fsp, to have buffer available */
+ cbmem_initialize();
+
if (prog_locate(&fsp)) {
die("Unable to locate fsp.bin\n");
} else {