Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 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. |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 15 | */ |
| 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 Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 23 | #include <device/azalia_device.h> |
| 24 | |
| 25 | const u32 cim_verb_data[] = { |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 26 | /* 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 Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 33 | AZALIA_SUBVENDOR(0x0, 0x104381f6), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 34 | |
| 35 | /* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */ |
| 36 | |
| 37 | /* NID 0x11, Port A, Front panel headphone jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 38 | AZALIA_PIN_CFG(0x0, 0x11, 0x02214130), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 39 | |
| 40 | /* NID 0x12, Port D, Rear panel front speaker jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 41 | AZALIA_PIN_CFG(0x0, 0x12, 0x01014010), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 42 | |
| 43 | /* NID 0x13, MONO_OUT, Monaural output pin */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 44 | AZALIA_PIN_CFG(0x0, 0x13, 0x511711f0), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 45 | |
| 46 | /* NID 0x14, Port B, Front panel microphone jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 47 | AZALIA_PIN_CFG(0x0, 0x14, 0x02a19122), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 48 | |
| 49 | /* NID 0x15, Port C, Rear panel line-in jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 50 | AZALIA_PIN_CFG(0x0, 0x15, 0x01813021), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 51 | |
| 52 | /* NID 0x16, Port F, Rear panel surround-back (5.1) jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 53 | AZALIA_PIN_CFG(0x0, 0x16, 0x01011012), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 54 | |
| 55 | /* NID 0x17, Port E, Rear panel microphone jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 56 | AZALIA_PIN_CFG(0x0, 0x17, 0x01a19020), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 57 | |
| 58 | /* NID 0x18, CD IN, Analog CD input */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 59 | AZALIA_PIN_CFG(0x0, 0x18, 0x9933112e), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 60 | |
| 61 | /* NID 0x1a, Analog PCBEEP, External analog PCBEEP signal input */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 62 | AZALIA_PIN_CFG(0x0, 0x1a, 0x99f301f0), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 63 | |
| 64 | /* NID 0x1b, S/PDIF Out, S/PDIF output pin */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 65 | AZALIA_PIN_CFG(0x0, 0x1b, 0x0145f1f0), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 66 | |
| 67 | /* NID 0x1c, S/PDIF In, S/PDIF input pin */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 68 | AZALIA_PIN_CFG(0x0, 0x1c, 0x41c5f1f0), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 69 | |
| 70 | /* NID 0x24, Port G, Rear panel C/LFE jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 71 | AZALIA_PIN_CFG(0x0, 0x24, 0x01016011), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 72 | |
| 73 | /* NID 0x25, Port H, Rear panel surround-side (7.1) jack */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 74 | AZALIA_PIN_CFG(0x0, 0x25, 0x01012014), |
Uwe Hermann | 29c7dfca | 2010-12-13 13:44:33 +0000 | [diff] [blame] | 75 | }; |
| 76 | |
Jonathan A. Kollasch | ec505ad2 | 2015-07-07 12:57:46 -0500 | [diff] [blame] | 77 | const u32 pc_beep_verbs[0] = {}; |
| 78 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 79 | AZALIA_ARRAY_SIZES; |