blob: ca59efbb611f35aa60038f6bc009ecfe0e53e00a [file] [log] [blame]
Angel Pons89ab2502020-04-03 01:22:28 +02001/* SPDX-License-Identifier: GPL-2.0-only */
James Yebe6fd4c2017-07-22 19:19:42 +10002
3#include <device/azalia_device.h>
4
5const u32 cim_verb_data[] = {
6 /* coreboot specific header */
7 0x10ec0269, // Codec Vendor / Device ID: Realtek
8 0x17aa21fe, // Subsystem ID
9 0x0000000b, // Number of jacks
10
11 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */
Angel Ponsec211702019-12-19 19:37:21 +010012 AZALIA_SUBVENDOR(0, 0x17aa21fe),
James Yebe6fd4c2017-07-22 19:19:42 +100013
14 /* Pin Widget Verb Table */
15
16 /* Pin Complex (NID 0x12): 0x90a60930 DMIC */
Angel Ponsec211702019-12-19 19:37:21 +010017 AZALIA_PIN_CFG(0, 0x12, 0x90a60930),
James Yebe6fd4c2017-07-22 19:19:42 +100018
19 /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */
Angel Ponsec211702019-12-19 19:37:21 +010020 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
James Yebe6fd4c2017-07-22 19:19:42 +100021
22 /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */
Angel Ponsec211702019-12-19 19:37:21 +010023 AZALIA_PIN_CFG(0, 0x15, 0x0321101f),
James Yebe6fd4c2017-07-22 19:19:42 +100024
25 /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */
Angel Ponsec211702019-12-19 19:37:21 +010026 AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
James Yebe6fd4c2017-07-22 19:19:42 +100027
28 /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */
Angel Ponsec211702019-12-19 19:37:21 +010029 AZALIA_PIN_CFG(0, 0x18, 0x03a11820),
James Yebe6fd4c2017-07-22 19:19:42 +100030
31 /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */
Angel Ponsec211702019-12-19 19:37:21 +010032 AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
James Yebe6fd4c2017-07-22 19:19:42 +100033
34 /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */
Angel Ponsec211702019-12-19 19:37:21 +010035 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
James Yebe6fd4c2017-07-22 19:19:42 +100036
37 /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */
Angel Ponsec211702019-12-19 19:37:21 +010038 AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
James Yebe6fd4c2017-07-22 19:19:42 +100039
40 /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */
Angel Ponsec211702019-12-19 19:37:21 +010041 AZALIA_PIN_CFG(0, 0x1d, 0x4016862d),
James Yebe6fd4c2017-07-22 19:19:42 +100042
43 /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */
Angel Ponsec211702019-12-19 19:37:21 +010044 AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
James Yebe6fd4c2017-07-22 19:19:42 +100045
46 /* coreboot specific header */
47 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI
48 0x80860101, // Subsystem ID
49 0x00000004, // Number of jacks
50
51 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
Angel Ponsec211702019-12-19 19:37:21 +010052 AZALIA_SUBVENDOR(3, 0x80860101),
James Yebe6fd4c2017-07-22 19:19:42 +100053
54 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
Angel Ponsec211702019-12-19 19:37:21 +010055 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
James Yebe6fd4c2017-07-22 19:19:42 +100056
57 /* Pin Complex (NID 0x06) Not Connected */
Angel Ponsec211702019-12-19 19:37:21 +010058 AZALIA_PIN_CFG(3, 0x06, 0x58560020),
James Yebe6fd4c2017-07-22 19:19:42 +100059
60 /* Pin Complex (NID 0x07) Not Connected */
Angel Ponsec211702019-12-19 19:37:21 +010061 AZALIA_PIN_CFG(3, 0x07, 0x58560030),
James Yebe6fd4c2017-07-22 19:19:42 +100062};
63
64const u32 pc_beep_verbs[] = {
Peter Lemenkov6b7d40a2020-01-22 11:40:16 +010065 0x00170500, /* power up everything (codec, dac, adc, mixers) */
James Yebe6fd4c2017-07-22 19:19:42 +100066 0x01470740, /* enable speaker out */
67 0x01470c02, /* set speaker EAPD pin */
68 0x0143b01f, /* unmute speaker */
69 0x00c37100, /* unmute mixer nid 0xc input 1 */
70 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */
71};
72AZALIA_ARRAY_SIZES;