[coreboot-gerrit] Change in coreboot[master]: drivers/i2c/max98373: update DT property names

Sathyanarayana Nujella (Code Review) gerrit at coreboot.org
Fri May 25 08:55:44 CEST 2018


Sathyanarayana Nujella has uploaded this change for review. ( https://review.coreboot.org/26532


Change subject: drivers/i2c/max98373: update DT property names
......................................................................

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 at intel.com>
---
M src/drivers/i2c/max98373/max98373.c
1 file changed, 5 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/26532/1

diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c
index 5766671..19dd787 100644
--- a/src/drivers/i2c/max98373/max98373.c
+++ b/src/drivers/i2c/max98373/max98373.c
@@ -62,9 +62,11 @@
 	/* 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);
 

-- 
To view, visit https://review.coreboot.org/26532
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa4b14492dbb5a0087242f1485493f3192336f60
Gerrit-Change-Number: 26532
Gerrit-PatchSet: 1
Gerrit-Owner: Sathyanarayana Nujella <sathyanarayana.nujella at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180525/aa494e54/attachment.html>


More information about the coreboot-gerrit mailing list