diff options
author | Patrick Georgi <pgeorgi@google.com> | 2017-09-27 18:34:37 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-10-06 15:53:03 +0000 |
commit | c1ef5c1752cc440f4436968e54f8dd79f638951e (patch) | |
tree | 73befb782ef0eca99f02af24af75fa7b04ece092 | |
parent | f61427709909bb9fa534f985eb451b3b905f7a31 (diff) | |
download | coreboot-c1ef5c1752cc440f4436968e54f8dd79f638951e.tar.xz |
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>
-rw-r--r-- | src/mainboard/google/reef/variants/coral/mainboard.c | 22 |
1 files changed, 21 insertions, 1 deletions
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 <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; + } +} |