mainboard/google/reef: Override VBT selection in coral

Change-Id: I7fd667b1cf0b7c2a5e4ab7ac7748d9636a52ae54
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/21725
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Georgi 2017-09-27 18:34:37 +02:00
parent f614277099
commit c1ef5c1752
1 changed files with 21 additions and 1 deletions

View File

@ -18,10 +18,14 @@
#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)
@ -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;
}
}