mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / lenovo / x131e / hda_verb.c
blobca59efbb611f35aa60038f6bc009ecfe0e53e00a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/azalia_device.h>
5 const u32 cim_verb_data[] = {
6 /* coreboot specific header */
7 0x10ec0269, // Codec Vendor / Device ID: Realtek
8 0x17aa21fe, // Subsystem ID
9 0x0000000b, // Number of jacks
11 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */
12 AZALIA_SUBVENDOR(0, 0x17aa21fe),
14 /* Pin Widget Verb Table */
16 /* Pin Complex (NID 0x12): 0x90a60930 DMIC */
17 AZALIA_PIN_CFG(0, 0x12, 0x90a60930),
19 /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */
20 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
22 /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */
23 AZALIA_PIN_CFG(0, 0x15, 0x0321101f),
25 /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */
26 AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
28 /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */
29 AZALIA_PIN_CFG(0, 0x18, 0x03a11820),
31 /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */
32 AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
34 /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */
35 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
37 /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */
38 AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
40 /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */
41 AZALIA_PIN_CFG(0, 0x1d, 0x4016862d),
43 /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */
44 AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
46 /* coreboot specific header */
47 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI
48 0x80860101, // Subsystem ID
49 0x00000004, // Number of jacks
51 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
52 AZALIA_SUBVENDOR(3, 0x80860101),
54 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
55 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
57 /* Pin Complex (NID 0x06) Not Connected */
58 AZALIA_PIN_CFG(3, 0x06, 0x58560020),
60 /* Pin Complex (NID 0x07) Not Connected */
61 AZALIA_PIN_CFG(3, 0x07, 0x58560030),
64 const u32 pc_beep_verbs[] = {
65 0x00170500, /* power up everything (codec, dac, adc, mixers) */
66 0x01470740, /* enable speaker out */
67 0x01470c02, /* set speaker EAPD pin */
68 0x0143b01f, /* unmute speaker */
69 0x00c37100, /* unmute mixer nid 0xc input 1 */
70 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */
72 AZALIA_ARRAY_SIZES;