[coreboot-gerrit] Change in coreboot[master]: drivers/i2c/da7219: Add mclk-name property

Akshu Agrawal (Code Review) gerrit at coreboot.org
Mon Apr 30 11:17:40 CEST 2018


Akshu Agrawal has uploaded this change for review. ( https://review.coreboot.org/25919


Change subject: drivers/i2c/da7219: Add mclk-name property
......................................................................

drivers/i2c/da7219: Add mclk-name property

Non-dts based systems can pass mclk to da7219 driver by
this property.

BUG=b:74570989
TEST=Enabled clock in kernel driver using the property

Change-Id: I2e10769e5b3c6b3aa30f340fe0e88c29b87430cb
Signed-off-by: Akshu Agrawal <akshu.agrawal at amd.com>
---
M src/drivers/i2c/da7219/chip.h
M src/drivers/i2c/da7219/da7219.c
2 files changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/25919/1

diff --git a/src/drivers/i2c/da7219/chip.h b/src/drivers/i2c/da7219/chip.h
index 572d727..deb1c26 100644
--- a/src/drivers/i2c/da7219/chip.h
+++ b/src/drivers/i2c/da7219/chip.h
@@ -106,4 +106,10 @@
 	 * [<1>, <2>, <4>, <8>]
 	 */
 	unsigned adc_1bit_rpt;
+
+	/*
+	 * mclk-name : Pass the system clk to da7219
+	 * ["name of mclk" ]
+	 */
+	const char *mclk_name;
 };
diff --git a/src/drivers/i2c/da7219/da7219.c b/src/drivers/i2c/da7219/da7219.c
index c0f152d..10d9152 100644
--- a/src/drivers/i2c/da7219/da7219.c
+++ b/src/drivers/i2c/da7219/da7219.c
@@ -86,6 +86,7 @@
 	dsd = acpi_dp_new_table("_DSD");
 	acpi_dp_add_integer(dsd, "dlg,micbias-lvl", config->micbias_lvl);
 	acpi_dp_add_string(dsd, "dlg,mic-amp-in-sel", config->mic_amp_in_sel);
+	acpi_dp_add_string(dsd, "dlg,mclk-name", config->mclk_name);
 	acpi_dp_add_child(dsd, "da7219_aad", aad);
 
 	/* Write Device Property Hierarchy */

-- 
To view, visit https://review.coreboot.org/25919
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: I2e10769e5b3c6b3aa30f340fe0e88c29b87430cb
Gerrit-Change-Number: 25919
Gerrit-PatchSet: 1
Gerrit-Owner: Akshu Agrawal <akshu.agrawal at amd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180430/5d91ffa0/attachment.html>


More information about the coreboot-gerrit mailing list