summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/i2c/max98927/chip.h4
-rw-r--r--src/drivers/i2c/max98927/max98927.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/i2c/max98927/chip.h b/src/drivers/i2c/max98927/chip.h
index c7101bc01f..765bafdae8 100644
--- a/src/drivers/i2c/max98927/chip.h
+++ b/src/drivers/i2c/max98927/chip.h
@@ -27,4 +27,8 @@ struct drivers_i2c_max98927_config {
const char *desc;
/* ACPI Device Name */
const char *name;
+ /* slot number where voltage feedback will be received */
+ unsigned int vmon_slot_no;
+ /* slot number where current feedback will be received */
+ unsigned int imon_slot_no;
};
diff --git a/src/drivers/i2c/max98927/max98927.c b/src/drivers/i2c/max98927/max98927.c
index 976c2f259a..e9fc00d433 100644
--- a/src/drivers/i2c/max98927/max98927.c
+++ b/src/drivers/i2c/max98927/max98927.c
@@ -61,6 +61,8 @@ static void max98927_fill_ssdt(struct device *dev)
dp = acpi_dp_new_table("_DSD");
acpi_dp_add_integer(dp, "interleave_mode", config->interleave_mode);
+ acpi_dp_add_integer(dp, "vmon-slot-no", config->vmon_slot_no);
+ acpi_dp_add_integer(dp, "imon-slot-no", config->imon_slot_no);
acpi_dp_write(dp);