2 * This file is part of the coreboot project.
4 * Copyright (C) 2013 Google Inc.
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.
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.
21 #include <device/azalia_device.h>
23 const u32 cim_verb_data
[] = {
24 /* coreboot specific header */
25 0x10ec0283, // Codec Vendor / Device ID: Realtek ALC283
26 0x10ec0283, // Subsystem ID
27 0x0000000c, // Number of jacks (NID entries)
29 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
30 AZALIA_SUBVENDOR(0x0, 0x10ec0283),
32 /* Pin Widget Verb Table */
34 /* Pin Complex (NID 0x12) DMIC */
35 AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
37 /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
38 AZALIA_PIN_CFG(0x0, 0x14, 0x401111f0),
40 /* Pin Complex (NID 0x17) */
41 AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
43 /* Pin Complex (NID 0x18) MIC1 PORTB */
47 // connector, left panel
48 AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
50 /* Pin Complex (NID 0x19) MIC2 PORTF */
51 AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
53 /* Pin Complex (NID 0x1A) LINE1 PORTC */
54 AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
56 /* Pin Complex (NID 0x1B) LINE2 PORTE */
57 AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
59 /* Pin Complex (NID 0x1d) PCBeep */
60 // eapd low on ex-amp, laptop, custom enable
62 // pcbeep en able, checksum
63 // no physical, internal
64 AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
66 /* Pin Complex (NID 0x1E) SPDIF-OUT */
67 AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
69 /* Pin Complex (NID 0x21) HPOUT PORT-I */
73 // connector, left panel
74 AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
76 /* Undocumented settings from Realtek (needed for beep_gen) */
77 /* Widget node 0x20 */
84 const u32 pc_beep_verbs
[] = {
85 0x00170500, /* power up everything (codec, dac, adc, mixers) */
86 0x01470740, /* enable speaker out */
87 0x01470c02, /* set speaker EAPD pin */
88 0x0143b01f, /* unmute speaker */
89 0x00c37100, /* unmute mixer nid 0xc input 1 */
90 0x00b37410, /* unmute mixer nid 0xb beep input and set volume */
94 #endif /* HDA_VERB_H */