coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
nhlt.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <baseboard/variants.h>
4 #include <console/console.h>
5 #include <nhlt.h>
6 #include <soc/nhlt.h>
7 #include <gpio.h>
8 #include <baseboard/gpio.h>
9 
11 {
12  /* 1-dmic configuration */
13  if (CONFIG(NHLT_DMIC_1CH_16B) &&
15  printk(BIOS_ERR, "Added 1CH DMIC array.\n");
16  /* 2-dmic configuration */
17  if (CONFIG(NHLT_DMIC_2CH_16B) &&
19  printk(BIOS_ERR, "Added 2CH DMIC array.\n");
20  /* 4-dmic configuration */
21  if (CONFIG(NHLT_DMIC_4CH_16B) &&
23  printk(BIOS_ERR, "Added 4CH DMIC array.\n");
24  /* Dialog for Headset codec.
25  * Headset codec is bi-directional but uses the same configuration
26  * settings for render and capture endpoints.
27  */
29  printk(BIOS_ERR, "Added Dialog_7219 codec.\n");
30 
31  /* MAXIM Smart Amps for left and right speakers. */
33  printk(BIOS_ERR, "Added Maxim_98357 codec.\n");
34 }
#define printk(level,...)
Definition: stdlib.h:16
@ CONFIG
Definition: dsi_common.h:201
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition: loglevel.h:72
void __weak variant_nhlt_init(struct nhlt *nhlt)
Definition: nhlt.c:7
const struct smm_save_state_ops *legacy_ops __weak
Definition: save_state.c:8
@ AUDIO_LINK_SSP5
Definition: nhlt.h:20
@ AUDIO_LINK_SSP1
Definition: nhlt.h:16
int nhlt_soc_add_da7219(struct nhlt *nhlt, int hwlink)
Definition: nhlt.c:232
int nhlt_soc_add_dmic_array(struct nhlt *nhlt, int num_channels)
Definition: nhlt.c:168
int nhlt_soc_add_max98357(struct nhlt *nhlt, int hwlink)
Definition: nhlt.c:239
Definition: nhlt.h:287