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 
8 void variant_nhlt_init(struct nhlt *nhlt)
9 {
10  /* 4 Channel DMIC array. */
12  printk(BIOS_ERR, "Couldn't add 4CH DMIC array.\n");
13 
14  /* MAXIM Smart Amps for left and right speakers. */
16  printk(BIOS_ERR, "Couldn't add Maxim 98373 codec.\n");
17 }
18 
19 void variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id,
20  uint32_t *oem_revision)
21 {
22  *oem_id = "GOOGLE";
23  *oem_table_id = "NOCTURNE";
24  *oem_revision = 0;
25 }
#define printk(level,...)
Definition: stdlib.h:16
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition: loglevel.h:72
void __weak variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id, uint32_t *oem_revision)
Definition: nhlt.c:16
void __weak variant_nhlt_init(struct nhlt *nhlt)
Definition: nhlt.c:7
@ AUDIO_LINK_SSP0
Definition: nhlt.h:15
int nhlt_soc_add_dmic_array(struct nhlt *nhlt, int num_channels)
Definition: nhlt.c:168
int nhlt_soc_add_max98373(struct nhlt *nhlt, int hwlink)
Definition: nhlt.c:253
unsigned int uint32_t
Definition: stdint.h:14
Definition: nhlt.h:287