blob: c957c25fe1086934375a24305d91ab847845fd28 [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
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020021#include <device/azalia_device.h>
22
23const u32 cim_verb_data[] = {
Nico Huberefe1fed2013-04-29 18:00:57 +020024 /* coreboot specific header */
25 0x11060397, // Codec Vendor / Device ID: Via VT1708S
26 0x11060000, // Subsystem ID
27 0x0000000c, // Number of jacks
28
29 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020030 AZALIA_SUBVENDOR(0x0, 0x11060000),
Nico Huberefe1fed2013-04-29 18:00:57 +020031
32 /* Pin Widget Verb Table */
33
34 /*
35 * NID 0x19 [Port A (SURR)]:
36 * Jack Internal Speaker N/A Black
37 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020038 AZALIA_PIN_CFG(0, 0x19, 0x10101112),
Nico Huberefe1fed2013-04-29 18:00:57 +020039
40 /*
41 * NID 0x1a [Port B (MIC1/2)]:
42 * Jack Rear Mic In 1/8" Pink
43 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020044 AZALIA_PIN_CFG(0, 0x1a, 0x01a19036),
Nico Huberefe1fed2013-04-29 18:00:57 +020045
46 /*
47 * NID 0x1b [Port C (LINEIN)]:
48 * Jack Rear Line In 1/8" Blue
49 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020050 AZALIA_PIN_CFG(0, 0x1b, 0x0181303e),
Nico Huberefe1fed2013-04-29 18:00:57 +020051
52 /*
53 * NID 0x1c [Port D (Front)]:
54 * Jack Rear Line Out 1/8" Green
55 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020056 AZALIA_PIN_CFG(0, 0x1c, 0x01014010),
Nico Huberefe1fed2013-04-29 18:00:57 +020057
58 /*
59 * NID 0x1d [Port E (Front HP/MIC)]:
60 * Jack Front HP Out 1/8" Green
61 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020062 AZALIA_PIN_CFG(0, 0x1d, 0x022141f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020063
64 /*
65 * NID 0x1e [Port F (Front HP/MIC)]:
66 * Jack Front Mic In 1/8" Pink
67 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020068 AZALIA_PIN_CFG(0, 0x1e, 0x02a19138),
Nico Huberefe1fed2013-04-29 18:00:57 +020069
70 /*
71 * NID 0x1f [CD]:
72 * Jack Int.(ATAPI) CD ATAPI internal Black
73 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020074 AZALIA_PIN_CFG(0, 0x1f, 0x19331137),
Nico Huberefe1fed2013-04-29 18:00:57 +020075
76 /*
77 * NID 0x20 [N/A]:
78 * Jack Rear S/PDIF Out RCA Unknown
79 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020080 AZALIA_PIN_CFG(0, 0x20, 0x014401f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020081
82 /*
83 * NID 0x21 [N/A]:
84 * None Internal S/PDIF Out Other Digital Unknown
85 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020086 AZALIA_PIN_CFG(0, 0x21, 0x504600f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020087
88 /*
89 * NID 0x22 [Port G (C/LFE)]:
90 * Jack Internal Speaker Unknown Orange
91 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020092 AZALIA_PIN_CFG(0, 0x22, 0x10106111),
Nico Huberefe1fed2013-04-29 18:00:57 +020093
94 /*
95 * NID 0x23 [Port H (SSL/SSR)]:
96 * Jack Internal Speaker Unknown Grey
97 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020098 AZALIA_PIN_CFG(0, 0x23, 0x10102114),
Nico Huberefe1fed2013-04-29 18:00:57 +020099
100
101 /* coreboot specific header */
102 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI
103 0x80860101, // Subsystem ID
104 0x00000004, // Number of jacks
105
106 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200107 AZALIA_SUBVENDOR(0x0, 0x80860101),
Nico Huberefe1fed2013-04-29 18:00:57 +0200108
109 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200110 AZALIA_PIN_CFG(0x3, 0x05, 0x58560010),
Nico Huberefe1fed2013-04-29 18:00:57 +0200111
112 /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200113 AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
Nico Huberefe1fed2013-04-29 18:00:57 +0200114
115 /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200116 AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
Nico Huberefe1fed2013-04-29 18:00:57 +0200117};
Vladimir Serbinenko75c83872014-09-05 01:01:31 +0200118
119const u32 pc_beep_verbs[0] = {};
120
121AZALIA_ARRAY_SIZES;