blob: 482c46e81b3576a114c8c7149c8fd6319711dad6 [file] [log] [blame]
Ben-StarLabsb2db3652022-07-12 12:43:27 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <device/azalia_device.h>
4#include <stdint.h>
5
6const u32 cim_verb_data[] = {
7 /* coreboot specific header */
8 0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269 */
9 0x1e507007, /* Subsystem ID */
10 36, /* Number of jacks (NID entries) */
11
12 /* Reset Codec First */
13 AZALIA_RESET(0x1),
14
15 /* HDA Codec Subsystem ID Verb-table */
16 AZALIA_SUBVENDOR(0, 0x1e507007),
17
18 /* Pin Widget Verb-table */
19 AZALIA_PIN_CFG(0, 0x01, 0x00000000),
20 AZALIA_PIN_CFG(0, 0x12, 0x90a61120),
21 AZALIA_PIN_CFG(0, 0x14, 0x90171110),
Sean Rhodesa0ce36e2023-01-17 21:35:25 +000022 AZALIA_PIN_CFG(0, 0x17, 0x042b1010),
23 AZALIA_PIN_CFG(0, 0x18, 0x411111f0),
24 AZALIA_PIN_CFG(0, 0x19, 0x04ab1020),
25 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
26 AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
27 AZALIA_PIN_CFG(0, 0x1d, 0x411111f0),
28 AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
Ben-StarLabsb2db3652022-07-12 12:43:27 +010029 AZALIA_PIN_CFG(0, 0x21, 0x042b1010),
30
31 /* ALC269 Default 1 */
32 0x02050011,
33 0x02041410,
34 0x02050012,
35 0x02042901,
36
37 /* ALC269 Default 2 */
38 0x0205000d,
39 0x02044440,
40 0x02050007,
41 0x02040040,
42
43 /* ALC269 Default 3 */
44 0x02050002,
45 0x0204aab8,
46 0x02050008,
47 0x02040300,
48
49 /* ALC269 Default 4 */
50 0x02050017,
51 0x020400af,
52 0x02050005,
53 0x020400c0,
54
55 0x80862815, /* Codec Vendor / Device ID: Intel */
56 0x80860101, /* Subsystem ID */
57 9, /* Number of 4 dword sets */
58
59 AZALIA_SUBVENDOR(2, 0x80860101),
60
61 AZALIA_PIN_CFG(2, 0x04, 0x18560010),
62 AZALIA_PIN_CFG(2, 0x06, 0x18560010),
63 AZALIA_PIN_CFG(2, 0x08, 0x18561010),
64 AZALIA_PIN_CFG(2, 0x0a, 0x18561010),
65 AZALIA_PIN_CFG(2, 0x0b, 0x18561010),
66 AZALIA_PIN_CFG(2, 0x0c, 0x18561010),
67 AZALIA_PIN_CFG(2, 0x0d, 0x18561010),
68 AZALIA_PIN_CFG(2, 0x0e, 0x18561010),
69 AZALIA_PIN_CFG(2, 0x0f, 0x18560010),
70};
71
72const u32 pc_beep_verbs[] = {};
73
74AZALIA_ARRAY_SIZES;