From c1ef5c1752cc440f4436968e54f8dd79f638951e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 27 Sep 2017 18:34:37 +0200 Subject: [PATCH] mainboard/google/reef: Override VBT selection in coral Change-Id: I7fd667b1cf0b7c2a5e4ab7ac7748d9636a52ae54 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/21725 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- .../google/reef/variants/coral/mainboard.c | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c index f2fa30c8fa..8353f6ba6b 100644 --- a/src/mainboard/google/reef/variants/coral/mainboard.c +++ b/src/mainboard/google/reef/variants/coral/mainboard.c @@ -18,10 +18,14 @@ #include "baseboard/variants.h" #include #include +#include enum { SKU_2_SANTA = 2, - SKU_3_SANTA = 3 + SKU_3_SANTA = 3, + SKU_160_NASHER = 160, + SKU_161_NASHER = 161, + SKU_162_NASHER = 162, }; uint8_t variant_board_sku(void) @@ -61,3 +65,19 @@ void mainboard_devtree_update(struct device *dev) break; } } + +const char *mainboard_vbt_filename(void) +{ + int sku_id = variant_board_sku(); + + switch (sku_id) { + case SKU_160_NASHER: + case SKU_161_NASHER: + case SKU_162_NASHER: + return "vbt-nasher.bin"; + break; + default: + return "vbt.bin"; + break; + } +}