From e11a11265b62cc561efcc81dd89a01918953160a Mon Sep 17 00:00:00 2001 From: Akshu Agrawal Date: Mon, 19 Mar 2018 10:30:47 +0530 Subject: [PATCH] mb/google/kahlee: Add register address mapping for FCH MISC Audio machine driver will enable/disable clock by making it as a CCF clock in kernel. BUG=b:74570989 TEST=cherry-picked https://patchwork.kernel.org/patch/10291875/ on 4.14 kernel aplay -vv check register to see clock enabled kill aplay check register to see clock disabled Change-Id: Ia553e55ffb358415067000d2d2d2744322d1c4db Signed-off-by: Akshu Agrawal Reviewed-on: https://review.coreboot.org/25263 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- .../baseboard/include/baseboard/acpi/audio.asl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl index ea58f89a3d..0e7d03f8df 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl @@ -12,7 +12,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ - +#include /* Grunt specific I2S machine driver */ Device (I2S) @@ -20,4 +20,14 @@ Device (I2S) Name (_ADR, 1) Name (_HID, "AMD7219") Name (_CID, "AMD7219") + + Method (_CRS, 0x0, NotSerialized) { + Name (RBUF, ResourceTemplate () { + // Memory resource is for MISC FCH register set. + // It is needed for enabling the clock. + Memory32Fixed(ReadWrite, MISC_MMIO_BASE, 0x100) + }) + + Return (RBUF) + } }