blob: fdbc977e6838f52bc9dd42f2018768c47951d507 [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.
Nico Huberefe1fed2013-04-29 18:00:57 +020015 */
16
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020017#include <device/azalia_device.h>
18
19const u32 cim_verb_data[] = {
Nico Huberefe1fed2013-04-29 18:00:57 +020020 /* coreboot specific header */
Elyes HAOUASf10b5ff2016-10-06 19:49:55 +020021 0x11060397, /* Codec Vendor / Device ID: Via VT1708S */
22 0x11060000, /* Subsystem ID */
23 0x0000000c, /* Number of jacks */
Nico Huberefe1fed2013-04-29 18:00:57 +020024
25 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020026 AZALIA_SUBVENDOR(0x0, 0x11060000),
Nico Huberefe1fed2013-04-29 18:00:57 +020027
28 /* Pin Widget Verb Table */
29
30 /*
31 * NID 0x19 [Port A (SURR)]:
32 * Jack Internal Speaker N/A Black
33 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020034 AZALIA_PIN_CFG(0, 0x19, 0x10101112),
Nico Huberefe1fed2013-04-29 18:00:57 +020035
36 /*
37 * NID 0x1a [Port B (MIC1/2)]:
38 * Jack Rear Mic In 1/8" Pink
39 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020040 AZALIA_PIN_CFG(0, 0x1a, 0x01a19036),
Nico Huberefe1fed2013-04-29 18:00:57 +020041
42 /*
43 * NID 0x1b [Port C (LINEIN)]:
44 * Jack Rear Line In 1/8" Blue
45 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020046 AZALIA_PIN_CFG(0, 0x1b, 0x0181303e),
Nico Huberefe1fed2013-04-29 18:00:57 +020047
48 /*
49 * NID 0x1c [Port D (Front)]:
50 * Jack Rear Line Out 1/8" Green
51 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020052 AZALIA_PIN_CFG(0, 0x1c, 0x01014010),
Nico Huberefe1fed2013-04-29 18:00:57 +020053
54 /*
55 * NID 0x1d [Port E (Front HP/MIC)]:
56 * Jack Front HP Out 1/8" Green
57 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020058 AZALIA_PIN_CFG(0, 0x1d, 0x022141f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020059
60 /*
61 * NID 0x1e [Port F (Front HP/MIC)]:
62 * Jack Front Mic In 1/8" Pink
63 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020064 AZALIA_PIN_CFG(0, 0x1e, 0x02a19138),
Nico Huberefe1fed2013-04-29 18:00:57 +020065
66 /*
67 * NID 0x1f [CD]:
68 * Jack Int.(ATAPI) CD ATAPI internal Black
69 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020070 AZALIA_PIN_CFG(0, 0x1f, 0x19331137),
Nico Huberefe1fed2013-04-29 18:00:57 +020071
72 /*
73 * NID 0x20 [N/A]:
74 * Jack Rear S/PDIF Out RCA Unknown
75 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020076 AZALIA_PIN_CFG(0, 0x20, 0x014401f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020077
78 /*
79 * NID 0x21 [N/A]:
80 * None Internal S/PDIF Out Other Digital Unknown
81 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020082 AZALIA_PIN_CFG(0, 0x21, 0x504600f0),
Nico Huberefe1fed2013-04-29 18:00:57 +020083
84 /*
85 * NID 0x22 [Port G (C/LFE)]:
86 * Jack Internal Speaker Unknown Orange
87 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020088 AZALIA_PIN_CFG(0, 0x22, 0x10106111),
Nico Huberefe1fed2013-04-29 18:00:57 +020089
90 /*
91 * NID 0x23 [Port H (SSL/SSR)]:
92 * Jack Internal Speaker Unknown Grey
93 */
Vladimir Serbinenkof91ecce2014-09-04 21:47:03 +020094 AZALIA_PIN_CFG(0, 0x23, 0x10102114),
Nico Huberefe1fed2013-04-29 18:00:57 +020095
96
97 /* coreboot specific header */
Elyes HAOUASf10b5ff2016-10-06 19:49:55 +020098 0x80862806, /* Codec Vendor / Device ID: Intel PantherPoint HDMI */
99 0x80860101, /* Subsystem ID */
100 0x00000004, /* Number of jacks */
Nico Huberefe1fed2013-04-29 18:00:57 +0200101
102 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200103 AZALIA_SUBVENDOR(0x0, 0x80860101),
Nico Huberefe1fed2013-04-29 18:00:57 +0200104
105 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200106 AZALIA_PIN_CFG(0x3, 0x05, 0x58560010),
Nico Huberefe1fed2013-04-29 18:00:57 +0200107
108 /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200109 AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
Nico Huberefe1fed2013-04-29 18:00:57 +0200110
111 /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +0200112 AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
Nico Huberefe1fed2013-04-29 18:00:57 +0200113};
Vladimir Serbinenko75c83872014-09-05 01:01:31 +0200114
115const u32 pc_beep_verbs[0] = {};
116
117AZALIA_ARRAY_SIZES;