Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/54688 )
Change subject: IMOK: Add IMOK method support for DPTF ......................................................................
IMOK: Add IMOK method support for DPTF
Add IMOK method support for DPTF
BRANCH=None BUG=b:187797417 TEST=Built and tested on dedede board
Change-Id: I8edfa3bcaa6bde0b9690fcace000cd582dcc81d2 Signed-off-by: Sumeet Pawnikar sumeet.r.pawnikar@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/54688 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/drivers/intel/dptf/dptf.c 1 file changed, 10 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Tim Wawrzynczak: Looks good to me, approved
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index f9b4dee..24a371d 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -118,6 +118,15 @@ }
/* _SB.DPTF */ +static void write_imok(void) +{ + acpigen_write_method("IMOK", 1); + /* Return (Arg0) */ + acpigen_emit_byte(RETURN_OP); + acpigen_emit_byte(ARG0_OP); + acpigen_write_method_end(); +} +/* _SB.DPTF */ static void write_oem_variables(const struct drivers_intel_dptf_config *config) { int i; @@ -217,6 +226,7 @@ write_open_dptf_device(dev, platform_info); write_fan(config, platform_info); write_oem_variables(config); + write_imok(); write_generic_devices(config, platform_info);
acpigen_pop_len(); /* DPTF Device (write_open_dptf_device) */