aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/mainboard.c
diff options
context:
space:
mode:
authorKevin Chiu <Kevin.Chiu@quantatw.com>2017-09-05 16:10:10 +0800
committerAaron Durbin <adurbin@chromium.org>2017-09-13 17:03:39 +0000
commit82fbb1cf55442abba8db5087d006892b8bc56d86 (patch)
treed40bd4b8d1f85364e8594218c70f6d14fdf4c1c1 /src/mainboard/google/reef/mainboard.c
parente2bb059187cb98d9c7e21294e54089cbbcde0311 (diff)
google/snappy: Update EC keyboard backlight flag by SKU ID
Set AP SKU ID by ec command EC_CMD_SET_SKU_ID to update EC keyboard backlight flag. BUG=b:65359225 BRANCH=reef TEST=emerge-snappy coreboot Change-Id: I1153aa0b89250c55f311dd93a01fcef47afd7292 Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com> Reviewed-on: https://review.coreboot.org/21400 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/reef/mainboard.c')
-rw-r--r--src/mainboard/google/reef/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c
index c6b199700e..8c7ec3cc05 100644
--- a/src/mainboard/google/reef/mainboard.c
+++ b/src/mainboard/google/reef/mainboard.c
@@ -42,6 +42,8 @@ static void mainboard_init(void *chip_info)
gpio_configure_pads(pads, num);
mainboard_ec_init();
+
+ variant_board_ec_set_skuid();
}
/*
@@ -64,6 +66,11 @@ uint8_t __attribute__((weak)) variant_board_sku(void)
return board_sku_num;
}
+/* Set variabnt board sku to ec by sku id */
+void __attribute__((weak)) variant_board_ec_set_skuid(void)
+{
+}
+
const char *smbios_mainboard_sku(void)
{
static char sku_str[7]; /* sku{0..255} */