cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / lenovo / s230u / hda_verb.c
blobab28cf9506ea5311e68842b873c47dd42f7be76a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Bits 31:28 - Codec Address */
4 /* Bits 27:20 - NID */
5 /* Bits 19:8 - Verb ID */
6 /* Bits 7:0 - Payload */
8 #include <device/azalia_device.h>
10 const u32 cim_verb_data[] = {
11 /* --- Codec #0 --- */
12 0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269VC */
13 0x17aa21fa, /* Subsystem ID */
14 12, /* Number of 4 dword sets */
15 AZALIA_SUBVENDOR(0, 0x17aa21fa),
18 * PIN_CFG:
19 * 31:30 Port connectivity
20 * 00 Connected to jack
21 * 01 No physical connection
22 * 10 Fixed function (integrated speaker/mic)
23 * 11 Jack + internal
24 * 29:24 Location
25 * See HDA spec for full matrix
26 * 23:20 Default device
27 * 0 Line out 4 S/PDIF out 8 Line in c S/PDIF in
28 * 1 Speaker 5 Digital out 9 Aux d Digital in
29 * 2 HP out 6 Modem line a Mic in e Reserved
30 * 3 CD 7 Modem handse b Telephony f Other
31 * 19:16 Connection type
32 * 0 Unknown 4 RCA 8 Multichannel analog DIN
33 * 1 1/8" jack 5 Optical 9 XLR
34 * 2 1/4" jack 6 Digital a RJ-11
35 * 3 ATAPI 7 Analog b Combination f Other
36 * 15:12 Color
37 * 0 Unknown 4 Green 8 Purple
38 * 1 Black 5 Red 9 Pink
39 * 2 Grey 6 Orange a-d Reserved
40 * 3 Blue 7 Yellow e White f Other
41 * 11:8 Misc
42 * bit0 Jack detect override 1-3 Reserved
43 * 7:4 Default association
44 * 0 Reserved/Not initialized
45 * f Lowest priority
46 * 3:0 Sequence
47 * For stream channel to in/out mapping
49 /* Digital MIC: Fixed function, mic in, digital */
50 AZALIA_PIN_CFG(0, 0x12, 0x90a60940),
52 /* SPK out: Fixed function, speaker, analog */
53 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
55 /* HP out: Location left, headphone out, 1/8" jack, black */
56 AZALIA_PIN_CFG(0, 0x15, 0x03211020),
58 /* Unknown: (Unconnected) */
59 AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
61 /* MIC1 in: Location left, mic in, 1/8" jack, black */
62 AZALIA_PIN_CFG(0, 0x18, 0x03a11830),
64 /* MIC2 in: (Unconnected) */
65 AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
67 /* Line1 in: (Unconnected) */
68 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
70 /* Line2 in: (Unconnected) */
71 AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
73 /* PCBEEP */
74 AZALIA_PIN_CFG(0, 0x1d, 0x40148605),
76 /* S/PDIF out: (Unconnected) */
77 AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
79 0x01470740, /* Enable output for NID 0x14 (Speaker out) */
80 0x015707C0, /* Enable output & HP amp for NID 0x15 (HP out) */
81 0x01870724, /* Enable Vrefout NID 0x18 (MIC1 in) */
82 0x00170500, /* Set power state to D0 */
84 /* --- Codec #3 --- */
85 0x80862806, /* Codec Vendor / Device ID: Intel PantherPoint HDMI */
86 0x80860101, /* Subsystem ID */
87 4, /* Number of 4 dword sets */
88 AZALIA_SUBVENDOR(3, 0x80860101),
89 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
90 AZALIA_PIN_CFG(3, 0x06, 0x18560020),
91 AZALIA_PIN_CFG(3, 0x07, 0x58560030),
94 const u32 pc_beep_verbs[] = {
95 /* Digital PCBEEP Gain: 0h=-9db, 1h=-6db ... 4h=+3db, 5h=+6db */
96 0x02177a00,
99 AZALIA_ARRAY_SIZES;