diff options
author | Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> | 2021-07-05 21:09:53 +0530 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-07-08 15:47:25 +0000 |
commit | f96aa7a68780529fcef97dd207416cfcee9e68b9 (patch) | |
tree | 16666e897bc4a8aa43fd671709cfe3fe479eea17 /src/drivers/intel/dptf | |
parent | 6142a989a1a5e87967d48e15beb1b92602500290 (diff) |
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>
Diffstat (limited to 'src/drivers/intel/dptf')
-rw-r--r-- | src/drivers/intel/dptf/dptf.c | 10 |
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) */ |