From 09ab15798a232d70824e60699f4c7c296234f82f Mon Sep 17 00:00:00 2001 From: Cheng-Yi Chiang Date: Wed, 1 Nov 2017 15:01:34 +0800 Subject: mb/google/eve: Add DSP calibration clock name/rate for RT5514 Add a property for DSP calibration clock name and rate such that RT5514 codec driver can control ssp1_mclk for DSP clock calibration. BUG=b:67763576 TEST=boot on eve check RT5514 codec driver can get this device property. Change-Id: Icf9695ef67efb2bb073e39b2ece02d57f0460a0c Signed-off-by: Duncan Laurie Original-Signed-off-by: Cheng-Yi Chiang Original-Change-Id: Ie204dda81a099f23beb20be71380a8494a9bee31 Original-Reviewed-on: https://chromium-review.googlesource.com/756261 Original-Reviewed-by: Dylan Reid Original-Reviewed-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/22451 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh --- src/mainboard/google/eve/devicetree.cb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/eve/devicetree.cb b/src/mainboard/google/eve/devicetree.cb index 30a327e2cc..a0b0ea6194 100644 --- a/src/mainboard/google/eve/devicetree.cb +++ b/src/mainboard/google/eve/devicetree.cb @@ -310,11 +310,19 @@ chip soc/intel/skylake register "hid" = ""10EC5514"" register "name" = ""RT54"" register "desc" = ""Realtek RT5514"" - register "property_count" = "1" + register "property_count" = "3" # Set the DMIC initial delay to 16ms to avoid pop noise register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" register "property_list[0].name" = ""realtek,dmic-init-delay"" register "property_list[0].integer" = "16" + # Set clock name for RT5514 to calibrate DSP clock. + register "property_list[1].type" = "ACPI_DP_TYPE_STRING" + register "property_list[1].name" = ""realtek,dsp-calib-clk-name"" + register "property_list[1].string" = ""ssp1_mclk"" + # Set clock rate for RT5514 to calibrate DSP clock. + register "property_list[2].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[2].name" = ""realtek,dsp-calib-clk-rate"" + register "property_list[2].integer" = "24000000" device i2c 57 on end end end # I2C #4 -- cgit v1.2.3