soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / link / hda_verb.c
blobd3309cd6d78ad83b1f8ddf57106eba38f03dbd82
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 0x11020011, // Codec Vendor / Device ID: Creative CA0132
8 0x10280550, // Subsystem ID
9 0x00000015, // Number of jacks + Number of Malcolm setup blocks.
11 /* Malcolm Setup */
13 0x01570d09,
14 0x01570c23,
15 0x01570a01,
16 0x01570df0,
18 0x01570efe,
19 0x01570775,
20 0x015707d3,
21 0x01570709,
23 0x01570753,
24 0x015707d4,
25 0x015707ef,
26 0x01570775,
28 0x015707d3,
29 0x01570709,
30 0x01570702,
31 0x01570737,
33 0x01570778,
34 0x01553cce,
35 0x015575c9,
36 0x01553dce,
38 0x0155b7c9,
39 0x01570de8,
40 0x01570efe,
41 0x01570702,
43 0x01570768,
44 0x01570762,
45 0x01553ace,
46 0x015546c9,
48 0x01553bce,
49 0x0155e8c9,
50 0x01570d49,
51 0x01570c88,
53 0x01570d20,
54 0x01570e19,
55 0x01570700,
56 0x01571a05,
58 0x01571b29,
59 0x01571a04,
60 0x01571b29,
61 0x01570a01,
63 /* Enable and set EAPD pin for headphone jack */
64 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2),
65 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
66 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
67 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
69 /* Pin Widget Verb Table */
71 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10280550 */
72 AZALIA_SUBVENDOR(0, 0x10280550),
74 /* Pin Complex (NID 0x0B) Port-G Analog Unknown Speaker at Int N/A */
75 AZALIA_PIN_CFG(0, 0x0b, 0x901700f0),
77 /* Pin Complex (NID 0x0C) N/C */
78 AZALIA_PIN_CFG(0, 0x0c, 0x70f000f0),
80 /* Pin Complex (NID 0x0D) N/C */
81 AZALIA_PIN_CFG(0, 0x0d, 0x70f000f0),
83 /* Pin Complex (NID 0x0E) N/C */
84 AZALIA_PIN_CFG(0, 0x0e, 0x70f000f0),
86 /* Pin Complex (NID 0x0F) N/C */
87 AZALIA_PIN_CFG(0, 0x0f, 0x70f000f0),
89 /* Pin Complex (NID 0x10) Port-D 1/8 Black HP Out at Ext Left */
90 AZALIA_PIN_CFG(0, 0x10, 0x032110f0),
92 /* Pin Complex (NID 0x11) Port-B Click Mic */
93 AZALIA_PIN_CFG(0, 0x11, 0x90a700f0),
95 /* Pin Complex (NID 0x12) Port-C Combo Jack Mic or D-Mic */
96 AZALIA_PIN_CFG(0, 0x12, 0x03a110f0),
98 /* Pin Complex (NID 0x13) What you hear */
99 AZALIA_PIN_CFG(0, 0x13, 0x90d600f0),
101 /* coreboot specific header */
102 0x80862806, // Codec Vendor / Device ID: Intel CougarPoint HDMI
103 0x80860101, // Subsystem ID
104 0x00000004, // Number of jacks
106 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
107 AZALIA_SUBVENDOR(3, 0x80860101),
109 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
110 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
112 /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
113 AZALIA_PIN_CFG(3, 0x06, 0x18560020),
115 /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
116 AZALIA_PIN_CFG(3, 0x07, 0x18560030),
119 const u32 pc_beep_verbs[] = {
120 0x00170500, /* power up codec */
121 0x00270500, /* power up DAC */
122 0x00b70500, /* power up speaker */
123 0x00b70740, /* enable speaker out */
124 0x00b78d00, /* enable EAPD pin */
125 0x00b70c02, /* set EAPD pin */
126 0x0143b013, /* beep volume */
128 AZALIA_ARRAY_SIZES;