diff options
author | Kevin Chiu <Kevin.Chiu@quantatw.com> | 2017-09-05 16:10:10 +0800 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-09-13 17:03:39 +0000 |
commit | 82fbb1cf55442abba8db5087d006892b8bc56d86 (patch) | |
tree | d40bd4b8d1f85364e8594218c70f6d14fdf4c1c1 /src/mainboard/google/reef/variants/snappy | |
parent | e2bb059187cb98d9c7e21294e54089cbbcde0311 (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/variants/snappy')
-rw-r--r-- | src/mainboard/google/reef/variants/snappy/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/reef/variants/snappy/mainboard.c | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/variants/snappy/Makefile.inc b/src/mainboard/google/reef/variants/snappy/Makefile.inc new file mode 100644 index 0000000000..f3c87b2318 --- /dev/null +++ b/src/mainboard/google/reef/variants/snappy/Makefile.inc @@ -0,0 +1 @@ +ramstage-y += mainboard.c diff --git a/src/mainboard/google/reef/variants/snappy/mainboard.c b/src/mainboard/google/reef/variants/snappy/mainboard.c new file mode 100644 index 0000000000..a04f61a72f --- /dev/null +++ b/src/mainboard/google/reef/variants/snappy/mainboard.c @@ -0,0 +1,22 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016, 2017 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <baseboard/variants.h> +#include <ec/google/chromeec/ec.h> + +void variant_board_ec_set_skuid(void) +{ + google_chromeec_set_sku_id(variant_board_sku()); +} |