Add support for the ASUS M2N-E board.
[coreboot.git] / src / mainboard / asus / m2n-e / hda_verb.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
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  * HDA codec soldered onto the ASUS M2N-E:
23  * Analog Devices AD1988B (High Definition Audio SoundMAX Codec), rev. 0x100200
24  * http://www.analog.com/static/imported-files/data_sheets/AD1988A_1988B.pdf
25  */
26
27 static const u32 mainboard_cim_verb_data[] = {
28         /* coreboot specific header */
29         0x11d4198b,     /* Codec Vendor / Device ID: Analog Devices AD1988B */
30         0x104381f6,     /* Subsystem ID (0x1043 == ASUS) */
31         0x0000000d,     /* Number of "pin complex" entries in the table */
32
33         /* NID 0x01, FUNCTION, Designates this device as an audio codec */
34         /* Set the Implementation ID (IID), here: 0x104381f6. */
35         0x001720f6,
36         0x00172181,
37         0x00172243,
38         0x00172310,
39
40         /* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */
41
42         /* NID 0x11, Port A, Front panel headphone jack */
43         0x01171c30,
44         0x01171d41,
45         0x01171e21,
46         0x01171f02,
47
48         /* NID 0x12, Port D, Rear panel front speaker jack */
49         0x01271c10,
50         0x01271d40,
51         0x01271e01,
52         0x01271f01,
53
54         /* NID 0x13, MONO_OUT, Monaural output pin */
55         0x01371cf0,
56         0x01371d11,
57         0x01371e17,
58         0x01371f51,
59
60         /* NID 0x14, Port B, Front panel microphone jack */
61         0x01471c22,
62         0x01471d91,
63         0x01471ea1,
64         0x01471f02,
65
66         /* NID 0x15, Port C, Rear panel line-in jack */
67         0x01571c21,
68         0x01571d30,
69         0x01571e81,
70         0x01571f01,
71
72         /* NID 0x16, Port F, Rear panel surround-back (5.1) jack */
73         0x01671c12,
74         0x01671d10,
75         0x01671e01,
76         0x01671f01,
77
78         /* NID 0x17, Port E, Rear panel microphone jack */
79         0x01771c20,
80         0x01771d90,
81         0x01771ea1,
82         0x01771f01,
83
84         /* NID 0x18, CD IN, Analog CD input */
85         0x01871c2e,
86         0x01871d11,
87         0x01871e33,
88         0x01871f99,
89
90         /* NID 0x1a, Analog PCBEEP, External analog PCBEEP signal input */
91         0x01a71cf0,
92         0x01a71d01,
93         0x01a71ef3,
94         0x01a71f99,
95
96         /* NID 0x1b, S/PDIF Out, S/PDIF output pin */
97         0x01b71cf0,
98         0x01b71df1,
99         0x01b71e45,
100         0x01b71f01,
101
102         /* NID 0x1c, S/PDIF In, S/PDIF input pin */
103         0x01c71cf0,
104         0x01c71df1,
105         0x01c71ec5,
106         0x01c71f41,
107
108         /* NID 0x24, Port G, Rear panel C/LFE jack */
109         0x02471c11,
110         0x02471d60,
111         0x02471e01,
112         0x02471f01,
113
114         /* NID 0x25, Port H, Rear panel surround-side (7.1) jack */
115         0x02571c14,
116         0x02571d20,
117         0x02571e01,
118         0x02571f01,
119 };
120
121 extern const u32 *cim_verb_data;
122 extern u32 cim_verb_data_size;
123