[coreboot-gerrit] Change in coreboot[master]: google/coral: Fetch SKU ID from EC

Patrick Georgi (Code Review) gerrit at coreboot.org
Thu Aug 10 19:34:01 CEST 2017


Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/20947


Change subject: google/coral: Fetch SKU ID from EC
......................................................................

google/coral: Fetch SKU ID from EC

BUG=b:64468585
BRANCH=none
TEST=with the other sku-id related patches applied, coreboot obtains the
right SKU ID from EC

Change-Id: I96a0e030bbc5f1c98165e70353340c413f8dc352
Signed-off-by: Patrick Georgi <pgeorgi at google.com>
---
M src/mainboard/google/reef/variants/coral/mainboard.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/20947/1

diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c
index 54c24f8..3da5456 100644
--- a/src/mainboard/google/reef/variants/coral/mainboard.c
+++ b/src/mainboard/google/reef/variants/coral/mainboard.c
@@ -14,11 +14,13 @@
  */
 
 #include <stdint.h>
+#include <ec/google/chromeec/ec.h>
 #include "baseboard/variants.h"
 
 uint8_t variant_board_sku(void)
 {
-	return 0;
+	// we know that the values are in 0..255
+	return google_chromeec_get_sku_id();
 }
 
 void variant_nhlt_oem_overrides(const char **oem_id,

-- 
To view, visit https://review.coreboot.org/20947
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I96a0e030bbc5f1c98165e70353340c413f8dc352
Gerrit-Change-Number: 20947
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/20170810/94de4d99/attachment.html>


More information about the coreboot-gerrit mailing list