blob: 3fcd4f5c652d83aeb16d26cceca98b10465f7e83 [file] [log] [blame]
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -07001/*
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 Serbinenko75c83872014-09-05 01:01:31 +020020#include <device/azalia_device.h>
21
22const u32 cim_verb_data[] = {
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070023 /* 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 Serbinenko02d674a2014-09-04 22:04:11 +020029 AZALIA_SUBVENDOR(0x0, 0x17aa21fe),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070030
31 /* Pin Widget Verb Table */
32
33 /* Pin Complex (NID 0x12): 0x90a60930 DMIC */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020034 AZALIA_PIN_CFG(0x0, 0x12, 0x90a60930),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070035
36 /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020037 AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070038
39 /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020040 AZALIA_PIN_CFG(0x0, 0x15, 0x0321101f),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070041
42 /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020043 AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070044
45 /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020046 AZALIA_PIN_CFG(0x0, 0x18, 0x03a11820),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070047
48 /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020049 AZALIA_PIN_CFG(0x0, 0x19, 0x411111f0),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070050
51 /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020052 AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070053
54 /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020055 AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070056
57 /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020058 AZALIA_PIN_CFG(0x0, 0x1d, 0x4016862d),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070059
60 /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020061 AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070062
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 Serbinenko02d674a2014-09-04 22:04:11 +020075 AZALIA_SUBVENDOR(0x3, 0x80860101),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070076
77 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020078 AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070079
80 /* Pin Complex (NID 0x06) Not Connected */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020081 AZALIA_PIN_CFG(0x3, 0x06, 0x58560020),
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070082
83 /* Pin Complex (NID 0x07) Not Connected */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020084 AZALIA_PIN_CFG(0x3, 0x07, 0x58560030)
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070085};
86
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020087const u32 pc_beep_verbs[] = {
Stefan Reinauerb7ecf6d2013-03-13 17:13:32 -070088 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 Serbinenko75c83872014-09-05 01:01:31 +020095AZALIA_ARRAY_SIZES;