mb/starlabs/starbook/mtl: Add the option to enable the VPU
Enable the VPU, and add a CFR option to enable or disable it. Change-Id: I747d85c6764e5affcc202e063abe7ec786d04e39 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87046 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
38f5f7c480
commit
51130ebc64
3 changed files with 18 additions and 0 deletions
|
|
@ -185,6 +185,15 @@ static const struct sm_object thunderbolt = SM_DECLARE_BOOL({
|
|||
});
|
||||
#endif
|
||||
|
||||
#if CONFIG(SOC_INTEL_METEORLAKE)
|
||||
static const struct sm_object vpu = SM_DECLARE_BOOL({
|
||||
.opt_name = "vpu",
|
||||
.ui_name = "VPU",
|
||||
.ui_helptext = "Enable or disable VPU",
|
||||
.default_value = true,
|
||||
});
|
||||
#endif
|
||||
|
||||
static const struct sm_object webcam = SM_DECLARE_BOOL({
|
||||
.opt_name = "webcam",
|
||||
.ui_name = "Webcam",
|
||||
|
|
@ -266,6 +275,9 @@ static struct sm_obj_form devices = {
|
|||
#if CONFIG(DRIVERS_INTEL_USB4_RETIMER)
|
||||
&thunderbolt,
|
||||
#endif
|
||||
#if CONFIG(SOC_INTEL_METEORLAKE)
|
||||
&vpu,
|
||||
#endif
|
||||
&webcam,
|
||||
&wireless,
|
||||
NULL
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ chip soc/intel/meteorlake
|
|||
device i2c 2c on end
|
||||
end
|
||||
end
|
||||
device ref vpu on end
|
||||
device ref ioe_shared_sram on end
|
||||
device ref pmc_shared_sram on end
|
||||
device ref pcie_rp9 on # WiFi
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ void devtree_update(void)
|
|||
&cfg->power_limits_config[MTL_P_682_482_CORE];
|
||||
|
||||
struct device *gna_dev = pcidev_on_root(0x08, 0);
|
||||
struct device *vpu_dev = pcidev_on_root(0x0b, 0);
|
||||
|
||||
uint8_t performance_scale = 100;
|
||||
|
||||
|
|
@ -63,4 +64,8 @@ void devtree_update(void)
|
|||
/* Enable/Disable GNA based on CMOS settings */
|
||||
if (get_uint_option("gna", 0) == 0)
|
||||
gna_dev->enabled = 0;
|
||||
|
||||
/* Enable/Disable VPU based on CMOS settings */
|
||||
if (get_uint_option("vpu", 0) == 0)
|
||||
vpu_dev->enabled = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue