mb/google/nightfury: Override VBT selection for nightfury 2nd sku

Override VBT for nightfury SKU_ID = 2 to support different panel.

BUG=b:159051021
BRANCH=firmware-hatch-12672.B
TEST=Built and verified using different VBT by SKU_ID

Change-Id: I9450814aadc43cc7991457c3793f109b889186b9
Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42904
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bob Moragues <moragues@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Seunghwan Kim 2020-06-30 18:19:01 +09:00 committed by Tim Wawrzynczak
parent 157851fdbb
commit bc76cf56a4
2 changed files with 17 additions and 0 deletions

View File

@ -10,3 +10,4 @@ bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += ramstage.c
ramstage-y += variant.c

View File

@ -0,0 +1,16 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <baseboard/variants.h>
#include <chip.h>
#include <ec/google/chromeec/ec.h>
#include <drivers/intel/gma/opregion.h>
const char *mainboard_vbt_filename(void)
{
uint32_t sku_id = google_chromeec_get_board_sku();
if (sku_id == 2)
return "vbt-nightfury-qled.bin";
else
return "vbt.bin";
}