drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / mainboard / google / slippy / variants / peppy / hda_verb.c
blob36fd80bc7a1423c0063f1930f4b7a427cb6cdea5
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 0x10ec0283, // Codec Vendor / Device ID: Realtek ALC283
8 0x10ec0283, // Subsystem ID
9 0x0000000e, // Number of jacks (NID entries)
11 0x0017ff00, // Function Reset
12 0x0017ff00, // Double Function Reset
13 0x000F0000, // Pad - get vendor id
14 0x000F0002, // Pad - get revision id
16 /* NID 0x01, HDA Codec Subsystem ID Verb Table */
17 AZALIA_SUBVENDOR(0, 0x11790670),
19 /* Pin Widget Verb Table */
21 /* Pin Complex (NID 0x12) DMIC - Disabled */
22 AZALIA_PIN_CFG(0, 0x12, AZALIA_PIN_CFG_NC(0)),
24 /* Pin Complex (NID 0x14) SPKR-OUT - Internal Speakers */
25 // group 1, cap 0
26 // no connector, no jack detect
27 // speaker out, analog
28 // fixed function, internal, Location N/A
29 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
31 /* Pin Complex (NID 0x17) MONO Out - Disabled */
32 AZALIA_PIN_CFG(0, 0x17, AZALIA_PIN_CFG_NC(0)),
34 /* Pin Complex (NID 0x18) MIC1 PORTB - Disabled */
35 AZALIA_PIN_CFG(0, 0x18, AZALIA_PIN_CFG_NC(0)),
37 /* Pin Complex (NID 0x19) MIC2 - 3.5mm Jack */
38 // group2, cap 0
39 // black, jack detect
40 // Mic in, 3.5mm Jack
41 // connector, External left panel
42 AZALIA_PIN_CFG(0, 0x19, 0x03a11020),
44 /* Pin Complex (NID 0x1A) LINE1 - Internal Mic */
45 // group 1, cap 1
46 // no connector, no jack detect
47 // mic in, analog connection
48 // Fixed function, internal, Location N/A
49 AZALIA_PIN_CFG(0, 0x1a, 0x90a70111),
51 /* Pin Complex (NID 0x1B) LINE2 - Disabled */
52 AZALIA_PIN_CFG(0, 0x1b, AZALIA_PIN_CFG_NC(0)),
54 /* Pin Complex (NID 0x1D) PCBeep */
55 // eapd low on ex-amp, laptop, custom enable
56 // mute spkr on hpout
57 // pcbeep enable, checksum
58 // no physical, Internal, Location N/A
59 AZALIA_PIN_CFG(0, 0x1d, 0x4015812d),
61 /* Pin Complex (NID 0x1E) SPDIF-OUT - Disabled*/
62 AZALIA_PIN_CFG(0, 0x1e, AZALIA_PIN_CFG_NC(0)),
64 /* Pin Complex (NID 0x21) HP-OUT - 3.5mm Jack*/
65 // group2, cap 1
66 // black, jack detect
67 // HPOut, 3.5mm Jack
68 // connector, left panel
69 AZALIA_PIN_CFG(0, 0x21, 0x03211021),
71 /* Undocumented settings from Realtek (needed for beep_gen) */
72 /* Widget node 0x20 */
73 0x02050010,
74 0x02040c20,
75 0x0205001b,
76 0x0204081b,
78 /* Tuned jack detection */
79 0x02050043,
80 0x0204A614,
81 0x02050047,
82 0x02049470,
85 const u32 pc_beep_verbs[] = {
86 0x00170500, /* power up everything (codec, dac, adc, mixers) */
87 0x01470740, /* enable speaker out */
88 0x01470c02, /* set speaker EAPD pin */
89 0x0143b01f, /* unmute speaker */
90 0x00c37100, /* unmute mixer nid 0xc input 1 */
91 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */
94 AZALIA_ARRAY_SIZES;