diff options
author | Sathyanarayana Nujella <sathyanarayana.nujella@intel.com> | 2018-05-24 23:46:51 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-28 16:08:42 +0000 |
commit | adb176b81a14f048d64e26980c0b4a87068dca66 (patch) | |
tree | 54aa1379bd3abc84967b9a45524ce446c6142f89 /src/drivers/i2c/max98373/max98373.c | |
parent | 4702914e34a1cd3dc04f1396d549a120918abb58 (diff) | |
download | coreboot-adb176b81a14f048d64e26980c0b4a87068dca66.tar.xz |
drivers/i2c/max98373: update DT property names
Upstream Kernel side codec driver expect DT properties
to have 'maxim' prefix.
Update accordingly while filling SSDT entries.
BUG=b:79362472
TEST=dump DT properties in kerenl side and cross checked
TEST=Audio playback works with this change
Change-Id: Iaa4b14492dbb5a0087242f1485493f3192336f60
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Reviewed-on: https://review.coreboot.org/26532
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/i2c/max98373/max98373.c')
-rw-r--r-- | src/drivers/i2c/max98373/max98373.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c index 576667176a..19dd7879e9 100644 --- a/src/drivers/i2c/max98373/max98373.c +++ b/src/drivers/i2c/max98373/max98373.c @@ -62,9 +62,11 @@ static void max98373_fill_ssdt(struct device *dev) /* Device Properties */ 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); + if (config->interleave_mode) + acpi_dp_add_integer(dp, "maxim,interleave_mode", + config->interleave_mode); + 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); acpi_dp_write(dp); |