blob: 3c82ba84e0792bc59519eda1b065a42881e53341 [file] [log] [blame]
Uwe Hermann29c7dfca2010-12-13 13:44:33 +00001/*
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.
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000015 */
16
17/*
18 * HDA codec soldered onto the ASUS M2N-E:
19 * Analog Devices AD1988B (High Definition Audio SoundMAX Codec), rev. 0x100200
20 * http://www.analog.com/static/imported-files/data_sheets/AD1988A_1988B.pdf
21 */
22
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020023#include <device/azalia_device.h>
24
25const u32 cim_verb_data[] = {
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000026 /* coreboot specific header */
27 0x11d4198b, /* Codec Vendor / Device ID: Analog Devices AD1988B */
28 0x104381f6, /* Subsystem ID (0x1043 == ASUS) */
29 0x0000000d, /* Number of "pin complex" entries in the table */
30
31 /* NID 0x01, FUNCTION, Designates this device as an audio codec */
32 /* Set the Implementation ID (IID), here: 0x104381f6. */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020033 AZALIA_SUBVENDOR(0x0, 0x104381f6),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000034
35 /* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */
36
37 /* NID 0x11, Port A, Front panel headphone jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020038 AZALIA_PIN_CFG(0x0, 0x11, 0x02214130),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000039
40 /* NID 0x12, Port D, Rear panel front speaker jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020041 AZALIA_PIN_CFG(0x0, 0x12, 0x01014010),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000042
43 /* NID 0x13, MONO_OUT, Monaural output pin */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020044 AZALIA_PIN_CFG(0x0, 0x13, 0x511711f0),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000045
46 /* NID 0x14, Port B, Front panel microphone jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020047 AZALIA_PIN_CFG(0x0, 0x14, 0x02a19122),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000048
49 /* NID 0x15, Port C, Rear panel line-in jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020050 AZALIA_PIN_CFG(0x0, 0x15, 0x01813021),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000051
52 /* NID 0x16, Port F, Rear panel surround-back (5.1) jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020053 AZALIA_PIN_CFG(0x0, 0x16, 0x01011012),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000054
55 /* NID 0x17, Port E, Rear panel microphone jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020056 AZALIA_PIN_CFG(0x0, 0x17, 0x01a19020),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000057
58 /* NID 0x18, CD IN, Analog CD input */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020059 AZALIA_PIN_CFG(0x0, 0x18, 0x9933112e),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000060
61 /* NID 0x1a, Analog PCBEEP, External analog PCBEEP signal input */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020062 AZALIA_PIN_CFG(0x0, 0x1a, 0x99f301f0),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000063
64 /* NID 0x1b, S/PDIF Out, S/PDIF output pin */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020065 AZALIA_PIN_CFG(0x0, 0x1b, 0x0145f1f0),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000066
67 /* NID 0x1c, S/PDIF In, S/PDIF input pin */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020068 AZALIA_PIN_CFG(0x0, 0x1c, 0x41c5f1f0),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000069
70 /* NID 0x24, Port G, Rear panel C/LFE jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020071 AZALIA_PIN_CFG(0x0, 0x24, 0x01016011),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000072
73 /* NID 0x25, Port H, Rear panel surround-side (7.1) jack */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020074 AZALIA_PIN_CFG(0x0, 0x25, 0x01012014),
Uwe Hermann29c7dfca2010-12-13 13:44:33 +000075};
76
Jonathan A. Kollaschec505ad22015-07-07 12:57:46 -050077const u32 pc_beep_verbs[0] = {};
78
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020079AZALIA_ARRAY_SIZES;