diff options
author | David Wu <david_wu@quanta.corp-partner.google.com> | 2020-04-14 11:55:17 +0800 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2020-04-16 18:40:14 +0000 |
commit | ffe26b6c1aa3bd320370693c728161f74a0afc8f (patch) | |
tree | 8cca1054e6532e98be23115ac9a33cacfb130f51 /src/mainboard | |
parent | 77410efebf38f7cd50c80a6c695e83888dabfb9c (diff) | |
download | coreboot-ffe26b6c1aa3bd320370693c728161f74a0afc8f.tar.xz |
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 <david_wu@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40356
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/hatch/variants/kindred/variant.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <soc/pci_devs.h> #include <ec/google/chromeec/ec.h> #include <sar.h> +#include <drivers/intel/gma/opregion.h> 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"; +} |