From 6dc05a369e5dc8f098fe2cb8254d69066e06705b Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 5 Dec 2022 09:48:15 -0600 Subject: mb/google/octopus: Add NHLT endpoints for Cirrus Logic codec Add NHLT endpoints for octopus boards using CS42L42 codec. Reuse method to add da7219 endpoint as the routing is identical. TEST=boot Windows, verify audio working with coolstar's audio drivers. Change-Id: Id68997073752f5d90b6fe21f666a6140e22d65eb Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/70371 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/google/octopus/variants/baseboard/nhlt.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/google/octopus/variants/baseboard') diff --git a/src/mainboard/google/octopus/variants/baseboard/nhlt.c b/src/mainboard/google/octopus/variants/baseboard/nhlt.c index 38caa8537b..320e470c91 100644 --- a/src/mainboard/google/octopus/variants/baseboard/nhlt.c +++ b/src/mainboard/google/octopus/variants/baseboard/nhlt.c @@ -28,6 +28,12 @@ void __weak variant_nhlt_init(struct nhlt *nhlt) printk(BIOS_INFO, "Added Dialog_7219 codec.\n"); } + if (CONFIG(NHLT_DA7219) && codec == SSFC_AUDIO_CODEC_CS42L42) { + /* Use Dialog NHLT for Cirrus Logic */ + if (!nhlt_soc_add_da7219(nhlt, AUDIO_LINK_SSP2)) + printk(BIOS_INFO, "Added Cirrus Logic codec.\n"); + } + if (CONFIG(NHLT_RT5682) && (codec == SSFC_AUDIO_CODEC_RT5682 || codec == SSFC_AUDIO_CODEC_RT5682_VS)) { -- cgit v1.2.3