diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/intel/dptf/chip.h | 3 | ||||
-rw-r--r-- | src/drivers/intel/dptf/dptf.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/intel/dptf/chip.h b/src/drivers/intel/dptf/chip.h index 9bbf11f2f7..7f931824f8 100644 --- a/src/drivers/intel/dptf/chip.h +++ b/src/drivers/intel/dptf/chip.h @@ -73,6 +73,9 @@ struct drivers_intel_dptf_config { /* Rest of platform Power */ uint32_t prop; + /* Device Configuration */ + uint32_t dcfg; + bool dptf_multifan_support; }; diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index f313540d59..5bbbc1bb7f 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -158,6 +158,12 @@ static void write_imok(void) acpigen_emit_byte(ARG0_OP); acpigen_write_method_end(); } + +static void write_dcfg_variable(const struct drivers_intel_dptf_config *config) +{ + acpigen_write_name_integer("DCFG", config->dcfg); +} + /* \_SB.DPTF */ static void write_oem_variables(const struct drivers_intel_dptf_config *config) { @@ -520,6 +526,7 @@ static void write_device_definitions(const struct device *dev) } else write_fan(config, platform_info, DPTF_FAN); + write_dcfg_variable(config); write_oem_variables(config); write_imok(); write_generic_devices(config, platform_info); |