payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / starlabs / starbook / hda_verb.c
blob371ab5d5f74e1dd6a5660a5d32fe34866b48793c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/azalia_device.h>
5 #include <option.h>
6 #include <types.h>
8 #define AZALIA_CODEC_ALC256 0x10ec0256
9 #define AZALIA_CODEC_ALC269 0x10ec0269
11 static const u32 override_verb[] = {
12 AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
15 static void disable_microphone(u8 *base)
17 azalia_program_verb_table(base, override_verb, ARRAY_SIZE(override_verb));
20 void mainboard_azalia_program_runtime_verbs(u8 *base, u32 viddid)
22 if (viddid == AZALIA_CODEC_ALC256 || viddid == AZALIA_CODEC_ALC269) {
23 printk(BIOS_DEBUG, "CMOS: viddid = %08x\n", viddid);
24 if (get_uint_option("microphone", 1) == 0)
25 disable_microphone(base);