Commit 5418b9bb authored by Akshu Agrawal's avatar Akshu Agrawal Committed by Patrick Georgi

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: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
Reviewed-on: https://review.coreboot.org/25919Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
parent d6dbdb26
......@@ -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;
};
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment