aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/vbt.c10
-rw-r--r--src/soc/intel/common/vbt.h8
2 files changed, 17 insertions, 1 deletions
diff --git a/src/soc/intel/common/vbt.c b/src/soc/intel/common/vbt.c
index 315459b246..e3360dcf83 100644
--- a/src/soc/intel/common/vbt.c
+++ b/src/soc/intel/common/vbt.c
@@ -22,12 +22,20 @@
#define VBT_SIGNATURE 0x54425624
+__attribute__((weak))
+const char *mainboard_vbt_filename(void)
+{
+ return "vbt.bin";
+}
+
enum cb_err locate_vbt(struct region_device *rdev)
{
uint32_t vbtsig = 0;
struct cbfsf file_desc;
- if (cbfs_boot_locate(&file_desc, "vbt.bin", NULL) < 0) {
+ const char *filename = mainboard_vbt_filename();
+
+ if (cbfs_boot_locate(&file_desc, filename, NULL) < 0) {
printk(BIOS_ERR, "Could not locate a VBT file in in CBFS\n");
return CB_ERR;
}
diff --git a/src/soc/intel/common/vbt.h b/src/soc/intel/common/vbt.h
index 9a02e6a467..7b65d74a4d 100644
--- a/src/soc/intel/common/vbt.h
+++ b/src/soc/intel/common/vbt.h
@@ -19,6 +19,14 @@
#include <commonlib/region.h>
#include <types.h>
+/*
+ * Returns the CBFS filename of the VBT blob.
+ *
+ * The default implementation returns "vbt.bin", but other implementations can
+ * override this.
+ */
+const char *mainboard_vbt_filename(void);
+
/* locate .vbt file */
enum cb_err locate_vbt(struct region_device *rdev);
/*