drivers/intel/gma: Add Kconfig option for vbt data size

From Tigerlake FSP v3373 onwards vbt binary size changed from 8KiB
to 9KiB. Commit cf5d58328f had changed
the size from 8 to 9 Kib. This change adds Kconfig option to choose
vbt data size based on platform.

BUG=b:171401992
BRANCH=none
TEST=build and boot delbin and verify fw screen is loaded

Signed-off-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com>
Change-Id: Ia294fc94ce759666fb664dfdb910ecd403e6a2e9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47151
Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Srinidhi N Kaushik
2020-11-02 16:47:29 -08:00
committed by Patrick Georgi
parent ec2e3e479a
commit 6719c82450
2 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,10 @@ config INTEL_GMA_SWSMISCI
config INTEL_GMA_LIBGFXINIT_EDID config INTEL_GMA_LIBGFXINIT_EDID
bool bool
config VBT_DATA_SIZE_KB
int
default 8
config GFX_GMA_ANALOG_I2C_HDMI_B config GFX_GMA_ANALOG_I2C_HDMI_B
bool bool

View File

@ -19,7 +19,7 @@ const char *mainboard_vbt_filename(void)
return "vbt.bin"; return "vbt.bin";
} }
static char vbt_data[9 * KiB]; static char vbt_data[CONFIG_VBT_DATA_SIZE_KB * KiB];
static size_t vbt_data_sz; static size_t vbt_data_sz;
void *locate_vbt(size_t *vbt_size) void *locate_vbt(size_t *vbt_size)