Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2012-2013 secunet Security Networks AG |
| 5 | * Copyright (C) 2013 Nico Huber <nico.h@gmx.de> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | */ |
| 20 | |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 21 | static const u32 mainboard_cim_verb_data[] = { |
| 22 | /* coreboot specific header */ |
| 23 | 0x11060397, // Codec Vendor / Device ID: Via VT1708S |
| 24 | 0x11060000, // Subsystem ID |
| 25 | 0x0000000c, // Number of jacks |
| 26 | |
| 27 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame^] | 28 | AZALIA_SUBVENDOR(0x0, 0x11060000), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 29 | |
| 30 | /* Pin Widget Verb Table */ |
| 31 | |
| 32 | /* |
| 33 | * NID 0x19 [Port A (SURR)]: |
| 34 | * Jack Internal Speaker N/A Black |
| 35 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 36 | AZALIA_PIN_CFG(0, 0x19, 0x10101112), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 37 | |
| 38 | /* |
| 39 | * NID 0x1a [Port B (MIC1/2)]: |
| 40 | * Jack Rear Mic In 1/8" Pink |
| 41 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 42 | AZALIA_PIN_CFG(0, 0x1a, 0x01a19036), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 43 | |
| 44 | /* |
| 45 | * NID 0x1b [Port C (LINEIN)]: |
| 46 | * Jack Rear Line In 1/8" Blue |
| 47 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 48 | AZALIA_PIN_CFG(0, 0x1b, 0x0181303e), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 49 | |
| 50 | /* |
| 51 | * NID 0x1c [Port D (Front)]: |
| 52 | * Jack Rear Line Out 1/8" Green |
| 53 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 54 | AZALIA_PIN_CFG(0, 0x1c, 0x01014010), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 55 | |
| 56 | /* |
| 57 | * NID 0x1d [Port E (Front HP/MIC)]: |
| 58 | * Jack Front HP Out 1/8" Green |
| 59 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 60 | AZALIA_PIN_CFG(0, 0x1d, 0x022141f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 61 | |
| 62 | /* |
| 63 | * NID 0x1e [Port F (Front HP/MIC)]: |
| 64 | * Jack Front Mic In 1/8" Pink |
| 65 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 66 | AZALIA_PIN_CFG(0, 0x1e, 0x02a19138), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 67 | |
| 68 | /* |
| 69 | * NID 0x1f [CD]: |
| 70 | * Jack Int.(ATAPI) CD ATAPI internal Black |
| 71 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 72 | AZALIA_PIN_CFG(0, 0x1f, 0x19331137), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 73 | |
| 74 | /* |
| 75 | * NID 0x20 [N/A]: |
| 76 | * Jack Rear S/PDIF Out RCA Unknown |
| 77 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 78 | AZALIA_PIN_CFG(0, 0x20, 0x014401f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 79 | |
| 80 | /* |
| 81 | * NID 0x21 [N/A]: |
| 82 | * None Internal S/PDIF Out Other Digital Unknown |
| 83 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 84 | AZALIA_PIN_CFG(0, 0x21, 0x504600f0), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 85 | |
| 86 | /* |
| 87 | * NID 0x22 [Port G (C/LFE)]: |
| 88 | * Jack Internal Speaker Unknown Orange |
| 89 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 90 | AZALIA_PIN_CFG(0, 0x22, 0x10106111), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 91 | |
| 92 | /* |
| 93 | * NID 0x23 [Port H (SSL/SSR)]: |
| 94 | * Jack Internal Speaker Unknown Grey |
| 95 | */ |
Vladimir Serbinenko | f91ecce | 2014-09-04 21:47:03 +0200 | [diff] [blame] | 96 | AZALIA_PIN_CFG(0, 0x23, 0x10102114), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 97 | |
| 98 | |
| 99 | /* coreboot specific header */ |
| 100 | 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI |
| 101 | 0x80860101, // Subsystem ID |
| 102 | 0x00000004, // Number of jacks |
| 103 | |
| 104 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame^] | 105 | AZALIA_SUBVENDOR(0x0, 0x80860101), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 106 | |
| 107 | /* Pin Complex (NID 0x05) Digital Out at Int HDMI */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame^] | 108 | AZALIA_PIN_CFG(0x3, 0x05, 0x58560010), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 109 | |
| 110 | /* Pin Complex (NID 0x06) Digital Out at Int HDMI */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame^] | 111 | AZALIA_PIN_CFG(0x3, 0x06, 0x18560020), |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 112 | |
| 113 | /* Pin Complex (NID 0x07) Digital Out at Int HDMI */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame^] | 114 | AZALIA_PIN_CFG(0x3, 0x07, 0x18560030) |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 115 | }; |