summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-05-10 21:58:39 -0700
committerFurquan Shaikh <furquan@google.com>2018-05-12 08:13:38 +0000
commitc6141b945160bd276c172991bd86a2fbf837fe89 (patch)
tree8f0bb6011a2d564d179554e5e04a42b8bcd427d3 /src/mainboard/google/poppy
parentd319b982797752231d0ea37c08490ba630312bb8 (diff)
mb/google/poppy/variants/nami: Provide implementation of mainboard_vbt_filename
This change adds board-specific implementation of mainboard_vbt_filename which returns "vbt.bin" by default. This is in preparation to allow multiple vbt binaries to be added to single image. More sku_id specific names will be added in follow-up CLs. BUG=b:79396300 Change-Id: I3821d55bfbe9e5773bd2eb0b0003045a80158d8c Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/26227 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/poppy')
-rw-r--r--src/mainboard/google/poppy/variants/nami/mainboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index bb77b6e9d2..01a91663b0 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -21,6 +21,7 @@
#include <commonlib/cbfs_serialized.h>
#include <compiler.h>
#include <device/device.h>
+#include <drivers/intel/gma/opregion.h>
#include <ec/google/chromeec/ec.h>
#include <smbios.h>
#include <soc/ramstage.h>
@@ -139,3 +140,14 @@ const char *smbios_mainboard_manufacturer(void)
return manuf;
}
+
+const char *mainboard_vbt_filename(void)
+{
+ uint32_t sku_id = variant_board_sku();
+
+ switch (sku_id) {
+ default:
+ return "vbt.bin";
+ break;
+ }
+}