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 <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70371
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Matt DeVillier 2022-12-05 09:48:15 -06:00 committed by Martin L Roth
parent f8fdd7a8de
commit 6dc05a369e
1 changed files with 6 additions and 0 deletions

View File

@ -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)) {