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
0x10ec0295,
// Codec Vendor / Device ID: Realtek ALC3254
11
0xffffffff,
// Subsystem ID
12
0x0000002b,
// Number of jacks (NID entries)
13
14
/* Rest Codec First */
15
AZALIA_RESET
(0x1),
16
/* NID 0x01, HDA Codec Subsystem ID Verb Table */
17
AZALIA_SUBVENDOR
(0, 0x102808b6),
18
19
/* Pin Widget Verb Table */
20
AZALIA_PIN_CFG
(0, 0x12, 0xb7a60130),
21
AZALIA_PIN_CFG
(0, 0x13, 0x411111f0),
22
AZALIA_PIN_CFG
(0, 0x14, 0x90170110),
23
AZALIA_PIN_CFG
(0, 0x16, 0x40000000),
24
AZALIA_PIN_CFG
(0, 0x17, 0x411111f0),
25
AZALIA_PIN_CFG
(0, 0x18, 0x411111f0),
26
AZALIA_PIN_CFG
(0, 0x19, 0x04a11030),
27
AZALIA_PIN_CFG
(0, 0x1a, 0x411111f0),
28
AZALIA_PIN_CFG
(0, 0x1b, 0x411111f0),
29
AZALIA_PIN_CFG
(0, 0x1d, 0x40c00001),
30
AZALIA_PIN_CFG
(0, 0x1e, 0x421212f2),
31
AZALIA_PIN_CFG
(0, 0x21, 0x04211020),
32
33
/* D reset */
34
0x0205003C,
35
0x0204F254,
36
0x0205003C,
37
0x0204F214,
38
/* JD1 - 2port JD mode */
39
0x02050009,
40
0x0204E003,
41
0x0205000A,
42
0x02047770,
43
/* Set TRS type-1 */
44
0x02050045,
45
0x02045289,
46
0x02050049,
47
0x02040049,
48
/* Set TRS type-2 + Set UAJ Line2 vref(ALC3254) */
49
0x0205004A,
50
0x0204A830,
51
0x02050063,
52
0x0204CF00,
53
/* NID 0x20 set class-D to 2W@4ohm (+12dB gain)
54
* + Set sine tone gain(0x34) */
55
0x02050038,
56
0x02043909,
57
0x05C50000,
58
0x05C43482,
59
/* AGC-1 Disable + (Front Gain=0dB ) */
60
0x05D50006,
61
0x05D44C50,
62
0x05D50002,
63
0x05D44004,
64
/* AGC-2 (Backt Boost Gain= -0.375dB ,Limiter = -3dB) */
65
0x05D50003,
66
0x05D45E5E,
67
0x05D50001,
68
0x05D4D788,
69
/* AGC-3 + AGC Enable */
70
0x05D50009,
71
0x05D451FF,
72
0x05D50006,
73
0x05D44E50,
74
/* HP-JD Enable +Nokia type */
75
0x0205004A,
76
0x02042010,
77
0x02050008,
78
0x02046A0C,
79
/* EAPD set to verb-control + I2C Un-use+ DVDD3.3V */
80
0x02050010,
81
0x02040020,
82
0x02050034,
83
0x0204A23D,
84
/* Class D silent detection Enable -84dB threshold */
85
0x02050030,
86
0x02049000,
87
0x02050037,
88
0x0204FE15,
89
/* Disable EQ + set 250Hz 3rd High Pass filter */
90
0x05350000,
91
0x0534203A,
92
0x05350000,
93
0x0534203A,
94
/* Left Channel-1 */
95
0x0535001d,
96
0x05340800,
97
0x0535001e,
98
0x05340800,
99
/* Left Channel-2 */
100
0x05350003,
101
0x05341EF8,
102
0x05350004,
103
0x05340000,
104
/* Left Channel-3 */
105
0x05350005,
106
0x053403EE,
107
0x05350006,
108
0x0534FA60,
109
/* Left Channel-4 */
110
0x05350007,
111
0x05341E10,
112
0x05350008,
113
0x05347B86,
114
/* Left Channel-5 */
115
0x05350009,
116
0x053401F7,
117
0x0535000A,
118
0x05349FB6,
119
/* Left Channel-6 */
120
0x0535000B,
121
0x05341C00,
122
0x0535000C,
123
0x05340000,
124
/* Left Channel-7 */
125
0x0535000D,
126
0x05340200,
127
0x0535000E,
128
0x05340000,
129
/* Right Channel-1 */
130
0x05450000,
131
0x05442000,
132
0x0545001d,
133
0x05440800,
134
/* Right Channel-2 */
135
0x0545001e,
136
0x05440800,
137
0x05450003,
138
0x05441EF8,
139
/* Right Channel-3 */
140
0x05450004,
141
0x05440000,
142
0x05450005,
143
0x054403EE,
144
/* Right Channel-4 */
145
0x05450006,
146
0x0544FA60,
147
0x05450007,
148
0x05441E10,
149
/* Right Channel-5 */
150
0x05450008,
151
0x05447B86,
152
0x05450009,
153
0x054401F7,
154
/* Right Channel-6 */
155
0x0545000A,
156
0x05449FB6,
157
0x0545000B,
158
0x05441C00,
159
/* Right Channel-7 */
160
0x0545000C,
161
0x05440000,
162
0x0545000D,
163
0x05440200,
164
/* Right Channel-8 + EQ Update & Enable */
165
0x0545000E,
166
0x05440000,
167
0x05350000,
168
0x0534E03A,
169
/* Enable all Microphone */
170
0x0205000D,
171
0x0204A023,
172
0x0205000D,
173
0x0204A023,
174
/* Enable Internal Speaker (NID14) */
175
0x0205000F,
176
0x02040000,
177
0x0205000F,
178
0x02040000,
179
};
180
181
const
u32
pc_beep_verbs
[] = {
182
/* PCBeep pass through to NID14 for ePSA test-1 */
183
0x02050036,
184
0x020477D7,
185
0x0143B000,
186
0x01470740,
187
/* PCBeep pass through to NID14 for ePSA test-2 */
188
0x01470C02,
189
0x01470C02,
190
0x01470C02,
191
0x01470C02,
192
};
193
194
AZALIA_ARRAY_SIZES
;
195
196
#endif
azalia_device.h
AZALIA_SUBVENDOR
#define AZALIA_SUBVENDOR(codec, val)
Definition:
azalia_device.h:148
AZALIA_PIN_CFG
#define AZALIA_PIN_CFG(codec, pin, val)
Definition:
azalia_device.h:134
AZALIA_RESET
#define AZALIA_RESET(pin)
Definition:
azalia_device.h:142
cim_verb_data
const u32 cim_verb_data[]
Definition:
hda_verb.h:6
pc_beep_verbs
const u32 pc_beep_verbs[]
Definition:
hda_verb.h:90
AZALIA_ARRAY_SIZES
AZALIA_ARRAY_SIZES
Definition:
hda_verb.h:99
u32
uint32_t u32
Definition:
stdint.h:51
src
mainboard
google
drallion
variants
drallion
include
variant
hda_verb.h
Generated by
1.9.1