summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/cnvi/cnvi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cnvi/cnvi.c b/src/soc/intel/common/block/cnvi/cnvi.c
index 1c668ba7365a..6d7bbad4e8fa 100644
--- a/src/soc/intel/common/block/cnvi/cnvi.c
+++ b/src/soc/intel/common/block/cnvi/cnvi.c
@@ -113,6 +113,9 @@ static void cnvw_fill_ssdt(const struct device *dev)
* Method(_ON, 0)
* {
* If (CondRefOf (\_SB.PCI0.CNVC)) {
+ * If ((\_SB.PCI0.CNVS() == 1)) {
+ * Return (1)
+ * }
* \_SB.PCI0.CNVS(1)
* }
* }
@@ -194,6 +197,17 @@ static void cnvw_fill_ssdt(const struct device *dev)
{
acpigen_write_if_cond_ref_of("\\_SB.PCI0.CNVC");
{
+
+ acpigen_write_store();
+ acpigen_emit_namestring("\\_SB.PCI0.CNVS");
+ acpigen_emit_byte(LOCAL0_OP);
+
+ acpigen_write_if_lequal_op_int(LOCAL0_OP, 1);
+ {
+ acpigen_write_return_integer(1);
+ }
+ acpigen_pop_len();
+
acpigen_emit_namestring("\\_SB.PCI0.CNVC");
acpigen_emit_byte(1);
}