coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hda_verb.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef MAINBOARD_HDA_VERB_H
4 #define MAINBOARD_HDA_VERB_H
5 
6 #include <device/azalia_device.h>
7 
8 const u32 cim_verb_data[] = {
9  /* coreboot specific header */
10  0x10ec0236, // Codec Vendor / Device ID: Realtek ALC3204
11  0xffffffff, // Subsystem ID
12  0x0000002b, // Number of jacks (NID entries)
13  /* Rest Codec First */
14  AZALIA_RESET(0x1),
15  /* HDA Codec Subsystem ID Verb-table
16  HDA Codec Subsystem ID : 0x10280A20 */
17  0x00172020,
18  0x0017210A,
19  0x00172228,
20  0x00172310,
21  /* Pin Widget Verb-table */
22  /* Widget node 0x01 : Widget Reset */
23  0x0017FF00,
24  0x0017FF00,
25  0x0017FF00,
26  0x0017FF00,
27  /* Pin widget 0x12 - DMIC1-2 */
28  0x01271C40,
29  0x01271D01,
30  0x01271EA6,
31  0x01271F90,
32  /* Pin widget 0x13 - DMIC3-4 */
33  0x01371C00,
34  0x01371D00,
35  0x01371E00,
36  0x01371F40,
37  /* Pin widget 0x14 - FRONT (Port-D) */
38  0x01471C10,
39  0x01471D01,
40  0x01471E17,
41  0x01471F90,
42  /* Pin widget 0x18 - MIC1 */
43  0x01871CF0,
44  0x01871D11,
45  0x01871E11,
46  0x01871F41,
47  /* Pin widget 0x19 - MIC2 (Port-F) */
48  0x01971C30,
49  0x01971D10,
50  0x01971Ea1,
51  0x01971F02,
52  /* Pin widget 0x1A - LINE1 (Port-C) */
53  0x01A71CF0,
54  0x01A71D11,
55  0x01A71E11,
56  0x01A71F41,
57  /* Pin widget 0x1B - LINE2 (Port-E) */
58  0x01B71CF0,
59  0x01B71D11,
60  0x01B71E11,
61  0x01B71F41,
62  /* Pin widget 0x1D - BEEP-IN */
63  0x01D71C01,
64  0x01D71D00,
65  0x01D71E70,
66  0x01D71F40,
67  /* Pin widget 0x1E - S/PDIF-OUT1 (Define special SKU for driver) */
68  0x01E71CF2,
69  0x01E71D12,
70  0x01E71E12,
71  0x01E71F42,
72  /* Pin widget 0x21 - HP-OUT (Port-I) */
73  0x02171C20,
74  0x02171D10,
75  0x02171E21,
76  0x02171F02,
77 
78  /* RESET to D0 */
79  0x00170500,
80  0x00170500,
81  0x00170500,
82  0x00170500,
83  /* RESET Register */
84  0x0205001A,
85  0x02048003,
86  0x0205001A,
87  0x0204C003,
88  /* ALC3204 default-1(Class D RESET) */
89  0x0205003C,
90  0x02040354,
91  0x0205003C,
92  0x02040314,
93  /* ALC3204 default-2 */
94  0x02050040,
95  0x02049800,
96  0x02050034,
97  0x0204023C,
98  /* ALC3204 Speaker output power - 4 ohm 2W (+12dB gain)
99  + Combo Jack TRS setting */
100  0x02050038,
101  0x02043901,
102  0x02050045,
103  0x02045089,
104  /* H/W AGC setting-1 */
105  0x02050016,
106  0x02040C50,
107  0x02050012,
108  0x0204EBC2,
109  /* H/W AGC setting-2 */
110  0x02050013,
111  0x0204401D,
112  0x02050016,
113  0x02044E50,
114  /* Zero data + EAPD to verb-control */
115  0x02050037,
116  0x0204FE15,
117  0x02050010,
118  0x02040020,
119  /* Zero data */
120  0x02050030,
121  0x02048000,
122  0x02050030,
123  0x02048000,
124  /* ALC3204 default-3 */
125  0x05750003,
126  0x05740DA3,
127  0x02050046,
128  0x02040004,
129  /* ALC3204 default-4 */
130  0x0205001B,
131  0x02040A4B,
132  0x02050008,
133  0x02046A6C,
134  /* JD1 */
135  0x02050009,
136  0x0204E003,
137  0x0205000A,
138  0x02047770,
139  /* Microphone + Array MIC security Disable +ADC clock Enable */
140  0x0205000D,
141  0x0204A020,
142  0x02050005,
143  0x02040700,
144  /* Speaker Enable */
145  0x0205000C,
146  0x020401EF,
147  0x0205000C,
148  0x020401EF,
149  /* EQ Bypass + EQ HPF cutoff 250Hz */
150  0x05350000,
151  0x0534201A,
152  0x0535001d,
153  0x05340800,
154  /* EQ-2 */
155  0x0535001e,
156  0x05340800,
157  0x05350003,
158  0x05341EF8,
159  /* EQ-3 */
160  0x05350004,
161  0x05340000,
162  0x05450000,
163  0x05442000,
164  /* EQ-4 */
165  0x0545001d,
166  0x05440800,
167  0x0545001e,
168  0x05440800,
169  /* EQ-5 */
170  0x05450003,
171  0x05441EF8,
172  0x05450004,
173  0x05440000,
174  /* EQ Update */
175  0x05350000,
176  0x0534E01A,
177  0x05350000,
178  0x0534E01A,
179 };
180 
181 const u32 pc_beep_verbs[] = {
182  /* PCBeep pass through to NID14 for ePSA test-1 */
183  0x02050036,
184  0x02047717,
185  0x02050036,
186  0x02047717,
187  /* PCBeep pass through to NID14 for ePSA test-2 */
188  0x01470740,
189  0x0143B000,
190  0x01470C02,
191  0x01470C02,
192 };
193 
195 
196 #endif
#define AZALIA_RESET(pin)
const u32 cim_verb_data[]
Definition: hda_verb.h:6
const u32 pc_beep_verbs[]
Definition: hda_verb.h:90
AZALIA_ARRAY_SIZES
Definition: hda_verb.h:99
uint32_t u32
Definition: stdint.h:51