Angel Pons | a21dff6 | 2020-04-03 01:22:24 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 2 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 3 | #include <device/azalia_device.h> |
| 4 | |
| 5 | const u32 cim_verb_data[] = { |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 6 | /* coreboot specific header */ |
Elyes HAOUAS | f10b5ff | 2016-10-06 19:49:55 +0200 | [diff] [blame] | 7 | 0x11060397, /* Codec Vendor / Device ID: Via VT1708S */ |
| 8 | 0x11060000, /* Subsystem ID */ |
| 9 | 0x0000000c, /* Number of jacks */ |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 10 | |
| 11 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 12 | AZALIA_SUBVENDOR(0, 0x11060000), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 13 | |
| 14 | /* Pin Widget Verb Table */ |
| 15 | |
| 16 | /* |
| 17 | * NID 0x19 [Port A (SURR)]: |
| 18 | * Jack Internal Speaker N/A Black |
| 19 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 20 | AZALIA_PIN_CFG(0, 0x19, 0x10101112), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 21 | |
| 22 | /* |
| 23 | * NID 0x1a [Port B (MIC1/2)]: |
| 24 | * Jack Rear Mic In 1/8" Pink |
| 25 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 26 | AZALIA_PIN_CFG(0, 0x1a, 0x01a19036), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 27 | |
| 28 | /* |
| 29 | * NID 0x1b [Port C (LINEIN)]: |
| 30 | * Jack Rear Line In 1/8" Blue |
| 31 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 32 | AZALIA_PIN_CFG(0, 0x1b, 0x0181303e), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 33 | |
| 34 | /* |
| 35 | * NID 0x1c [Port D (Front)]: |
| 36 | * Jack Rear Line Out 1/8" Green |
| 37 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 38 | AZALIA_PIN_CFG(0, 0x1c, 0x01014010), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 39 | |
| 40 | /* |
| 41 | * NID 0x1d [Port E (Front HP/MIC)]: |
| 42 | * Jack Front HP Out 1/8" Green |
| 43 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 44 | AZALIA_PIN_CFG(0, 0x1d, 0x022141f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 45 | |
| 46 | /* |
| 47 | * NID 0x1e [Port F (Front HP/MIC)]: |
| 48 | * Jack Front Mic In 1/8" Pink |
| 49 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 50 | AZALIA_PIN_CFG(0, 0x1e, 0x02a19138), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 51 | |
| 52 | /* |
| 53 | * NID 0x1f [CD]: |
| 54 | * Jack Int.(ATAPI) CD ATAPI internal Black |
| 55 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 56 | AZALIA_PIN_CFG(0, 0x1f, 0x19331137), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 57 | |
| 58 | /* |
| 59 | * NID 0x20 [N/A]: |
| 60 | * Jack Rear S/PDIF Out RCA Unknown |
| 61 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 62 | AZALIA_PIN_CFG(0, 0x20, 0x014401f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 63 | |
| 64 | /* |
| 65 | * NID 0x21 [N/A]: |
| 66 | * None Internal S/PDIF Out Other Digital Unknown |
| 67 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 68 | AZALIA_PIN_CFG(0, 0x21, 0x504600f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 69 | |
| 70 | /* |
| 71 | * NID 0x22 [Port G (C/LFE)]: |
| 72 | * Jack Internal Speaker Unknown Orange |
| 73 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 74 | AZALIA_PIN_CFG(0, 0x22, 0x10106111), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 75 | |
| 76 | /* |
| 77 | * NID 0x23 [Port H (SSL/SSR)]: |
| 78 | * Jack Internal Speaker Unknown Grey |
| 79 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 80 | AZALIA_PIN_CFG(0, 0x23, 0x10102114), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 81 | |
| 82 | |
| 83 | /* coreboot specific header */ |
Elyes HAOUAS | f10b5ff | 2016-10-06 19:49:55 +0200 | [diff] [blame] | 84 | 0x80862806, /* Codec Vendor / Device ID: Intel PantherPoint HDMI */ |
| 85 | 0x80860101, /* Subsystem ID */ |
| 86 | 0x00000004, /* Number of jacks */ |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 87 | |
| 88 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ |
Angel Pons | d8ce9a8 | 2019-12-19 19:44:11 +0100 | [diff] [blame] | 89 | AZALIA_SUBVENDOR(3, 0x80860101), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 90 | |
| 91 | /* Pin Complex (NID 0x05) Digital Out at Int HDMI */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 92 | AZALIA_PIN_CFG(3, 0x05, 0x58560010), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 93 | |
| 94 | /* Pin Complex (NID 0x06) Digital Out at Int HDMI */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 95 | AZALIA_PIN_CFG(3, 0x06, 0x18560020), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 96 | |
| 97 | /* Pin Complex (NID 0x07) Digital Out at Int HDMI */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 98 | AZALIA_PIN_CFG(3, 0x07, 0x18560030), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 99 | }; |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 100 | |
| 101 | const u32 pc_beep_verbs[0] = {}; |
| 102 | |
| 103 | AZALIA_ARRAY_SIZES; |