summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/da7219/chip.h6
-rw-r--r--src/drivers/i2c/da7219/da7219.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/i2c/da7219/chip.h b/src/drivers/i2c/da7219/chip.h
index 572d7279a5..deb1c26b3e 100644
--- a/src/drivers/i2c/da7219/chip.h
+++ b/src/drivers/i2c/da7219/chip.h
@@ -106,4 +106,10 @@ struct drivers_i2c_da7219_config {
* [<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 c0f152d237..b8af689312 100644
--- a/src/drivers/i2c/da7219/da7219.c
+++ b/src/drivers/i2c/da7219/da7219.c
@@ -86,6 +86,8 @@ static void da7219_fill_ssdt(struct device *dev)
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);
+ if (config->mclk_name != NULL)
+ acpi_dp_add_string(dsd, "dlg,mclk-name", config->mclk_name);
acpi_dp_add_child(dsd, "da7219_aad", aad);
/* Write Device Property Hierarchy */