summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-02-07 15:05:12 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-10 15:11:38 +0000
commitc397f004b7abdaf5a6950299b2d24fa4f72a435f (patch)
tree204279e47723620287d3d46fa366bf5799054ec8 /src/soc
parent445466e0d63e217297e0fd81df396776765ef18b (diff)
soc/apollolake: Hook up VTD to CMOS
Hook up vtd_enable to CMOS value of "vtd". Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I16b43f0489f652d650e820c36b2b9bea61cf3c8c Reviewed-on: https://review.coreboot.org/c/coreboot/+/61679 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/apollolake/chip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 1682490833..3ee49209db 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -23,6 +23,7 @@
#include <intelblocks/gpio.h>
#include <intelblocks/itss.h>
#include <intelblocks/pmclib.h>
+#include <option.h>
#include <soc/cpu.h>
#include <soc/heci.h>
#include <soc/intel/common/vbt.h>
@@ -709,7 +710,7 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
silconfig->VmxEnable = CONFIG(ENABLE_VMX);
/* Set VTD feature according to devicetree */
- silconfig->VtdEnable = cfg->enable_vtd;
+ silconfig->VtdEnable = get_uint_option("vtd", cfg->enable_vtd);
silconfig->PeiGraphicsPeimInit = CONFIG(RUN_FSP_GOP) && is_devfn_enabled(SA_DEVFN_IGD);