[coreboot-gerrit] Change in coreboot[master]: mainboard/google/reef: Override VBT selection in coral
Patrick Georgi (Code Review)
gerrit at coreboot.org
Wed Sep 27 18:36:50 CEST 2017
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 at 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;
+ }
+}
--
To view, visit https://review.coreboot.org/21725
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7fd667b1cf0b7c2a5e4ab7ac7748d9636a52ae54
Gerrit-Change-Number: 21725
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170927/6f230336/attachment.html>
More information about the coreboot-gerrit
mailing list