soc/intel/cannonlake: Hook up IGD config to option API
Hook up the IGD config options IgdDvmt50PreAlloc and ApertureSize to the option API, so they can be configured at runtime without recompilation. The Aperture size falls back to the FSP default value, so no change if unconfigured. Change-Id: Idad22ca79c10d575320b4360ec24c2019a837446 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87398 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
This commit is contained in:
parent
5efb54d371
commit
b830fdc2d7
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
|
|||
if (igd_on && pci_read_config16(SA_DEV_IGD, PCI_VENDOR_ID) != 0xffff) {
|
||||
/* Set IGD stolen size to 64MB. */
|
||||
m_cfg->InternalGfx = 1;
|
||||
m_cfg->IgdDvmt50PreAlloc = 2;
|
||||
m_cfg->IgdDvmt50PreAlloc = get_uint_option("igd_dvmt_prealloc", 2);
|
||||
m_cfg->ApertureSize = get_uint_option("igd_aperture_size", 1);
|
||||
} else {
|
||||
m_cfg->InternalGfx = 0;
|
||||
m_cfg->IgdDvmt50PreAlloc = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue