From ffe26b6c1aa3bd320370693c728161f74a0afc8f Mon Sep 17 00:00:00 2001 From: David Wu Date: Tue, 14 Apr 2020 11:55:17 +0800 Subject: mb/google/hatch/var/kindred: Override VBT selection for kled Override VBT to fix CRC error issue with psr2 panel for kled. Cq-Depend: chrome-internal:2877637 BUG=b:145963505 BRANCH=hatch TEST=FW_NAME=kindred emerge-hatch coreboot chromeos-bootimage Change-Id: If201d449e910f80dc514c142aec4808a44fa31a9 Signed-off-by: David Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/40356 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Paul Fagerburg --- src/mainboard/google/hatch/variants/kindred/variant.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/google/hatch/variants/kindred/variant.c b/src/mainboard/google/hatch/variants/kindred/variant.c index 583bcff8ae..27fe170852 100644 --- a/src/mainboard/google/hatch/variants/kindred/variant.c +++ b/src/mainboard/google/hatch/variants/kindred/variant.c @@ -6,6 +6,7 @@ #include #include #include +#include void variant_devtree_update(void) { @@ -46,3 +47,13 @@ const char *get_wifi_sar_cbfs_filename(void) filename = "wifi_sar-kled.hex"; return filename; } + +const char *mainboard_vbt_filename(void) +{ + uint32_t sku_id = google_chromeec_get_board_sku(); + + if (sku_id == 1 || sku_id == 2 || sku_id == 3 || sku_id == 4) + return "vbt-kled.bin"; + else + return "vbt.bin"; +} -- cgit v1.2.3