mainboard/google/kahlee: Enable keyboard backlight for careena specific SKU
Enable keyboard backlight by Careena SKUID Set to 10% as the same as google/snappy project BUG=b:110065836 BRANCH=master TEST=emerge-grunt coreboot Change-Id: I7d302c4f50528b0e6b7ef4d990f342a69cff34f5 Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com> Reviewed-on: https://review.coreboot.org/27021 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
faa5f9869d
commit
56dfc93751
|
@ -16,8 +16,32 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
|
||||
/* SKU ID enumeration */
|
||||
enum careena_sku {
|
||||
SKU_UNKNOWN = -1,
|
||||
SKU_CAREENA_KB_NO_BACKLIGHT16 = 16,
|
||||
SKU_CAREENA_KB_BACKLIGHT18 = 18,
|
||||
SKU_CAREENA_KB_BACKLIGHT19 = 19,
|
||||
SKU_CAREENA_KB_BACKLIGHT22 = 22,
|
||||
SKU_CAREENA_KB_BACKLIGHT23 = 23,
|
||||
};
|
||||
|
||||
void variant_romstage_entry(int s3_resume)
|
||||
{
|
||||
if (!s3_resume)
|
||||
google_chromeec_kbbacklight(75);
|
||||
uint32_t sku = google_chromeec_get_sku_id();
|
||||
|
||||
if (!s3_resume) {
|
||||
/* Based on SKU, turn on keyboard backlight */
|
||||
switch (sku) {
|
||||
default:
|
||||
google_chromeec_kbbacklight(75);
|
||||
break;
|
||||
case SKU_CAREENA_KB_BACKLIGHT18:
|
||||
case SKU_CAREENA_KB_BACKLIGHT19:
|
||||
case SKU_CAREENA_KB_BACKLIGHT22:
|
||||
case SKU_CAREENA_KB_BACKLIGHT23:
|
||||
google_chromeec_kbbacklight(10);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue