summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/da7219/da7219.c
diff options
context:
space:
mode:
authorAkshu Agrawal <akshu.agrawal@amd.com>2018-04-25 17:53:56 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-05-04 10:04:37 +0000
commit5418b9bbfe0573c8996ed46e4e22b2fc5de144a4 (patch)
tree771b978dd0b38a6dc57ab0a17c2e93377822611b /src/drivers/i2c/da7219/da7219.c
parentd6dbdb264f947c2cca1b2c067bc5090da04cf2e1 (diff)
downloadcoreboot-5418b9bbfe0573c8996ed46e4e22b2fc5de144a4.tar.xz
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@amd.com> Reviewed-on: https://review.coreboot.org/25919 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/i2c/da7219/da7219.c')
-rw-r--r--src/drivers/i2c/da7219/da7219.c2
1 files changed, 2 insertions, 0 deletions
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 */