| 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 | 0x10ec0269, // Codec Vendor / Device ID: Realtek |
| 8 | 0x17aa21fe, // Subsystem ID |
| 9 | 0x0000000c, // Number of jacks |
| 10 | |
| 11 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */ |
| 12 | AZALIA_SUBVENDOR(0, 0x17aa21fe), |
| 13 | |
| 14 | /* Pin Widget Verb Table */ |
| 15 | |
| 16 | /* Pin Complex (NID 0x12): 0x90a60930 DMIC */ |
| 17 | AZALIA_PIN_CFG(0, 0x12, 0x90a60930), |
| 18 | |
| 19 | /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */ |
| 20 | AZALIA_PIN_CFG(0, 0x14, 0x90170110), |
| 21 | |
| 22 | /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */ |
| 23 | AZALIA_PIN_CFG(0, 0x15, 0x0321101f), |
| 24 | |
| 25 | /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */ |
| 26 | AZALIA_PIN_CFG(0, 0x17, 0x411111f0), |
| 27 | |
| 28 | /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */ |
| 29 | AZALIA_PIN_CFG(0, 0x18, 0x03a11820), |
| 30 | |
| 31 | /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */ |
| 32 | AZALIA_PIN_CFG(0, 0x19, 0x411111f0), |
| 33 | |
| 34 | /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */ |
| 35 | AZALIA_PIN_CFG(0, 0x1a, 0x411111f0), |
| 36 | |
| 37 | /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */ |
| 38 | AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), |
| 39 | |
| 40 | /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */ |
| 41 | AZALIA_PIN_CFG(0, 0x1d, 0x4016862d), |
| 42 | |
| 43 | /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */ |
| 44 | AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), |
| 45 | |
| 46 | /* Stout MIC detect setup */ |
| 47 | 0x02050018, |
| 48 | 0x02045184, |
| 49 | 0x02050008, |
| 50 | 0x02040300, |
| 51 | |
| 52 | /* coreboot specific header */ |
| 53 | 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI |
| 54 | 0x80860101, // Subsystem ID |
| 55 | 0x00000004, // Number of jacks |
| 56 | |
| 57 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ |
| 58 | AZALIA_SUBVENDOR(3, 0x80860101), |
| 59 | |
| 60 | /* Pin Complex (NID 0x05) Digital Out at Int HDMI */ |
| 61 | AZALIA_PIN_CFG(3, 0x05, 0x18560010), |
| 62 | |
| 63 | /* Pin Complex (NID 0x06) Not Connected */ |
| 64 | AZALIA_PIN_CFG(3, 0x06, 0x58560020), |
| 65 | |
| 66 | /* Pin Complex (NID 0x07) Not Connected */ |
| 67 | AZALIA_PIN_CFG(3, 0x07, 0x58560030), |
| 68 | }; |
| 69 | |
| 70 | const u32 pc_beep_verbs[] = { |
| 71 | 0x00170500, /* power up everything (codec, dac, adc, mixers) */ |
| 72 | 0x01470740, /* enable speaker out */ |
| 73 | 0x01470c02, /* set speaker EAPD pin */ |
| 74 | 0x0143b01f, /* unmute speaker */ |
| 75 | 0x00c37100, /* unmute mixer nid 0xc input 1 */ |
| 76 | 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */ |
| 77 | }; |
| 78 | AZALIA_ARRAY_SIZES; |