Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/21725
Change subject: mainboard/google/reef: Override VBT selection in coral ......................................................................
mainboard/google/reef: Override VBT selection in coral
Change-Id: I7fd667b1cf0b7c2a5e4ab7ac7748d9636a52ae54 Signed-off-by: Patrick Georgi pgeorgi@google.com --- M src/mainboard/google/reef/variants/coral/mainboard.c 1 file changed, 22 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/21725/1
diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c index c60c083..6dff623 100644 --- a/src/mainboard/google/reef/variants/coral/mainboard.c +++ b/src/mainboard/google/reef/variants/coral/mainboard.c @@ -14,14 +14,19 @@ */
#include <stdint.h> +#include <string.h> #include <ec/google/chromeec/ec.h> #include "baseboard/variants.h" #include <soc/cpu.h> #include <soc/intel/apollolake/chip.h> +#include <soc/intel/common/vbt.h>
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) @@ -57,3 +62,19 @@ break; } } + +void mainboard_vbt_filename(char *filename) +{ + int sku_id = variant_board_sku(); + + switch (sku_id) { + case SKU_160_NASHER: + case SKU_161_NASHER: + case SKU_162_NASHER: + snprintf(filename, 32, "vbt-nasher.bin"); + break; + default: + snprintf(filename, 32, "vbt.bin"); + break; + } +}