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
#include <baseboard/variants.h>
3
#include <
console/console.h
>
4
#include <nhlt.h>
5
#include <soc/nhlt.h>
6
7
void
__weak
variant_nhlt_init
(
struct
nhlt
*
nhlt
)
8
{
9
10
/* RT5663 Headset codec */
11
if
(
nhlt_soc_add_rt5663
(
nhlt
,
AUDIO_LINK_SSP1
))
12
printk
(
BIOS_ERR
,
"Couldn't add headset codec.\n"
);
13
14
}
15
16
void
__weak
variant_nhlt_oem_overrides
(
const
char
**oem_id,
17
const
char
**oem_table_id,
18
uint32_t
*oem_revision)
19
{
20
*oem_id =
"GOOGLE"
;
21
*oem_table_id =
"FIZZ"
;
22
*oem_revision = 0;
23
}
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
BIOS_ERR
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition:
loglevel.h:72
variant_nhlt_oem_overrides
void __weak variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id, uint32_t *oem_revision)
Definition:
nhlt.c:16
variant_nhlt_init
void __weak variant_nhlt_init(struct nhlt *nhlt)
Definition:
nhlt.c:7
__weak
const struct smm_save_state_ops *legacy_ops __weak
Definition:
save_state.c:8
AUDIO_LINK_SSP1
@ AUDIO_LINK_SSP1
Definition:
nhlt.h:16
nhlt_soc_add_rt5663
int nhlt_soc_add_rt5663(struct nhlt *nhlt, int hwlink)
Definition:
rt5663.c:57
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
nhlt
Definition:
nhlt.h:287
src
mainboard
google
fizz
variants
baseboard
nhlt.c
Generated by
1.9.1