payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / t530 / hda_verb.c
blob05d62213cf510d33b163195faa5235b022b710d8
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 0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269VC */
12 0x17aa21fa, /* Subsystem ID */
13 18, /* Number of 4 dword sets */
14 AZALIA_SUBVENDOR(0, 0x17aa21fa),
16 /* Ext. Microphone Connector: External,Right; MicIn,3.5mm; Black,JD; DA,Seq */
17 AZALIA_PIN_CFG(0, 0x0a, 0x04a11020),
19 /* Headphones Connector: External,Right; HP,3.5mm; Black,JD; DA,Seq */
20 AZALIA_PIN_CFG(0, 0x0b, 0x0421101f),
22 /* Not connected: N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq */
23 AZALIA_PIN_CFG(0, 0x0c, 0x40f000f0),
25 /* Internal Speakers Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq */
26 AZALIA_PIN_CFG(0, 0x0d, 0x90170110),
28 /* Not connected */
29 AZALIA_PIN_CFG(0, 0x0f, 0x40f000f0),
31 /* Internal Microphone: Fixed,Int,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq */
32 AZALIA_PIN_CFG(0, 0x11, 0xd5a30140),
33 AZALIA_PIN_CFG(0, 0x12, 0x90a60140),
34 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
35 AZALIA_PIN_CFG(0, 0x15, 0x03211020),
36 AZALIA_PIN_CFG(0, 0x18, 0x03a11830),
37 AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
39 0x01970804,
40 0x01870803,
41 0x01470740,
42 0x00970600,
44 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
45 AZALIA_PIN_CFG(0, 0x1d, 0x40138205),
46 AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
48 /* Misc entries */
49 0x00370600,
50 0x00270600,
51 0x00b707C0, /* Enable PortB as Output with HP amp */
52 0x00d70740, /* Enable PortD as Output */
53 0x0017a200, /* Disable ClkEn of PortSenseTst */
54 0x0017c621, /* Slave Port - Port A used as microphone input for
55 combo Jack
56 Master Port - Port B used for Jack Presence Detect
57 Enable Combo Jack Detection */
58 0x0017a208, /* Enable ClkEn of PortSenseTst */
59 0x00170500, /* Set power state to D0 */
61 /* --- Codec #3 --- */
62 0x80862806, /* Codec Vendor / Device ID: Intel PantherPoint HDMI */
63 0x80860101, /* Subsystem ID */
64 4, /* Number of 4 dword sets */
65 AZALIA_SUBVENDOR(3, 0x80860101),
66 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
67 AZALIA_PIN_CFG(3, 0x06, 0x18560020),
68 AZALIA_PIN_CFG(3, 0x07, 0x18560030),
71 const u32 pc_beep_verbs[] = {
72 0x02177a00, /* Digital PCBEEP Gain: 0h=-9db, 1h=-6db ... 4h=+3db, 5h=+6db */
75 AZALIA_ARRAY_SIZES;