blob: 34c2b7a5b0a7f48a177ed70e7eaf2645a51d60a2 [file] [log] [blame]
Nico Huberefe1fed2013-04-29 18:00:57 +02001/*
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 Huberefe1fed2013-04-29 18:00:57 +020021static 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 */
28 0x00172000,
29 0x00172100,
30 0x00172206,
31 0x00172311,
32
33 /* Pin Widget Verb Table */
34
35 /*
36 * NID 0x19 [Port A (SURR)]:
37 * Jack Internal Speaker N/A Black
38 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020039 AZALIA_PIN_CFG(0, 0x19, 0x10101112),
Nico Huberefe1fed2013-04-29 18:00:57 +020040
41 /*
42 * NID 0x1a [Port B (MIC1/2)]:
43 * Jack Rear Mic In 1/8" Pink
44 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020045 AZALIA_PIN_CFG(0, 0x1a, 0x01a19036),
Nico Huberefe1fed2013-04-29 18:00:57 +020046
47 /*
48 * NID 0x1b [Port C (LINEIN)]:
49 * Jack Rear Line In 1/8" Blue
50 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020051 AZALIA_PIN_CFG(0, 0x1b, 0x0181303e),
Nico Huberefe1fed2013-04-29 18:00:57 +020052
53 /*
54 * NID 0x1c [Port D (Front)]:
55 * Jack Rear Line Out 1/8" Green
56 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020057 AZALIA_PIN_CFG(0, 0x1c, 0x01014010),
Nico Huberefe1fed2013-04-29 18:00:57 +020058
59 /*
60 * NID 0x1d [Port E (Front HP/MIC)]:
61 * Jack Front HP Out 1/8" Green
62 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020063 AZALIA_PIN_CFG(0, 0x1d, 0x022141f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020064
65 /*
66 * NID 0x1e [Port F (Front HP/MIC)]:
67 * Jack Front Mic In 1/8" Pink
68 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020069 AZALIA_PIN_CFG(0, 0x1e, 0x02a19138),
Nico Huberefe1fed2013-04-29 18:00:57 +020070
71 /*
72 * NID 0x1f [CD]:
73 * Jack Int.(ATAPI) CD ATAPI internal Black
74 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020075 AZALIA_PIN_CFG(0, 0x1f, 0x19331137),
Nico Huberefe1fed2013-04-29 18:00:57 +020076
77 /*
78 * NID 0x20 [N/A]:
79 * Jack Rear S/PDIF Out RCA Unknown
80 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020081 AZALIA_PIN_CFG(0, 0x20, 0x014401f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020082
83 /*
84 * NID 0x21 [N/A]:
85 * None Internal S/PDIF Out Other Digital Unknown
86 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020087 AZALIA_PIN_CFG(0, 0x21, 0x504600f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020088
89 /*
90 * NID 0x22 [Port G (C/LFE)]:
91 * Jack Internal Speaker Unknown Orange
92 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020093 AZALIA_PIN_CFG(0, 0x22, 0x10106111),
Nico Huberefe1fed2013-04-29 18:00:57 +020094
95 /*
96 * NID 0x23 [Port H (SSL/SSR)]:
97 * Jack Internal Speaker Unknown Grey
98 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020099 AZALIA_PIN_CFG(0, 0x23, 0x10102114),
Nico Huberefe1fed2013-04-29 18:00:57 +0200100
101
102 /* coreboot specific header */
103 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI
104 0x80860101, // Subsystem ID
105 0x00000004, // Number of jacks
106
107 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
108 0x00172001,
109 0x00172101,
110 0x00172286,
111 0x00172380,
112
113 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
114 0x30571c10,
115 0x30571d00,
116 0x30571e56,
117 0x30571f58,
118
119 /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
120 0x30671c20,
121 0x30671d00,
122 0x30671e56,
123 0x30671f18,
124
125 /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
126 0x30771c30,
127 0x30771d00,
128 0x30771e56,
129 0x30771f18
130};