Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame^] | 20 | #include <device/azalia_device.h> |
| 21 | |
| 22 | const u32 cim_verb_data[] = { |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 23 | /* coreboot specific header */ |
| 24 | 0x10ec0269, // Codec Vendor / Device ID: Realtek |
| 25 | 0x17aa21fe, // Subsystem ID |
| 26 | 0x0000000c, // Number of jacks |
| 27 | |
| 28 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 29 | AZALIA_SUBVENDOR(0x0, 0x17aa21fe), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 30 | |
| 31 | /* Pin Widget Verb Table */ |
| 32 | |
| 33 | /* Pin Complex (NID 0x12): 0x90a60930 DMIC */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 34 | AZALIA_PIN_CFG(0x0, 0x12, 0x90a60930), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 35 | |
| 36 | /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 37 | AZALIA_PIN_CFG(0x0, 0x14, 0x90170110), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 38 | |
| 39 | /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 40 | AZALIA_PIN_CFG(0x0, 0x15, 0x0321101f), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 41 | |
| 42 | /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 43 | AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 44 | |
| 45 | /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 46 | AZALIA_PIN_CFG(0x0, 0x18, 0x03a11820), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 47 | |
| 48 | /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 49 | AZALIA_PIN_CFG(0x0, 0x19, 0x411111f0), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 50 | |
| 51 | /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 52 | AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 53 | |
| 54 | /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 55 | AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 56 | |
| 57 | /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 58 | AZALIA_PIN_CFG(0x0, 0x1d, 0x4016862d), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 59 | |
| 60 | /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 61 | AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 62 | |
| 63 | /* Stout MIC detect setup */ |
| 64 | 0x02050018, |
| 65 | 0x02045184, |
| 66 | 0x02050008, |
| 67 | 0x02040300, |
| 68 | |
| 69 | /* coreboot specific header */ |
| 70 | 0x80862806, // Codec Vendor / Device ID: Intel PantherPoint HDMI |
| 71 | 0x80860101, // Subsystem ID |
| 72 | 0x00000004, // Number of jacks |
| 73 | |
| 74 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 75 | AZALIA_SUBVENDOR(0x3, 0x80860101), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 76 | |
| 77 | /* Pin Complex (NID 0x05) Digital Out at Int HDMI */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 78 | AZALIA_PIN_CFG(0x3, 0x05, 0x18560010), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 79 | |
| 80 | /* Pin Complex (NID 0x06) Not Connected */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 81 | AZALIA_PIN_CFG(0x3, 0x06, 0x58560020), |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 82 | |
| 83 | /* Pin Complex (NID 0x07) Not Connected */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 84 | AZALIA_PIN_CFG(0x3, 0x07, 0x58560030) |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 85 | }; |
| 86 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame^] | 87 | const u32 pc_beep_verbs[] = { |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 88 | 0x00170500, /* power up everything (codec, dac, adc, mixers) */ |
| 89 | 0x01470740, /* enable speaker out */ |
| 90 | 0x01470c02, /* set speaker EAPD pin */ |
| 91 | 0x0143b01f, /* unmute speaker */ |
| 92 | 0x00c37100, /* unmute mixer nid 0xc input 1 */ |
| 93 | 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */ |
| 94 | }; |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame^] | 95 | AZALIA_ARRAY_SIZES; |