diff options
author | Karthikeyan Ramasubramanian <kramasub@google.com> | 2021-04-23 09:51:41 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2021-04-29 15:11:16 +0000 |
commit | e71a6ee9a6092ca0611bf858c8145d94dc192e43 (patch) | |
tree | 65e8cb4aa68f59d3d589c7c5ddb56f9efe49ca21 | |
parent | fbb027e8c7b77e89f48b20789e91c13b9e607c08 (diff) |
mb/google/guybrush: Configure Audio Co-processor
Configure Audio Co-processor(ACP) to operate in I2S TDM mode. Also fix
the scope in which ACP is defined in the devicetree.
BUG=b:182960979
TEST=Build and boot to OS in Guybrush. Ensure that the ACPD device is
enabled in the appropriate scope in SSDT.
Change-Id: Ic90fd82e5c34a9feb9a80c4538a45e7c2fb91add
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52645
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
-rw-r--r-- | src/mainboard/google/guybrush/variants/baseboard/devicetree.cb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb index b0bfa9614f..3097425f02 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb @@ -1,6 +1,12 @@ # SPDX-License-Identifier: GPL-2.0-or-later chip soc/amd/cezanne + register "common_config.acp_config" = "{ + .acp_pin_cfg = I2S_PINS_I2S_TDM, + .acp_i2s_wake_enable = 0, + .acp_pme_enable = 0, + }" + # eSPI Configuration register "common_config.espi_config" = "{ .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, @@ -130,6 +136,12 @@ chip soc/amd/cezanne end end end + device ref acp on + chip drivers/amd/i2s_machine_dev + register "hid" = ""AMDI5682"" + device generic 0.0 on end + end + end # Audio end device ref lpc_bridge on @@ -137,13 +149,6 @@ chip soc/amd/cezanne device pnp 0c09.0 on end end end - - device ref acp on - chip drivers/amd/i2s_machine_dev - register "hid" = ""AMDI5682"" - device generic 0.0 on end - end - end # Audio end # domain device ref i2c_3 on |