summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-07-31 14:20:33 +0200
committerAaron Durbin <adurbin@chromium.org>2017-08-15 20:22:30 +0000
commit69b800bf9dedcf196a3f789a9fabfe45e98f2c6f (patch)
treed1095100f307ddece670f97a787ee5126e64998c /src/mainboard/google
parent69206d90fe99e0420ea5715736fe4b2403cbad06 (diff)
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@google.com> Reviewed-on: https://review.coreboot.org/20947 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/reef/variants/coral/mainboard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c
index 54c24f8c43..3da54569bc 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,