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 | |
| 21 | /* |
| 22 | * Pin widget configuration: |
| 23 | * |
| 24 | * Port-Con. Location Def.-Dev. Con.-Type Color Misc Def.-Aso. Seq |
| 25 | * 31..30 29..24 23..20 19..16 15..12 11..00 07..04 03..00 |
| 26 | */ |
| 27 | #define PIN_CFG(pin, val) \ |
| 28 | (pin << 20) | ( 0x71c << 8) | (val & 0xff), \ |
| 29 | (pin << 20) | ( 0x71d << 8) | ((val >> 8) & 0xff), \ |
| 30 | (pin << 20) | ( 0x71e << 8) | ((val >> 16) & 0xff), \ |
| 31 | (pin << 20) | ( 0x71f << 8) | ((val >> 24) & 0xff), \ |
| 32 | |
| 33 | static const u32 mainboard_cim_verb_data[] = { |
| 34 | /* coreboot specific header */ |
| 35 | 0x11060397, // Codec Vendor / Device ID: Via VT1708S |
| 36 | 0x11060000, // Subsystem ID |
| 37 | 0x0000000c, // Number of jacks |
| 38 | |
| 39 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */ |
| 40 | 0x00172000, |
| 41 | 0x00172100, |
| 42 | 0x00172206, |
| 43 | 0x00172311, |
| 44 | |
| 45 | /* Pin Widget Verb Table */ |
| 46 | |
| 47 | /* |
| 48 | * NID 0x19 [Port A (SURR)]: |
| 49 | * Jack Internal Speaker N/A Black |
| 50 | */ |
| 51 | PIN_CFG(0x19, 0x10101112) |
| 52 | |
| 53 | /* |
| 54 | * NID 0x1a [Port B (MIC1/2)]: |
| 55 | * Jack Rear Mic In 1/8" Pink |
| 56 | */ |
| 57 | PIN_CFG(0x1a, 0x01a19036) |
| 58 | |
| 59 | /* |
| 60 | * NID 0x1b [Port C (LINEIN)]: |
| 61 | * Jack Rear Line In 1/8" Blue |
| 62 | */ |
| 63 | PIN_CFG(0x1b, 0x0181303e) |
| 64 | |
| 65 | /* |
| 66 | * NID 0x1c [Port D (Front)]: |
| 67 | * Jack Rear Line Out 1/8" Green |
| 68 | */ |
| 69 | PIN_CFG(0x1c, 0x01014010) |
| 70 | |
| 71 | /* |
| 72 | * NID 0x1d [Port E (Front HP/MIC)]: |
| 73 | * Jack Front HP Out 1/8" Green |
| 74 | */ |
| 75 | PIN_CFG(0x1d, 0x022141f0) |
| 76 | |
| 77 | /* |
| 78 | * NID 0x1e [Port F (Front HP/MIC)]: |
| 79 | * Jack Front Mic In 1/8" Pink |
| 80 | */ |
| 81 | PIN_CFG(0x1e, 0x02a19138) |
| 82 | |
| 83 | /* |
| 84 | * NID 0x1f [CD]: |
| 85 | * Jack Int.(ATAPI) CD ATAPI internal Black |
| 86 | */ |
| 87 | PIN_CFG(0x1f, 0x19331137) |
| 88 | |
| 89 | /* |
| 90 | * NID 0x20 [N/A]: |
| 91 | * Jack Rear S/PDIF Out RCA Unknown |
| 92 | */ |
| 93 | PIN_CFG(0x20, 0x014401f0) |
| 94 | |
| 95 | /* |
| 96 | * NID 0x21 [N/A]: |
| 97 | * None Internal S/PDIF Out Other Digital Unknown |
| 98 | */ |
| 99 | PIN_CFG(0x21, 0x504600f0) |
| 100 | |
| 101 | /* |
| 102 | * NID 0x22 [Port G (C/LFE)]: |
| 103 | * Jack Internal Speaker Unknown Orange |
| 104 | */ |
| 105 | PIN_CFG(0x22, 0x10106111) |
| 106 | |
| 107 | /* |
| 108 | * NID 0x23 [Port H (SSL/SSR)]: |
| 109 | * Jack Internal Speaker Unknown Grey |
| 110 | */ |
| 111 | PIN_CFG(0x23, 0x10102114) |
| 112 | |
| 113 | |
| 114 | /* coreboot specific header */ |
| 115 | 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI |
| 116 | 0x80860101, // Subsystem ID |
| 117 | 0x00000004, // Number of jacks |
| 118 | |
| 119 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ |
| 120 | 0x00172001, |
| 121 | 0x00172101, |
| 122 | 0x00172286, |
| 123 | 0x00172380, |
| 124 | |
| 125 | /* Pin Complex (NID 0x05) Digital Out at Int HDMI */ |
| 126 | 0x30571c10, |
| 127 | 0x30571d00, |
| 128 | 0x30571e56, |
| 129 | 0x30571f58, |
| 130 | |
| 131 | /* Pin Complex (NID 0x06) Digital Out at Int HDMI */ |
| 132 | 0x30671c20, |
| 133 | 0x30671d00, |
| 134 | 0x30671e56, |
| 135 | 0x30671f18, |
| 136 | |
| 137 | /* Pin Complex (NID 0x07) Digital Out at Int HDMI */ |
| 138 | 0x30771c30, |
| 139 | 0x30771d00, |
| 140 | 0x30771e56, |
| 141 | 0x30771f18 |
| 142 | }; |