summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/intel/dptf/dptf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c
index f9b4dee5c5..24a371dda6 100644
--- a/src/drivers/intel/dptf/dptf.c
+++ b/src/drivers/intel/dptf/dptf.c
@@ -118,6 +118,15 @@ static void write_fan(const struct drivers_intel_dptf_config *config,
}
/* \_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 @@ 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) */