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>
This commit is contained in:
Sumeet Pawnikar 2021-07-05 21:09:53 +05:30 committed by Felix Held
parent 6142a989a1
commit f96aa7a687
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,15 @@ static void write_fan(const struct drivers_intel_dptf_config *config,
acpigen_pop_len(); /* Device */
}
/* \_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)
{
@ -217,6 +226,7 @@ static void write_device_definitions(const struct device *dev)
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) */