diff options
Diffstat (limited to 'src/drivers/i2c')
-rw-r--r-- | src/drivers/i2c/max98390/chip.h | 4 | ||||
-rw-r--r-- | src/drivers/i2c/max98390/max98390.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/i2c/max98390/chip.h b/src/drivers/i2c/max98390/chip.h index d01237b418..c60b44cc0c 100644 --- a/src/drivers/i2c/max98390/chip.h +++ b/src/drivers/i2c/max98390/chip.h @@ -14,4 +14,8 @@ struct drivers_i2c_max98390_config { /* The VPD key of temperature during speaker calibration. */ const char *temperature_calib_key; const char *dsm_param_file_name; + /* slot number where voltage feedback will be received */ + uint32_t vmon_slot_no; + /* slot number where current feedback will be received */ + uint32_t imon_slot_no; }; diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c index 4beb6c29b7..08ed625163 100644 --- a/src/drivers/i2c/max98390/max98390.c +++ b/src/drivers/i2c/max98390/max98390.c @@ -79,6 +79,12 @@ static void max98390_fill_ssdt(const struct device *dev) } } + if (!dp) + dp = acpi_dp_new_table("_DSD"); + + acpi_dp_add_integer(dp, "maxim,vmon-slot-no", config->vmon_slot_no); + acpi_dp_add_integer(dp, "maxim,imon-slot-no", config->imon_slot_no); + if (dp) acpi_dp_write(dp); |