Debian Codegraph @

src/mainboard/google/fatcat/variants/francka/hda_verb.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <device/azalia_device.h>
4
5 const u32 cim_verb_data[] = {
6 /* coreboot specific header */
7 0x10ec0256, /* Codec Vendor / Device ID: Realtek ALC256 */
8 0x10ec12ac, /* Subsystem ID */
9 0x00000015, /* Number of jacks (NID entries) */
10
11 AZALIA_RESET(0x1),
12 /* NID 0x01, HDA Codec Subsystem ID Verb Table */
13 AZALIA_SUBVENDOR(0, 0x10ec12ac),
14
15 /* Pin Widget Verb Table */
16 /*
17 * DMIC
18 * Internal DMIC.
19 */
20 AZALIA_PIN_CFG(0, 0x12, 0x90A60130),
21 AZALIA_PIN_CFG(0, 0x13, 0x90A60140),
22 /* Pin widget 0x14 - Front (Port-D) */
23 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
24 /* Pin widget 0x18 - NPC */
25 AZALIA_PIN_CFG(0, 0x18, 0x411111F0),
26 /* Pin widget 0x19 - MIC2 (Port-F) */
27 AZALIA_PIN_CFG(0, 0x19, 0x04A11040),
28 /* Pin widget 0x1A - LINE1 (Port-C) */
29 AZALIA_PIN_CFG(0, 0x1a, 0x411111F0),
30 /* Pin widget 0x1B - NPC */
31 AZALIA_PIN_CFG(0, 0x1b, 0x411111F0),
32 /* Pin widget 0x1D - BEEP-IN */
33 AZALIA_PIN_CFG(0, 0x1d, 0x40610041),
34 /* Pin widget 0x1E - NPC */
35 AZALIA_PIN_CFG(0, 0x1e, 0x411111F0),
36 /* Pin widget 0x21 - HP1-OUT (Port-I) */
37 AZALIA_PIN_CFG(0, 0x21, 0x04211020),
38 /*
39 * Widget node 0x20 - 1
40 * Codec hidden reset and speaker power 2W/4ohm
41 */
42 0x0205001A,
43 0x0204C003,
44 0x02050038,
45 0x02047901,
46 /*
47 * Widget node 0x20 - 2
48 * Class D power on Reset
49 */
50 0x0205003C,
51 0x02040354,
52 0x0205003C,
53 0x02040314,
54 /*
55 * Widget node 0x20 - 3
56 * Disable AGC and set AGC limit to -1.5dB
57 */
58 0x02050016,
59 0x02040C50,
60 0x02050012,
61 0x0204EBC1,
62 /*
63 * Widget node 0x20 - 4
64 * Set AGC Post gain +1.5dB then Enable AGC
65 */
66 0x02050013,
67 0x02044023,
68 0x02050016,
69 0x02040E50,
70 /*
71 * Widget node 0x20 - 5
72 * Silence detector enabling + Set EAPD to verb control
73 */
74 0x02050037,
75 0x0204FE15,
76 0x02050010,
77 0x02040020,
78 /*
79 * Widget node 0x20 - 6
80 * Silence data mode Threshold (-90dB)
81 */
82 0x02050030,
83 0x0204A000,
84 0x0205001B,
85 0x02040A4B,
86 /*
87 * Widget node 0x20 - 7
88 * Default setting-1
89 */
90 0x05750003,
91 0x05740DA3,
92 0x02050046,
93 0x02040004,
94 /*
95 * Widget node 0x20 - 8
96 * support 1 pin detect two port
97 */
98 0x02050009,
99 0x0204E003,
100 0x0205000A,
101 0x02047770,
102 /*
103 * Widget node 0x20 - 9
104 * To set LDO1/LDO2 as default
105 */
106 0x02050008,
107 0x02046A0C,
108 0x02050008,
109 0x02046A0C,
110 };
111
112 const u32 pc_beep_verbs[] = {
113 /* Dos beep path - 1 */
114 0x01470C00,
115 0x02050036,
116 0x02047151,
117 0x01470740,
118 /* Dos beep path - 2 */
119 0x0143b000,
120 0x01470C02,
121 0x01470C02,
122 0x01470C02,
123 };
124
125 AZALIA_ARRAY_SIZES;