azalia: Use convenience macros throughout

Change-Id: Ic044bf155bfcf93fa7cf3afd7287b7d0b615ef6d
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6839
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Vladimir Serbinenko 2014-09-04 22:04:11 +02:00
parent f91ecce609
commit 02d674ac2f
46 changed files with 450 additions and 1377 deletions

View File

@ -25,69 +25,36 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000B, /* Number of 4 dword sets */ 0x0000000B, /* Number of 4 dword sets */
/* NID 0x01: Subsystem ID. */ /* NID 0x01: Subsystem ID. */
0x00172000, AZALIA_SUBVENDOR(0x0, 0x106B2200),
0x00172122,
0x0017226B,
0x00172310,
/* NID 0x0A. */ /* NID 0x0A. */
0x00A71C1F, AZALIA_PIN_CFG(0x0, 0x0A, 0x0321E21F),
0x00A71DE2,
0x00A71E21,
0x00A71F03,
/* NID 0x0B. */ /* NID 0x0B. */
0x00B71C2E, AZALIA_PIN_CFG(0x0, 0x0B, 0x03A1E02E),
0x00B71DE0,
0x00B71EA1,
0x00B71F03,
/* NID 0x0C. */ /* NID 0x0C. */
0x00C71C10, AZALIA_PIN_CFG(0x0, 0x0C, 0x9017E110),
0x00C71DE1,
0x00C71E17,
0x00C71F90,
/* NID 0x0D. */ /* NID 0x0D. */
0x00D71C1F, AZALIA_PIN_CFG(0x0, 0x0D, 0x9017E11F),
0x00D71DE1,
0x00D71E17,
0x00D71F90,
/* NID 0x0E. */ /* NID 0x0E. */
0x00E71CFE, AZALIA_PIN_CFG(0x0, 0x0E, 0x400000FE),
0x00E71D00,
0x00E71E00,
0x00E71F40,
/* NID 0x0F */ /* NID 0x0F */
0x00F71C20, AZALIA_PIN_CFG(0x0, 0x0F, 0x0381E020),
0x00F71DE0,
0x00F71E81,
0x00F71F03,
/* NID 0x10 */ /* NID 0x10 */
0x01071C30, AZALIA_PIN_CFG(0x0, 0x10, 0x1345E230),
0x01071DE2,
0x01071E45,
0x01071F13,
/* NID 0x11 */ /* NID 0x11 */
0x01171C40, AZALIA_PIN_CFG(0x0, 0x11, 0x13C5E240),
0x01171DE2,
0x01171EC5,
0x01171F13,
/* NID 0x15 */ /* NID 0x15 */
0x01571CFC, AZALIA_PIN_CFG(0x0, 0x15, 0x400000FC),
0x01571D00,
0x01571E00,
0x01571F40,
/* NID 0x1B. */ /* NID 0x1B. */
0x01B71CFB, AZALIA_PIN_CFG(0x0, 0x1B, 0x400000FB),
0x01B71D00,
0x01B71E00,
0x01B71F40,
}; };

View File

@ -32,89 +32,47 @@ static const u32 mainboard_cim_verb_data[] = {
/* NID 0x01, FUNCTION, Designates this device as an audio codec */ /* NID 0x01, FUNCTION, Designates this device as an audio codec */
/* Set the Implementation ID (IID), here: 0x104381f6. */ /* Set the Implementation ID (IID), here: 0x104381f6. */
0x001720f6, AZALIA_SUBVENDOR(0x0, 0x104381f6),
0x00172181,
0x00172243,
0x00172310,
/* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */ /* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */
/* NID 0x11, Port A, Front panel headphone jack */ /* NID 0x11, Port A, Front panel headphone jack */
0x01171c30, AZALIA_PIN_CFG(0x0, 0x11, 0x02214130),
0x01171d41,
0x01171e21,
0x01171f02,
/* NID 0x12, Port D, Rear panel front speaker jack */ /* NID 0x12, Port D, Rear panel front speaker jack */
0x01271c10, AZALIA_PIN_CFG(0x0, 0x12, 0x01014010),
0x01271d40,
0x01271e01,
0x01271f01,
/* NID 0x13, MONO_OUT, Monaural output pin */ /* NID 0x13, MONO_OUT, Monaural output pin */
0x01371cf0, AZALIA_PIN_CFG(0x0, 0x13, 0x511711f0),
0x01371d11,
0x01371e17,
0x01371f51,
/* NID 0x14, Port B, Front panel microphone jack */ /* NID 0x14, Port B, Front panel microphone jack */
0x01471c22, AZALIA_PIN_CFG(0x0, 0x14, 0x02a19122),
0x01471d91,
0x01471ea1,
0x01471f02,
/* NID 0x15, Port C, Rear panel line-in jack */ /* NID 0x15, Port C, Rear panel line-in jack */
0x01571c21, AZALIA_PIN_CFG(0x0, 0x15, 0x01813021),
0x01571d30,
0x01571e81,
0x01571f01,
/* NID 0x16, Port F, Rear panel surround-back (5.1) jack */ /* NID 0x16, Port F, Rear panel surround-back (5.1) jack */
0x01671c12, AZALIA_PIN_CFG(0x0, 0x16, 0x01011012),
0x01671d10,
0x01671e01,
0x01671f01,
/* NID 0x17, Port E, Rear panel microphone jack */ /* NID 0x17, Port E, Rear panel microphone jack */
0x01771c20, AZALIA_PIN_CFG(0x0, 0x17, 0x01a19020),
0x01771d90,
0x01771ea1,
0x01771f01,
/* NID 0x18, CD IN, Analog CD input */ /* NID 0x18, CD IN, Analog CD input */
0x01871c2e, AZALIA_PIN_CFG(0x0, 0x18, 0x9933112e),
0x01871d11,
0x01871e33,
0x01871f99,
/* NID 0x1a, Analog PCBEEP, External analog PCBEEP signal input */ /* NID 0x1a, Analog PCBEEP, External analog PCBEEP signal input */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x99f301f0),
0x01a71d01,
0x01a71ef3,
0x01a71f99,
/* NID 0x1b, S/PDIF Out, S/PDIF output pin */ /* NID 0x1b, S/PDIF Out, S/PDIF output pin */
0x01b71cf0, AZALIA_PIN_CFG(0x0, 0x1b, 0x0145f1f0),
0x01b71df1,
0x01b71e45,
0x01b71f01,
/* NID 0x1c, S/PDIF In, S/PDIF input pin */ /* NID 0x1c, S/PDIF In, S/PDIF input pin */
0x01c71cf0, AZALIA_PIN_CFG(0x0, 0x1c, 0x41c5f1f0),
0x01c71df1,
0x01c71ec5,
0x01c71f41,
/* NID 0x24, Port G, Rear panel C/LFE jack */ /* NID 0x24, Port G, Rear panel C/LFE jack */
0x02471c11, AZALIA_PIN_CFG(0x0, 0x24, 0x01016011),
0x02471d60,
0x02471e01,
0x02471f01,
/* NID 0x25, Port H, Rear panel surround-side (7.1) jack */ /* NID 0x25, Port H, Rear panel surround-side (7.1) jack */
0x02571c14, AZALIA_PIN_CFG(0x0, 0x25, 0x01012014),
0x02571d20,
0x02571e01,
0x02571f01,
}; };

View File

@ -25,10 +25,7 @@ static const u32 mainboard_cim_verb_data[] = {
/* ===== HDA Codec Subsystem ID Verb-table ===== */ /* ===== HDA Codec Subsystem ID Verb-table ===== */
/* HDA Codec Subsystem ID : 0x10EC0000 */ /* HDA Codec Subsystem ID : 0x10EC0000 */
0x00172000, AZALIA_SUBVENDOR(0x0, 0x10ec0000),
0x00172100,
0x001722ec,
0x00172310,
/* ===== Pin Widget Verb-table ===== */ /* ===== Pin Widget Verb-table ===== */
/* Widget node 0x01 : */ /* Widget node 0x01 : */
@ -37,68 +34,29 @@ static const u32 mainboard_cim_verb_data[] = {
0x0017ff00, 0x0017ff00,
0x0017ff00, 0x0017ff00,
/* Pin widget 0x11 - S/PDIF-OUT2 */ /* Pin widget 0x11 - S/PDIF-OUT2 */
0x01171c00, AZALIA_PIN_CFG(0x0, 0x11, 0x40000000),
0x01171d00,
0x01171e00,
0x01171f40,
/* Pin widget 0x12 - DMIC */ /* Pin widget 0x12 - DMIC */
0x01271cf0, AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
0x01271d11,
0x01271e11,
0x01271f41,
/* Pin widget 0x14 - LINE-OUT (Port-D) */ /* Pin widget 0x14 - LINE-OUT (Port-D) */
0x01471c10, AZALIA_PIN_CFG(0x0, 0x14, 0x01014110),
0x01471d41,
0x01471e01,
0x01471f01,
/* Pin widget 0x15 - HP-OUT (Port-A) */ /* Pin widget 0x15 - HP-OUT (Port-A) */
0x01571cf0, AZALIA_PIN_CFG(0x0, 0x15, 0x411111f0),
0x01571d11,
0x01571e11,
0x01571f41,
/* Pin widget 0x16 - MONO-OUT */ /* Pin widget 0x16 - MONO-OUT */
0x01671cf0, AZALIA_PIN_CFG(0x0, 0x16, 0x411111f0),
0x01671d11,
0x01671e11,
0x01671f41,
/* Pin widget 0x18 - MIC1 (Port-B) */ /* Pin widget 0x18 - MIC1 (Port-B) */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin widget 0x19 - MIC2 (Port-F) */ /* Pin widget 0x19 - MIC2 (Port-F) */
0x01971c30, AZALIA_PIN_CFG(0x0, 0x19, 0x02a19130),
0x01971d91,
0x01971ea1,
0x01971f02,
/* Pin widget 0x1A - LINE1 (Port-C) */ /* Pin widget 0x1A - LINE1 (Port-C) */
0x01a71c40, AZALIA_PIN_CFG(0x0, 0x1a, 0x01813140),
0x01a71d31,
0x01a71e81,
0x01a71f01,
/* Pin widget 0x1B - LINE2 (Port-E) */ /* Pin widget 0x1B - LINE2 (Port-E) */
0x01b71cf0, AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
0x01b71d11,
0x01b71e11,
0x01b71f41,
/* Pin widget 0x1C - CD-IN */ /* Pin widget 0x1C - CD-IN */
0x01c71cf0, AZALIA_PIN_CFG(0x0, 0x1c, 0x411111f0),
0x01c71d11,
0x01c71e11,
0x01c71f41,
/* Pin widget 0x1D - BEEP-IN */ /* Pin widget 0x1D - BEEP-IN */
0x01d71c29, AZALIA_PIN_CFG(0x0, 0x1d, 0x40354629),
0x01d71d46,
0x01d71e35,
0x01d71f40,
/* Pin widget 0x1E - S/PDIF-OUT */ /* Pin widget 0x1E - S/PDIF-OUT */
0x01e71c20, AZALIA_PIN_CFG(0x0, 0x1e, 0x18561120),
0x01e71d11,
0x01e71e56,
0x01e71f18,
/* Pin widget 0x1F - S/PDIF-IN */ /* Pin widget 0x1F - S/PDIF-IN */
0x01f71cf0, AZALIA_PIN_CFG(0x0, 0x1f, 0x411111f0),
0x01f71d11,
0x01f71e11,
0x01f71f41,
}; };

View File

@ -24,82 +24,43 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000d, // Number of jacks 0x0000000d, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0000 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0000 */
0x00172000, AZALIA_SUBVENDOR(0x0, 0x10EC0000),
0x00172100,
0x001722EC,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12), DMIC */ /* Pin Complex (NID 0x12), DMIC */
0x01271CF0, AZALIA_PIN_CFG(0x0, 0x12, 0x411111F0),
0x01271D11,
0x01271E11,
0x01271F41,
/* Pin Complex (NID 0x14), LINE_OUT (port D) */ /* Pin Complex (NID 0x14), LINE_OUT (port D) */
0x01471C10, AZALIA_PIN_CFG(0x0, 0x14, 0x99130110),
0x01471D01,
0x01471E13,
0x01471F99,
/* Pin Complex (NID 0x15), HP_OUT (port A) */ /* Pin Complex (NID 0x15), HP_OUT (port A) */
0x01571C20, AZALIA_PIN_CFG(0x0, 0x15, 0x01214020),
0x01571D40,
0x01571E21,
0x01571F01,
/* Pin Complex (NID 0x16), MONO-OUT */ /* Pin Complex (NID 0x16), MONO-OUT */
0x01671CF0, AZALIA_PIN_CFG(0x0, 0x16, 0x411111F0),
0x01671D11,
0x01671E11,
0x01671F41,
/* Pin Complex (NID 0x18), MIC1 (port B) */ /* Pin Complex (NID 0x18), MIC1 (port B) */
0x01871C30, AZALIA_PIN_CFG(0x0, 0x18, 0x01A19830),
0x01871D98,
0x01871EA1,
0x01871F01,
/* Pin Complex (NID 0x19), MIC2 (port F) */ /* Pin Complex (NID 0x19), MIC2 (port F) */
0x01971C31, AZALIA_PIN_CFG(0x0, 0x19, 0x99A30931),
0x01971D09,
0x01971EA3,
0x01971F99,
/* Pin Complex (NID 0x1A), LINE1 (port C) */ /* Pin Complex (NID 0x1A), LINE1 (port C) */
0x01A71C3F, AZALIA_PIN_CFG(0x0, 0x1A, 0x02A1983F),
0x01A71D98,
0x01A71EA1,
0x01A71F02,
/* Pin Complex (NID 0x1B), LINE2 (port E) */ /* Pin Complex (NID 0x1B), LINE2 (port E) */
0x01B71C1F, AZALIA_PIN_CFG(0x0, 0x1B, 0x0221401F),
0x01B71D40,
0x01B71E21,
0x01B71F02,
/* Pin Complex (NID 0x1C), CD_IN */ /* Pin Complex (NID 0x1C), CD_IN */
0x01C71CF0, AZALIA_PIN_CFG(0x0, 0x1C, 0x411111F0),
0x01C71D11,
0x01C71E11,
0x01C71F41,
/* Pin Complex (NID 0x1D), PCBEEP */ /* Pin Complex (NID 0x1D), PCBEEP */
0x01D71CF0, AZALIA_PIN_CFG(0x0, 0x1D, 0x411111F0),
0x01D71D11,
0x01D71E11,
0x01D71F41,
/* Pin Complex (NID 0x1E), S/PDIF-OUT */ /* Pin Complex (NID 0x1E), S/PDIF-OUT */
0x01E71CF0, AZALIA_PIN_CFG(0x0, 0x1E, 0x411111F0),
0x01E71D11,
0x01E71E11,
0x01E71F41,
/* Pin Complex (NID 0x1F), S/PDIF-IN */ /* Pin Complex (NID 0x1F), S/PDIF-IN */
0x01F71CF0, AZALIA_PIN_CFG(0x0, 0x1F, 0x411111F0),
0x01F71D11,
0x01F71E11,
0x01F71F41,
}; };

View File

@ -24,71 +24,54 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000b, // Number of jacks (NID entries) 0x0000000b, // Number of jacks (NID entries)
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
0x00172083, AZALIA_SUBVENDOR(0x0, 0x10ec0283),
0x00172102,
0x001722ec,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC - interior mobile lid */ /* Pin Complex (NID 0x12) DMIC - interior mobile lid */
0x01271c10, AZALIA_PIN_CFG(0x0, 0x12, 0xb7a61010),
0x01271d10,
0x01271ea6,
0x01271fb7,
/* Pin Complex (NID 0x14) SPKR-OUT PORTD */ /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
0x01471c10, // group 1, front left/right // group 1, front left/right
0x01471d01, // no connector, no jack detect // no connector, no jack detect
0x01471e17, // speaker out, analog // speaker out, analog
0x01471f90, // fixed function, internal // fixed function, internal
AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) MIC1 PORTB */ /* Pin Complex (NID 0x18) MIC1 PORTB */
0x01971c11, // group 1, cap 1 // group 1, cap 1
0x01971d10, // black, jack detect // black, jack detect
0x01971ea7, // mic in, analog // mic in, analog
0x01971f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
/* Pin Complex (NID 0x19) MIC2 PORTF */ /* Pin Complex (NID 0x19) MIC2 PORTF */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin Complex (NID 0x1A) LINE1 PORTC */ /* Pin Complex (NID 0x1A) LINE1 PORTC */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) LINE2 PORTE */ /* Pin Complex (NID 0x1B) LINE2 PORTE */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1d) PCBeep */ /* Pin Complex (NID 0x1d) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, internal // no physical, internal
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT */ /* Pin Complex (NID 0x1E) SPDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) HPOUT PORT-I */ /* Pin Complex (NID 0x21) HPOUT PORT-I */
0x02171c1f, // group1, // group1,
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 1/8 stereo // HPOut, 1/8 stereo
0x02171f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
}; };

View File

@ -36,58 +36,37 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01 - NodeInfo */ /* NID 0x01 - NodeInfo */
0x001720F9, AZALIA_SUBVENDOR(0x0, 0x103C18F9),
0x00172118,
0x0017223C,
0x00172310,
/* NID 0x0A - External Microphone Connector /* NID 0x0A - External Microphone Connector
* Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq) * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
*/ */
0x00A71C20, AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),
0x00A71D10,
0x00A71EA1,
0x00A71F04,
/* NID 0x0B - Headphone Connector /* NID 0x0B - Headphone Connector
* Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq) * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
*/ */
0x00B71C1F, AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),
0x00B71D10,
0x00B71E21,
0x00B71F04,
/* NID 0x0C - Not connected /* NID 0x0C - Not connected
* Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq) * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
*/ */
0x00C71CF0, AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),
0x00C71D00,
0x00C71EF0,
0x00C71F40,
/* NID 0x0D - Internal Speakers /* NID 0x0D - Internal Speakers
* Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq) * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
*/ */
0x00D71C10, AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
0x00D71D01,
0x00D71E17,
0x00D71F90,
/* NID 0x0F - Not connected /* NID 0x0F - Not connected
* Config=0x40F000F0 * Config=0x40F000F0
*/ */
0x00F71CF0, AZALIA_PIN_CFG(0x0, 0x0F, 0x40F000F0),
0x00F71D00,
0x00F71EF0,
0x00F71F40,
/* NID 0x11 - Internal Microphone /* NID 0x11 - Internal Microphone
* Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq) * Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq)
*/ */
0x01171C40, AZALIA_PIN_CFG(0x0, 0x11, 0xD5A30140),
0x01171D01,
0x01171EA3,
0x01171FD5,
/* /*
* Hardware EQ Parameters * Hardware EQ Parameters
@ -232,28 +211,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of IDs 0x00000004, // Number of IDs
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -32,7 +32,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include "onboard.h" #include "onboard.h"
#include "ec.h" #include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
@ -40,6 +39,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <ec/quanta/ene_kb3940q/ec.h> #include <ec/quanta/ene_kb3940q/ec.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
#if CONFIG_CHROMEOS #if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/fmap.h> #include <vendorcode/google/chromeos/fmap.h>
#else #else

View File

@ -29,72 +29,55 @@ static const u32 mainboard_cim_verb_data[] = {
0x000F0002, // Pad - get revision id 0x000F0002, // Pad - get revision id
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
0x00172083, AZALIA_SUBVENDOR(0x0, 0x10ec0283),
0x00172102,
0x001722ec,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC - interior mobile lid */ /* Pin Complex (NID 0x12) DMIC - interior mobile lid */
0x01271c10, AZALIA_PIN_CFG(0x0, 0x12, 0xb7a61010),
0x01271d10,
0x01271ea6,
0x01271fb7,
/* Pin Complex (NID 0x14) SPKR-OUT PORTD */ /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
0x01471c10, // group 1, front left/right // group 1, front left/right
0x01471d01, // no connector, no jack detect // no connector, no jack detect
0x01471e17, // speaker out, analog // speaker out, analog
0x01471f90, // fixed function, internal // fixed function, internal
AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) MIC1 PORTB */ /* Pin Complex (NID 0x18) MIC1 PORTB */
0x01971c11, // group 1, cap 1 // group 1, cap 1
0x01971d10, // black, jack detect // black, jack detect
0x01971ea7, // mic in, analog // mic in, analog
0x01971f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
/* Pin Complex (NID 0x19) MIC2 PORTF */ /* Pin Complex (NID 0x19) MIC2 PORTF */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin Complex (NID 0x1A) LINE1 PORTC */ /* Pin Complex (NID 0x1A) LINE1 PORTC */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) LINE2 PORTE */ /* Pin Complex (NID 0x1B) LINE2 PORTE */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1d) PCBeep */ /* Pin Complex (NID 0x1d) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, internal // no physical, internal
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT */ /* Pin Complex (NID 0x1E) SPDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) HPOUT PORT-I */ /* Pin Complex (NID 0x21) HPOUT PORT-I */
0x02171c1f, // group1, // group1,
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 1/8 stereo // HPOut, 1/8 stereo
0x02171f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
/* Undocumented settings from Realtek (needed for beep_gen) */ /* Undocumented settings from Realtek (needed for beep_gen) */
/* Widget node 0x20 */ /* Widget node 0x20 */

View File

@ -34,9 +34,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"

View File

@ -78,64 +78,34 @@ static const u32 mainboard_cim_verb_data[] = {
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x144DC0C2 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x144DC0C2 */
0x001720c2, AZALIA_SUBVENDOR(0x0, 0x144dc0c2),
0x001721c0,
0x0017224d,
0x00172314,
/* Pin Complex (NID 0x0B) Port-G Analog Unknown Speaker at Int N/A */ /* Pin Complex (NID 0x0B) Port-G Analog Unknown Speaker at Int N/A */
0x00b71cf0, AZALIA_PIN_CFG(0x0, 0x0b, 0x901700f0),
0x00b71d00,
0x00b71e17,
0x00b71f90,
/* Pin Complex (NID 0x0C) N/C */ /* Pin Complex (NID 0x0C) N/C */
0x00c71cf0, AZALIA_PIN_CFG(0x0, 0x0c, 0x70f000f0),
0x00c71d00,
0x00c71ef0,
0x00c71f70,
/* Pin Complex (NID 0x0D) N/C */ /* Pin Complex (NID 0x0D) N/C */
0x00d71cf0, AZALIA_PIN_CFG(0x0, 0x0d, 0x70f000f0),
0x00d71d00,
0x00d71ef0,
0x00d71f70,
/* Pin Complex (NID 0x0E) N/C */ /* Pin Complex (NID 0x0E) N/C */
0x00e71cf0, AZALIA_PIN_CFG(0x0, 0x0e, 0x70f000f0),
0x00e71d00,
0x00e71ef0,
0x00e71f70,
/* Pin Complex (NID 0x0F) N/C */ /* Pin Complex (NID 0x0F) N/C */
0x00f71cf0, AZALIA_PIN_CFG(0x0, 0x0f, 0x70f000f0),
0x00f71d00,
0x00f71ef0,
0x00f71f70,
/* Pin Complex (NID 0x10) Port-D 1/8 Black HP Out at Ext Left */ /* Pin Complex (NID 0x10) Port-D 1/8 Black HP Out at Ext Left */
0x01071cf0, AZALIA_PIN_CFG(0x0, 0x10, 0x032110f0),
0x01071d10,
0x01071e21,
0x01071f03,
/* Pin Complex (NID 0x11) Port-B Click Mic */ /* Pin Complex (NID 0x11) Port-B Click Mic */
0x01171cf0, AZALIA_PIN_CFG(0x0, 0x11, 0x90a700f0),
0x01171d00,
0x01171ea7,
0x01171f90,
/* Pin Complex (NID 0x12) Port-C Combo Jack Mic or D-Mic */ /* Pin Complex (NID 0x12) Port-C Combo Jack Mic or D-Mic */
0x01271cf0, AZALIA_PIN_CFG(0x0, 0x12, 0x03a110f0),
0x01271d10,
0x01271ea1,
0x01271f03,
/* Pin Complex (NID 0x13) What you hear */ /* Pin Complex (NID 0x13) What you hear */
0x01371cf0, AZALIA_PIN_CFG(0x0, 0x13, 0x90d600f0),
0x01371d00,
0x01371ed6,
0x01371f90,
/* coreboot specific header */ /* coreboot specific header */
0x80862806, // Codec Vendor / Device ID: Intel CougarPoint HDMI 0x80862806, // Codec Vendor / Device ID: Intel CougarPoint HDMI
@ -143,28 +113,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -33,7 +33,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include "onboard.h" #include "onboard.h"
#include "ec.h" #include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
@ -41,6 +40,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
/* placeholder for evenual link post. Not sure what we'll /* placeholder for evenual link post. Not sure what we'll
* do but it will look nice * do but it will look nice

View File

@ -29,72 +29,51 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000c, // Number of jacks (NID entries) 0x0000000c, // Number of jacks (NID entries)
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
0x00172083, AZALIA_SUBVENDOR(0x0, 0x10ec0283),
0x00172102,
0x001722ec,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC */ /* Pin Complex (NID 0x12) DMIC */
0x01271cf0, AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
0x01271d11,
0x01271e11,
0x01271f41,
/* Pin Complex (NID 0x14) SPKR-OUT PORTD */ /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
0x01471cf0, AZALIA_PIN_CFG(0x0, 0x14, 0x401111f0),
0x01471d11,
0x01471e11,
0x01471f40,
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) MIC1 PORTB */ /* Pin Complex (NID 0x18) MIC1 PORTB */
0x01971c11, // group 1, cap 1 // group 1, cap 1
0x01971d10, // black, jack detect // black, jack detect
0x01971ea7, // mic in, analog // mic in, analog
0x01971f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
/* Pin Complex (NID 0x19) MIC2 PORTF */ /* Pin Complex (NID 0x19) MIC2 PORTF */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin Complex (NID 0x1A) LINE1 PORTC */ /* Pin Complex (NID 0x1A) LINE1 PORTC */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) LINE2 PORTE */ /* Pin Complex (NID 0x1B) LINE2 PORTE */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1d) PCBeep */ /* Pin Complex (NID 0x1d) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, internal // no physical, internal
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT */ /* Pin Complex (NID 0x1E) SPDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) HPOUT PORT-I */ /* Pin Complex (NID 0x21) HPOUT PORT-I */
0x02171c1f, // group1, // group1,
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 1/8 stereo // HPOut, 1/8 stereo
0x02171f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
/* Undocumented settings from Realtek (needed for beep_gen) */ /* Undocumented settings from Realtek (needed for beep_gen) */
/* Widget node 0x20 */ /* Widget node 0x20 */

View File

@ -40,72 +40,59 @@ static const u32 mainboard_cim_verb_data[] = {
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10250742 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10250742 */
0x00172042, AZALIA_SUBVENDOR(0x0, 0x10250742),
0x00172107,
0x00172225,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC */ /* Pin Complex (NID 0x12) DMIC */
0x01271cf0, AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
0x01271d11,
0x01271e11,
0x01271f41,
/* Pin Complex (NID 0x14) SPKR-OUT PORTD */ /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
0x01471c10, // group 1, front left/right // group 1, front left/right
0x01471d01, // no connector, no jack detect // no connector, no jack detect
0x01471e17, // speaker out, analog // speaker out, analog
0x01471f90, // fixed function, internal // fixed function, internal
AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) MIC1 PORTB */ /* Pin Complex (NID 0x18) MIC1 PORTB */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin Complex (NID 0x19) MIC2 PORTF */ /* Pin Complex (NID 0x19) MIC2 PORTF */
0x01971c21, // group 2, cap 1 // group 2, cap 1
0x01971d10, // black, jack detect // black, jack detect
0x01971ea7, // mic in, analog // mic in, analog
0x01971f04, // connector, right panel // connector, right panel
AZALIA_PIN_CFG(0x0, 0x19, 0x04a71021),
/* Pin Complex (NID 0x1A) LINE1 PORTC */ /* Pin Complex (NID 0x1A) LINE1 PORTC */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) LINE2 PORTE */ /* Pin Complex (NID 0x1B) LINE2 PORTE */
0x01b71c20, // group 2, cap 0 // group 2, cap 0
0x01b71d01, // no connector, no jack detect // no connector, no jack detect
0x01b71ea7, // mic in, analog // mic in, analog
0x01b71f90, // fixed function, internal // fixed function, internal
AZALIA_PIN_CFG(0x0, 0x1b, 0x90a70120),
/* Pin Complex (NID 0x1d) PCBeep */ /* Pin Complex (NID 0x1d) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, internal // no physical, internal
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT */ /* Pin Complex (NID 0x1E) SPDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) HPOUT PORTA? */ /* Pin Complex (NID 0x21) HPOUT PORTA? */
0x02171c1f, // group1, // group1,
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 1/8 stereo // HPOut, 1/8 stereo
0x02171f04, // connector, right panel // connector, right panel
AZALIA_PIN_CFG(0x0, 0x21, 0x0421101f),
/* Undocumented speaker output volume settings from Compal and Realtek */ /* Undocumented speaker output volume settings from Compal and Realtek */
/* Widget node 0x20 */ /* Widget node 0x20 */
@ -132,28 +119,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -32,7 +32,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include "onboard.h" #include "onboard.h"
#include "ec.h" #include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
@ -40,6 +39,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <ec/compal/ene932/ec.h> #include <ec/compal/ene932/ec.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -29,72 +29,59 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
0x00172083, AZALIA_SUBVENDOR(0x0, 0x10ec0283),
0x00172102,
0x001722ec,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC - Disabled */ /* Pin Complex (NID 0x12) DMIC - Disabled */
0x01271cf0, // AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
0x01271d11, //
0x01271e11, //
0x01271f41, //
/* Pin Complex (NID 0x14) SPKR-OUT - Internal Speakers */ /* Pin Complex (NID 0x14) SPKR-OUT - Internal Speakers */
0x01471c10, // group 1, cap 0 // group 1, cap 0
0x01471d01, // no connector, no jack detect // no connector, no jack detect
0x01471e17, // speaker out, analog // speaker out, analog
0x01471f90, // fixed function, internal, Location N/A // fixed function, internal, Location N/A
AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
/* Pin Complex (NID 0x17) MONO Out - Disabled */ /* Pin Complex (NID 0x17) MONO Out - Disabled */
0x01771cf0, // AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11, //
0x01771e11, //
0x01771f41, //
/* Pin Complex (NID 0x18) Disabled */ /* Pin Complex (NID 0x18) Disabled */
0x01871cf0, // AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11, //
0x01871e11, //
0x01871f41, //
/* Pin Complex (NID 0x19) MIC2 - 3.5mm Jack */ /* Pin Complex (NID 0x19) MIC2 - 3.5mm Jack */
0x01971c20, // group2, cap 0 // group2, cap 0
0x01971d10, // black, jack detect // black, jack detect
0x01971ea1, // Mic in, 3.5mm Jack // Mic in, 3.5mm Jack
0x01971f03, // connector, External left panel // connector, External left panel
AZALIA_PIN_CFG(0x0, 0x19, 0x03a11020),
/* Pin Complex (NID 0x1A) LINE1 - Internal Mic */ /* Pin Complex (NID 0x1A) LINE1 - Internal Mic */
0x01a71c11, // group 1, cap 1 // group 1, cap 1
0x01a71d01, // no connector, no jack detect // no connector, no jack detect
0x01a71ea7, // mic in, analog connection // mic in, analog connection
0x01a71f90, // Fixed function, internal, Location N/A // Fixed function, internal, Location N/A
AZALIA_PIN_CFG(0x0, 0x1a, 0x90a70111),
/* Pin Complex (NID 0x1B) LINE2 - Disabled */ /* Pin Complex (NID 0x1B) LINE2 - Disabled */
0x01b71cf0, // AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
0x01b71d11, //
0x01b71e11, //
0x01b71f41, //
/* Pin Complex (NID 0x1D) PCBeep */ /* Pin Complex (NID 0x1D) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, Internal, Location N/A // no physical, Internal, Location N/A
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT - Disabled*/ /* Pin Complex (NID 0x1E) SPDIF-OUT - Disabled*/
0x01e71cf0, // AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11, //
0x01e71e11, //
0x01e71f41, //
/* Pin Complex (NID 0x21) HP-OUT - 3.5mm Jack*/ /* Pin Complex (NID 0x21) HP-OUT - 3.5mm Jack*/
0x02171c21, // group2, cap 1 // group2, cap 1
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 3.5mm Jack // HPOut, 3.5mm Jack
0x02171f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x21, 0x03211021),
/* Undocumented settings from Realtek (needed for beep_gen) */ /* Undocumented settings from Realtek (needed for beep_gen) */
/* Widget node 0x20 */ /* Widget node 0x20 */

View File

@ -34,11 +34,11 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -31,7 +31,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>

View File

@ -24,72 +24,55 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000c, // Number of jacks (NID entries) 0x0000000c, // Number of jacks (NID entries)
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */
0x00172083, AZALIA_SUBVENDOR(0x0, 0x10ec0283),
0x00172102,
0x001722ec,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) DMIC - interior mobile lid */ /* Pin Complex (NID 0x12) DMIC - interior mobile lid */
0x01271c10, AZALIA_PIN_CFG(0x0, 0x12, 0xb7a61010),
0x01271d10,
0x01271ea6,
0x01271fb7,
/* Pin Complex (NID 0x14) SPKR-OUT PORTD */ /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
0x01471c10, // group 1, front left/right // group 1, front left/right
0x01471d01, // no connector, no jack detect // no connector, no jack detect
0x01471e17, // speaker out, analog // speaker out, analog
0x01471f90, // fixed function, internal // fixed function, internal
AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) MIC1 PORTB */ /* Pin Complex (NID 0x18) MIC1 PORTB */
0x01971c11, // group 1, cap 1 // group 1, cap 1
0x01971d10, // black, jack detect // black, jack detect
0x01971ea7, // mic in, analog // mic in, analog
0x01971f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
/* Pin Complex (NID 0x19) MIC2 PORTF */ /* Pin Complex (NID 0x19) MIC2 PORTF */
0x01871cf0, AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
0x01871d11,
0x01871e11,
0x01871f41,
/* Pin Complex (NID 0x1A) LINE1 PORTC */ /* Pin Complex (NID 0x1A) LINE1 PORTC */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) LINE2 PORTE */ /* Pin Complex (NID 0x1B) LINE2 PORTE */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1d) PCBeep */ /* Pin Complex (NID 0x1d) PCBeep */
0x01d71c2d, // eapd low on ex-amp, laptop, custom enable // eapd low on ex-amp, laptop, custom enable
0x01d71d81, // mute spkr on hpout // mute spkr on hpout
0x01d71e15, // pcbeep en able, checksum // pcbeep en able, checksum
0x01d71f40, // no physical, internal // no physical, internal
AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d),
/* Pin Complex (NID 0x1E) SPDIF-OUT */ /* Pin Complex (NID 0x1E) SPDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) HPOUT PORT-I */ /* Pin Complex (NID 0x21) HPOUT PORT-I */
0x02171c1f, // group1, // group1,
0x02171d10, // black, jack detect // black, jack detect
0x02171e21, // HPOut, 1/8 stereo // HPOut, 1/8 stereo
0x02171f03, // connector, left panel // connector, left panel
AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
/* Undocumented settings from Realtek (needed for beep_gen) */ /* Undocumented settings from Realtek (needed for beep_gen) */
/* Widget node 0x20 */ /* Widget node 0x20 */

View File

@ -34,11 +34,11 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -24,72 +24,39 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000c, // Number of jacks 0x0000000c, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */
0x001720fe, AZALIA_SUBVENDOR(0x0, 0x17aa21fe),
0x00172121,
0x001722aa,
0x00172317,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12): 0x90a60930 DMIC */ /* Pin Complex (NID 0x12): 0x90a60930 DMIC */
0x01271c30, AZALIA_PIN_CFG(0x0, 0x12, 0x90a60930),
0x01271d09,
0x01271ea6,
0x01271f90,
/* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */ /* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */
0x01471c10, AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
0x01471d01,
0x01471e17,
0x01471f90,
/* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */ /* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */
0x01571c1f, AZALIA_PIN_CFG(0x0, 0x15, 0x0321101f),
0x01571d10,
0x01571e21,
0x01571f03,
/* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */ /* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */ /* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */
0x01871c20, AZALIA_PIN_CFG(0x0, 0x18, 0x03a11820),
0x01871d18,
0x01871ea1,
0x01871f03,
/* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */ /* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */
0x01971cf0, AZALIA_PIN_CFG(0x0, 0x19, 0x411111f0),
0x01971d11,
0x01971e11,
0x01971f41,
/* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */ /* Pin Complex (NID 0x1a): 0x411111f0 LINE1 (Port-C) */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */ /* Pin Complex (NID 0x1b): 0x411111f0 LINE2 (Port-E) */
0x01b71cf0, AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
0x01b71d11,
0x01b71e11,
0x01b71f41,
/* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */ /* Pin Complex (NID 0x1d): 0x4016862d PC-BEEP */
0x01d71c2d, AZALIA_PIN_CFG(0x0, 0x1d, 0x4016862d),
0x01d71d86,
0x01d71e16,
0x01d71f40,
/* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */ /* Pin Complex (NID 0x1e): 0x411111f0 S/PDIF-OUT */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Stout MIC detect setup */ /* Stout MIC detect setup */
0x02050018, 0x02050018,
@ -103,28 +70,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Not Connected */ /* Pin Complex (NID 0x06) Not Connected */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x58560020),
0x30671d00,
0x30671e56,
0x30671f58,
/* Pin Complex (NID 0x07) Not Connected */ /* Pin Complex (NID 0x07) Not Connected */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x58560030)
0x30771d00,
0x30771e56,
0x30771f58
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -32,7 +32,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include "onboard.h" #include "onboard.h"
#include "ec.h" #include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
@ -40,6 +39,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <ec/quanta/it8518/ec.h> #include <ec/quanta/it8518/ec.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -24,48 +24,27 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000007, // Number of jacks 0x00000007, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */
0x00172010, AZALIA_SUBVENDOR(0x0, 0x10134210),
0x00172142,
0x00172213,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */ /* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */
0x00571cf0, AZALIA_PIN_CFG(0x0, 0x05, 0x022120f0),
0x00571d20,
0x00571e21,
0x00571f02,
/* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */ /* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */
0x00671c10, AZALIA_PIN_CFG(0x0, 0x06, 0x90170010),
0x00671d00,
0x00671e17,
0x00671f90,
/* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */ /* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */
0x00771cf0, AZALIA_PIN_CFG(0x0, 0x07, 0x02a120f0),
0x00771d20,
0x00771ea1,
0x00771f02,
/* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */
0x00871c37, AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),
0x00871d00,
0x00871ea7,
0x00871f77,
/* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */
0x00971c3e, AZALIA_PIN_CFG(0x0, 0x09, 0x77a6003e),
0x00971d00,
0x00971ea6,
0x00971f77,
/* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */ /* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */
0x00a71cf0, AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0),
0x00a71d10,
0x00a71e45,
0x00a71f43,
/* coreboot specific header */ /* coreboot specific header */
0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI 0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI
@ -73,26 +52,14 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -33,9 +33,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -24,26 +24,14 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -31,9 +31,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/fsp_bd82x6x/pch.h> #include <southbridge/intel/fsp_bd82x6x/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)

View File

@ -24,48 +24,27 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000007, // Number of jacks 0x00000007, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */
0x00172010, AZALIA_SUBVENDOR(0x0, 0x10134210),
0x00172142,
0x00172213,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */ /* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */
0x00571cf0, AZALIA_PIN_CFG(0x0, 0x05, 0x022120f0),
0x00571d20,
0x00571e21,
0x00571f02,
/* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */ /* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */
0x00671c10, AZALIA_PIN_CFG(0x0, 0x06, 0x90170010),
0x00671d00,
0x00671e17,
0x00671f90,
/* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */ /* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */
0x00771cf0, AZALIA_PIN_CFG(0x0, 0x07, 0x02a120f0),
0x00771d20,
0x00771ea1,
0x00771f02,
/* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */
0x00871c37, AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),
0x00871d00,
0x00871ea7,
0x00871f77,
/* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */
0x00971c3e, AZALIA_PIN_CFG(0x0, 0x09, 0x77a6003e),
0x00971d00,
0x00971ea6,
0x00971f77,
/* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */ /* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */
0x00a71cf0, AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0),
0x00a71d10,
0x00a71e45,
0x00a71f43,
/* coreboot specific header */ /* coreboot specific header */
0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI 0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI
@ -73,26 +52,14 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -33,9 +33,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -24,48 +24,27 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000007, // Number of jacks 0x00000007, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */
0x00172010, AZALIA_SUBVENDOR(0x0, 0x10134210),
0x00172142,
0x00172213,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */ /* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */
0x00571cf0, AZALIA_PIN_CFG(0x0, 0x05, 0x022120f0),
0x00571d20,
0x00571e21,
0x00571f02,
/* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */ /* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */
0x00671c10, AZALIA_PIN_CFG(0x0, 0x06, 0x90170010),
0x00671d00,
0x00671e17,
0x00671f90,
/* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */ /* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */
0x00771cf0, AZALIA_PIN_CFG(0x0, 0x07, 0x02a120f0),
0x00771d20,
0x00771ea1,
0x00771f02,
/* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */
0x00871c37, AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),
0x00871d00,
0x00871ea7,
0x00871f77,
/* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */
0x00971c3e, AZALIA_PIN_CFG(0x0, 0x09, 0x77a6003e),
0x00971d00,
0x00971ea6,
0x00971f77,
/* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */ /* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */
0x00a71cf0, AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0),
0x00a71d10,
0x00a71e45,
0x00a71f43,
/* coreboot specific header */ /* coreboot specific header */
0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI 0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI
@ -73,26 +52,14 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -33,9 +33,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -25,10 +25,7 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000c, // Number of jacks 0x0000000c, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x11060000 */
0x00172000, AZALIA_SUBVENDOR(0x0, 0x11060000),
0x00172100,
0x00172206,
0x00172311,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
@ -105,26 +102,14 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x58560010),
0x30571d00,
0x30571e56,
0x30571f58,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };

View File

@ -37,83 +37,42 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01 - NodeInfo */ /* NID 0x01 - NodeInfo */
0x001720FA, AZALIA_SUBVENDOR(0x0, 0x17AA21FA),
0x00172121,
0x001722AA,
0x00172317,
/* NID 0x0A - External Microphone Connector /* NID 0x0A - External Microphone Connector
* Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq) * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
*/ */
0x00A71C20, AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),
0x00A71D10,
0x00A71EA1,
0x00A71F04,
/* NID 0x0B - Headphone Connector /* NID 0x0B - Headphone Connector
* Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq) * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
*/ */
0x00B71C1F, AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),
0x00B71D10,
0x00B71E21,
0x00B71F04,
/* NID 0x0C - Not connected /* NID 0x0C - Not connected
* Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq) * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
*/ */
0x00C71CF0, AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),
0x00C71D00,
0x00C71EF0,
0x00C71F40,
/* NID 0x0D - Internal Speakers /* NID 0x0D - Internal Speakers
* Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq) * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
*/ */
0x00D71C10, AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
0x00D71D01,
0x00D71E17,
0x00D71F90,
/* NID 0x0F - Not connected /* NID 0x0F - Not connected
* Config=0x40F000F0 * Config=0x40F000F0
*/ */
0x00F71CF0, AZALIA_PIN_CFG(0x0, 0x0F, 0x40F000F0),
0x00F71D00,
0x00F71EF0,
0x00F71F40,
/* NID 0x11 - Internal Microphone /* NID 0x11 - Internal Microphone
* Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq) * Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq)
*/ */
0x01171C40, AZALIA_PIN_CFG(0x0, 0x11, 0xD5A30140),
0x01171D01, AZALIA_PIN_CFG(0x0, 0x12, 0x90A60140),
0x01171EA3, AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
0x01171FD5, AZALIA_PIN_CFG(0x0, 0x15, 0x03211020),
AZALIA_PIN_CFG(0x0, 0x18, 0x03A11830),
0x01271C40, AZALIA_PIN_CFG(0x0, 0x19, 0x411111F0),
0x01271D01,
0x01271EA6,
0x01271F90,
0x01471C10,
0x01471D01,
0x01471E17,
0x01471F90,
0x01571C20,
0x01571D10,
0x01571E21,
0x01571F03,
0x01871C30,
0x01871D18,
0x01871EA1,
0x01871F03,
0x01971CF0,
0x01971D11,
0x01971E11,
0x01971F41,
0x01970804, 0x01970804,
0x01870803, 0x01870803,
@ -125,20 +84,9 @@ static const u32 mainboard_cim_verb_data[] = {
0x00270600, 0x00270600,
0x00270600, 0x00270600,
0x01A71CF0, AZALIA_PIN_CFG(0x0, 0x1A, 0x411111F0),
0x01A71D11, AZALIA_PIN_CFG(0x0, 0x1D, 0x40138205),
0x01A71E11, AZALIA_PIN_CFG(0x0, 0x1E, 0x411111F0),
0x01A71F41,
0x01D71C05,
0x01D71D82,
0x01D71E13,
0x01D71F40,
0x01E71CF0,
0x01E71D11,
0x01E71E11,
0x01E71F41,
/* /*
* Hardware EQ Parameters * Hardware EQ Parameters
@ -283,28 +231,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of IDs 0x00000004, // Number of IDs
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,7 +33,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
@ -41,6 +40,7 @@
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -37,83 +37,42 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01 - NodeInfo */ /* NID 0x01 - NodeInfo */
0x001720FA, AZALIA_SUBVENDOR(0x0, 0x17AA21FA),
0x00172121,
0x001722AA,
0x00172317,
/* NID 0x0A - External Microphone Connector /* NID 0x0A - External Microphone Connector
* Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq) * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
*/ */
0x00A71C20, AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),
0x00A71D10,
0x00A71EA1,
0x00A71F04,
/* NID 0x0B - Headphone Connector /* NID 0x0B - Headphone Connector
* Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq) * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
*/ */
0x00B71C1F, AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),
0x00B71D10,
0x00B71E21,
0x00B71F04,
/* NID 0x0C - Not connected /* NID 0x0C - Not connected
* Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq) * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
*/ */
0x00C71CF0, AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),
0x00C71D00,
0x00C71EF0,
0x00C71F40,
/* NID 0x0D - Internal Speakers /* NID 0x0D - Internal Speakers
* Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq) * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
*/ */
0x00D71C10, AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
0x00D71D01,
0x00D71E17,
0x00D71F90,
/* NID 0x0F - Not connected /* NID 0x0F - Not connected
* Config=0x40F000F0 * Config=0x40F000F0
*/ */
0x00F71CF0, AZALIA_PIN_CFG(0x0, 0x0F, 0x40F000F0),
0x00F71D00,
0x00F71EF0,
0x00F71F40,
/* NID 0x11 - Internal Microphone /* NID 0x11 - Internal Microphone
* Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq) * Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq)
*/ */
0x01171C40, AZALIA_PIN_CFG(0x0, 0x11, 0xD5A30140),
0x01171D01, AZALIA_PIN_CFG(0x0, 0x12, 0x90A60140),
0x01171EA3, AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
0x01171FD5, AZALIA_PIN_CFG(0x0, 0x15, 0x03211020),
AZALIA_PIN_CFG(0x0, 0x18, 0x03A11830),
0x01271C40, AZALIA_PIN_CFG(0x0, 0x19, 0x411111F0),
0x01271D01,
0x01271EA6,
0x01271F90,
0x01471C10,
0x01471D01,
0x01471E17,
0x01471F90,
0x01571C20,
0x01571D10,
0x01571E21,
0x01571F03,
0x01871C30,
0x01871D18,
0x01871EA1,
0x01871F03,
0x01971CF0,
0x01971D11,
0x01971E11,
0x01971F41,
0x01970804, 0x01970804,
0x01870803, 0x01870803,
@ -125,20 +84,9 @@ static const u32 mainboard_cim_verb_data[] = {
0x00270600, 0x00270600,
0x00270600, 0x00270600,
0x01A71CF0, AZALIA_PIN_CFG(0x0, 0x1A, 0x411111F0),
0x01A71D11, AZALIA_PIN_CFG(0x0, 0x1D, 0x40138205),
0x01A71E11, AZALIA_PIN_CFG(0x0, 0x1E, 0x411111F0),
0x01A71F41,
0x01D71C05,
0x01D71D82,
0x01D71E13,
0x01D71F40,
0x01E71CF0,
0x01E71D11,
0x01E71E11,
0x01E71F41,
/* /*
* Hardware EQ Parameters * Hardware EQ Parameters
@ -283,28 +231,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of IDs 0x00000004, // Number of IDs
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,7 +33,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
@ -41,6 +40,7 @@
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -25,96 +25,51 @@ static const u32 mainboard_cim_verb_data[] = {
0x0000000B, /* Number of 4 dword sets */ 0x0000000B, /* Number of 4 dword sets */
/* NID 0x01: Subsystem ID. */ /* NID 0x01: Subsystem ID. */
0x00172055, AZALIA_SUBVENDOR(0x0, 0x17AA2155),
0x00172121,
0x001722AA,
0x00172317,
/* NID 0x19: Headphone jack. */ /* NID 0x19: Headphone jack. */
0x01971CF0, AZALIA_PIN_CFG(0x0, 0x19, 0x042140F0),
0x01971D40,
0x01971E21,
0x01971F04,
/* NID 0x1A: Dock mic jack. */ /* NID 0x1A: Dock mic jack. */
0x01A71CF0, AZALIA_PIN_CFG(0x0, 0x1A, 0x61A190F0),
0x01A71D90,
0x01A71EA1,
0x01A71F61,
/* NID 0x1B: Mic jack. */ /* NID 0x1B: Mic jack. */
0x01B71CF0, AZALIA_PIN_CFG(0x0, 0x1B, 0x04A190F0),
0x01B71D90,
0x01B71EA1,
0x01B71F04,
/* NID 0x1C: Dock headphone jack. */ /* NID 0x1C: Dock headphone jack. */
0x01C71CF0, AZALIA_PIN_CFG(0x0, 0x1C, 0x612140F0),
0x01C71D40,
0x01C71E21,
0x01C71F61,
/* NID 0x1D: EAPD detect. */ /* NID 0x1D: EAPD detect. */
0x01D71CF0, AZALIA_PIN_CFG(0x0, 0x1D, 0x601700F0),
0x01D71D00,
0x01D71E17,
0x01D71F60,
/* NID 0x1E */ /* NID 0x1E */
0x01E71CF0, AZALIA_PIN_CFG(0x0, 0x1E, 0x40F001F0),
0x01E71D01,
0x01E71EF0,
0x01E71F40,
/* NID 0x1F */ /* NID 0x1F */
0x01F71CF0, AZALIA_PIN_CFG(0x0, 0x1F, 0x901701F0),
0x01F71D01,
0x01F71E17,
0x01F71F90,
/* NID 0x20 */ /* NID 0x20 */
0x02071CF0, AZALIA_PIN_CFG(0x0, 0x20, 0x40F001F0),
0x02071D01,
0x02071EF0,
0x02071F40,
/* NID 0x22 */ /* NID 0x22 */
0x02271CF0, AZALIA_PIN_CFG(0x0, 0x22, 0x40F001F0),
0x02271D01,
0x02271EF0,
0x02271F40,
/* NID 0x23: Internal mic boost volume. */ /* NID 0x23: Internal mic boost volume. */
0x02371CF0, AZALIA_PIN_CFG(0x0, 0x23, 0x90A601F0),
0x02371D01,
0x02371EA6,
0x02371F90,
0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */ 0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */
0x17aa21b5, /* Subsystem ID */ 0x17aa21b5, /* Subsystem ID */
0x00000004, /* Number of 4 dword sets */ 0x00000004, /* Number of 4 dword sets */
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */
0x301720B5, AZALIA_SUBVENDOR(0x3, 0x17AA21B5),
0x30172121,
0x301722AA,
0x30172317,
/* NID 0x04. */ /* NID 0x04. */
0x30471C10, AZALIA_PIN_CFG(0x3, 0x04, 0x58560010),
0x30471D00,
0x30471E56,
0x30471F58,
/* NID 0x05. */ /* NID 0x05. */
0x30571C20, AZALIA_PIN_CFG(0x3, 0x05, 0x18560020),
0x30571D00,
0x30571E56,
0x30571F18,
/* NID 0x06. */ /* NID 0x06. */
0x30671C30, AZALIA_PIN_CFG(0x3, 0x06, 0x58560030),
0x30671D00,
0x30671E56,
0x30671F58,
}; };

View File

@ -37,60 +37,18 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01 - NodeInfo */ /* NID 0x01 - NodeInfo */
0x001720DB, AZALIA_SUBVENDOR(0x0, 0x17AA21DB),
0x00172121,
0x001722AA,
0x00172317,
0x01971C40, AZALIA_PIN_CFG(0x0, 0x19, 0x04211040),
0x01971D10, AZALIA_PIN_CFG(0x0, 0x1A, 0x61A19050),
0x01971E21, AZALIA_PIN_CFG(0x0, 0x1B, 0x04A11060),
0x01971F04, AZALIA_PIN_CFG(0x0, 0x1C, 0x6121401F),
AZALIA_PIN_CFG(0x0, 0x1D, 0x40F001F0),
0x01A71C50, AZALIA_PIN_CFG(0x0, 0x1E, 0x40F001F0),
0x01A71D90, AZALIA_PIN_CFG(0x0, 0x1F, 0x90170110),
0x01A71EA1, AZALIA_PIN_CFG(0x0, 0x20, 0x40F001F0),
0x01A71F61, AZALIA_PIN_CFG(0x0, 0x22, 0x40F001F0),
AZALIA_PIN_CFG(0x0, 0x23, 0x90A60170),
0x01B71C60,
0x01B71D10,
0x01B71EA1,
0x01B71F04,
0x01C71C1F,
0x01C71D40,
0x01C71E21,
0x01C71F61,
0x01D71CF0,
0x01D71D01,
0x01D71EF0,
0x01D71F40,
0x01E71CF0,
0x01E71D01,
0x01E71EF0,
0x01E71F40,
0x01F71C10,
0x01F71D01,
0x01F71E17,
0x01F71F90,
0x02071CF0,
0x02071D01,
0x02071EF0,
0x02071F40,
0x02271CF0,
0x02271D01,
0x02271EF0,
0x02271F40,
0x02371C70,
0x02371D01,
0x02371EA6,
0x02371F90,
/* /*
* Hardware EQ Parameters * Hardware EQ Parameters
@ -235,28 +193,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of IDs 0x00000004, // Number of IDs
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,7 +33,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
@ -42,6 +41,7 @@
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <build.h> #include <build.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -37,83 +37,42 @@ static const u32 mainboard_cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01 - NodeInfo */ /* NID 0x01 - NodeInfo */
0x001720FA, AZALIA_SUBVENDOR(0x0, 0x17AA21FA),
0x00172121,
0x001722AA,
0x00172317,
/* NID 0x0A - External Microphone Connector /* NID 0x0A - External Microphone Connector
* Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq) * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
*/ */
0x00A71C20, AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),
0x00A71D10,
0x00A71EA1,
0x00A71F04,
/* NID 0x0B - Headphone Connector /* NID 0x0B - Headphone Connector
* Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq) * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
*/ */
0x00B71C1F, AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),
0x00B71D10,
0x00B71E21,
0x00B71F04,
/* NID 0x0C - Not connected /* NID 0x0C - Not connected
* Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq) * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
*/ */
0x00C71CF0, AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),
0x00C71D00,
0x00C71EF0,
0x00C71F40,
/* NID 0x0D - Internal Speakers /* NID 0x0D - Internal Speakers
* Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq) * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
*/ */
0x00D71C10, AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
0x00D71D01,
0x00D71E17,
0x00D71F90,
/* NID 0x0F - Not connected /* NID 0x0F - Not connected
* Config=0x40F000F0 * Config=0x40F000F0
*/ */
0x00F71CF0, AZALIA_PIN_CFG(0x0, 0x0F, 0x40F000F0),
0x00F71D00,
0x00F71EF0,
0x00F71F40,
/* NID 0x11 - Internal Microphone /* NID 0x11 - Internal Microphone
* Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq) * Config=0xD5A30140 (Fixed internal,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq)
*/ */
0x01171C40, AZALIA_PIN_CFG(0x0, 0x11, 0xD5A30140),
0x01171D01, AZALIA_PIN_CFG(0x0, 0x12, 0x90A60140),
0x01171EA3, AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
0x01171FD5, AZALIA_PIN_CFG(0x0, 0x15, 0x03211020),
AZALIA_PIN_CFG(0x0, 0x18, 0x03A11830),
0x01271C40, AZALIA_PIN_CFG(0x0, 0x19, 0x411111F0),
0x01271D01,
0x01271EA6,
0x01271F90,
0x01471C10,
0x01471D01,
0x01471E17,
0x01471F90,
0x01571C20,
0x01571D10,
0x01571E21,
0x01571F03,
0x01871C30,
0x01871D18,
0x01871EA1,
0x01871F03,
0x01971CF0,
0x01971D11,
0x01971E11,
0x01971F41,
0x01970804, 0x01970804,
0x01870803, 0x01870803,
@ -125,20 +84,9 @@ static const u32 mainboard_cim_verb_data[] = {
0x00270600, 0x00270600,
0x00270600, 0x00270600,
0x01A71CF0, AZALIA_PIN_CFG(0x0, 0x1A, 0x411111F0),
0x01A71D11, AZALIA_PIN_CFG(0x0, 0x1D, 0x40138205),
0x01A71E11, AZALIA_PIN_CFG(0x0, 0x1E, 0x411111F0),
0x01A71F41,
0x01D71C05,
0x01D71D82,
0x01D71E13,
0x01D71F40,
0x01E71CF0,
0x01E71D11,
0x01E71E11,
0x01E71F41,
/* /*
* Hardware EQ Parameters * Hardware EQ Parameters
@ -283,28 +231,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of IDs 0x00000004, // Number of IDs
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,7 +33,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
@ -42,6 +41,7 @@
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <build.h> #include <build.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -26,80 +26,41 @@ static u32 mainboard_cim_verb_data[] = {
0x0000000d, // Number of jacks 0x0000000d, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x0000e601 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x0000e601 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x0000e601),
0x001721e6,
0x00172200,
0x00172300,
/* NID 0x14, FRONT-OUT-L/R */ /* NID 0x14, FRONT-OUT-L/R */
0x01471c10, AZALIA_PIN_CFG(0x0, 0x14, 0x01014410),
0x01471d44,
0x01471e01,
0x01471f01,
/* NID 0x15, SURR-OUT-L/R */ /* NID 0x15, SURR-OUT-L/R */
0x01571c12, AZALIA_PIN_CFG(0x0, 0x15, 0x01011412),
0x01571d14,
0x01571e01,
0x01571f01,
/* NID 0x16, CEN/LFE-OUT */ /* NID 0x16, CEN/LFE-OUT */
0x01671c11, AZALIA_PIN_CFG(0x0, 0x16, 0x01016011),
0x01671d60,
0x01671e01,
0x01671f01,
/* NID 0x17, SIDE-SURR-L/R */ /* NID 0x17, SIDE-SURR-L/R */
0x01771c14, AZALIA_PIN_CFG(0x0, 0x17, 0x01012014),
0x01771d20,
0x01771e01,
0x01771f01,
/* NID 0x18, MIC1-L/R, VREFO */ /* NID 0x18, MIC1-L/R, VREFO */
0x01871c30, AZALIA_PIN_CFG(0x0, 0x18, 0x01a19c30),
0x01871d9c,
0x01871ea1,
0x01871f01,
/* NID 0x19, MIC2-L/R, VREFO */ /* NID 0x19, MIC2-L/R, VREFO */
0x01971c40, AZALIA_PIN_CFG(0x0, 0x19, 0x02a19c40),
0x01971d9c,
0x01971ea1,
0x01971f02,
/* NID 0x1a, LINE1-L/R, VREFO */ /* NID 0x1a, LINE1-L/R, VREFO */
0x01a71c31, AZALIA_PIN_CFG(0x0, 0x1a, 0x01813431),
0x01a71d34,
0x01a71e81,
0x01a71f01,
/* NID 0x1b, LINE2-L/R, VREFO */ /* NID 0x1b, LINE2-L/R, VREFO */
0x01b71c1f, AZALIA_PIN_CFG(0x0, 0x1b, 0x0221441f),
0x01b71d44,
0x01b71e21,
0x01b71f02,
/* NID 0x1c, CD-L/R / GND */ /* NID 0x1c, CD-L/R / GND */
0x01c71cf0, AZALIA_PIN_CFG(0x0, 0x1c, 0x411111f0),
0x01c71d11,
0x01c71e11,
0x01c71f41,
/* NID 0x1d, PCBEEP */ /* NID 0x1d, PCBEEP */
0x01d71c3e, AZALIA_PIN_CFG(0x0, 0x1d, 0x9983013e),
0x01d71d01,
0x01d71e83,
0x01d71f99,
/* NID 0x1e, S/PDIF-OUT */ /* NID 0x1e, S/PDIF-OUT */
0x01e71c20, AZALIA_PIN_CFG(0x0, 0x1e, 0x01454120),
0x01e71d41,
0x01e71e45,
0x01e71f01,
/* NID 0x1f, S/PDIF-IN */ /* NID 0x1f, S/PDIF-IN */
0x01f71c50, AZALIA_PIN_CFG(0x0, 0x1f, 0x01c59150),
0x01f71d91,
0x01f71ec5,
0x01f71f01,
}; };

View File

@ -25,66 +25,36 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000006, /* Number of 4 dword sets */ 0x00000006, /* Number of 4 dword sets */
/* NID 0x01: Subsystem ID. */ /* NID 0x01: Subsystem ID. */
0x00172079, AZALIA_SUBVENDOR(0x0, 0x10250379),
0x00172103,
0x00172225,
0x00172310,
/* NID 0x14. */ /* NID 0x14. */
0x01471C10, AZALIA_PIN_CFG(0x0, 0x14, 0x99130110),
0x01471D01,
0x01471E13,
0x01471F99,
/* NID 0x18. */ /* NID 0x18. */
0x01871C30, AZALIA_PIN_CFG(0x0, 0x18, 0x03A11830),
0x01871D18,
0x01871EA1,
0x01871F03,
/* NID 0x19. */ /* NID 0x19. */
0x01971C20, AZALIA_PIN_CFG(0x0, 0x19, 0x99A30920),
0x01971D09,
0x01971EA3,
0x01971F99,
/* NID 0x1D. */ /* NID 0x1D. */
0x01D71C2D, AZALIA_PIN_CFG(0x0, 0x1D, 0x4017992D),
0x01D71D99,
0x01D71E17,
0x01D71F40,
/* NID 0x21. */ /* NID 0x21. */
0x02171C1F, AZALIA_PIN_CFG(0x0, 0x21, 0x0321101F),
0x02171D10,
0x02171E21,
0x02171F03,
0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */ 0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */
0x80860101, /* Subsystem ID */ 0x80860101, /* Subsystem ID */
0x00000004, /* Number of 4 dword sets */ 0x00000004, /* Number of 4 dword sets */
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */
0x30172001, AZALIA_SUBVENDOR(0x3, 0x80860101),
0x30172101,
0x30172286,
0x30172380,
/* NID 0x04. */ /* NID 0x04. */
0x30471C10, AZALIA_PIN_CFG(0x3, 0x04, 0x18560010),
0x30471D00,
0x30471E56,
0x30471F18,
/* NID 0x05. */ /* NID 0x05. */
0x30571C20, AZALIA_PIN_CFG(0x3, 0x05, 0x58560020),
0x30571D00,
0x30571E56,
0x30571F58,
/* NID 0x06. */ /* NID 0x06. */
0x30671C30, AZALIA_PIN_CFG(0x3, 0x06, 0x58560030),
0x30671D00,
0x30671E56,
0x30671F58,
}; };

View File

@ -34,7 +34,6 @@
#include <ec/acpi/ec.h> #include <ec/acpi/ec.h>
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include "hda_verb.h"
#include <arch/x86/include/arch/acpigen.h> #include <arch/x86/include/arch/acpigen.h>
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE #if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
#include <x86emu/regs.h> #include <x86emu/regs.h>
@ -45,6 +44,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <smbios.h> #include <smbios.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
static acpi_cstate_t cst_entries[] = { static acpi_cstate_t cst_entries[] = {
{1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}}, {1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}},

View File

@ -24,50 +24,29 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000007, // Number of jacks 0x00000007, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x144dc0c2 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x144dc0c2 */
0x00172082, AZALIA_SUBVENDOR(0x0, 0x144db082),
0x001721b0,
0x0017224d,
0x00172314,
0x00170500, 0x00170500,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x05) */ /* Pin Complex (NID 0x05) */
0x00571cf0, AZALIA_PIN_CFG(0x0, 0x05, 0x022110f0),
0x00571d10,
0x00571e21,
0x00571f02,
/* Pin Complex (NID 0x06) */ /* Pin Complex (NID 0x06) */
0x00671cf0, AZALIA_PIN_CFG(0x0, 0x06, 0x901700f0),
0x00671d00,
0x00671e17,
0x00671f90,
/* Pin Complex (NID 0x07) */ /* Pin Complex (NID 0x07) */
0x00771cf0, AZALIA_PIN_CFG(0x0, 0x07, 0x02a110f0),
0x00771d10,
0x00771ea1,
0x00771f02,
/* Pin Complex (NID 0x08) */ /* Pin Complex (NID 0x08) */
0x00871c37, AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),
0x00871d00,
0x00871ea7,
0x00871f77,
/* Pin Complex (NID 0x09) */ /* Pin Complex (NID 0x09) */
0x00971c3e, AZALIA_PIN_CFG(0x0, 0x09, 0xb7a6003e),
0x00971d00,
0x00971ea6,
0x00971fb7,
/* Pin Complex (NID 0x0a) */ /* Pin Complex (NID 0x0a) */
0x00a71cf0, AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0)
0x00a71d10,
0x00a71e45,
0x00a71f43
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,12 +33,12 @@
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <ec/smsc/mec1308/ec.h> #include <ec/smsc/mec1308/ec.h>
#include "hda_verb.h"
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {

View File

@ -24,48 +24,27 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000007, // Number of jacks 0x00000007, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */
0x00172010, AZALIA_SUBVENDOR(0x0, 0x10134210),
0x00172142,
0x00172213,
0x00172310,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */ /* Pin Complex (NID 0x05) 1/8 Gray HP Out at Ext Front */
0x00571cf0, AZALIA_PIN_CFG(0x0, 0x05, 0x022120f0),
0x00571d20,
0x00571e21,
0x00571f02,
/* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */ /* Pin Complex (NID 0x06) Analog Unknown Speaker at Int N/A */
0x00671c10, AZALIA_PIN_CFG(0x0, 0x06, 0x90170010),
0x00671d00,
0x00671e17,
0x00671f90,
/* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */ /* Pin Complex (NID 0x07) 1/8 Grey Line In at Ext Front */
0x00771cf0, AZALIA_PIN_CFG(0x0, 0x07, 0x02a120f0),
0x00771d20,
0x00771ea1,
0x00771f02,
/* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x08) Analog Unknown Mic at Oth Mobile-In */
0x00871c37, AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),
0x00871d00,
0x00871ea7,
0x00871f77,
/* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */ /* Pin Complex (NID 0x09) Digital Unknown Mic at Oth Mobile-In */
0x00971c3e, AZALIA_PIN_CFG(0x0, 0x09, 0x77a6003e),
0x00971d00,
0x00971ea6,
0x00971f77,
/* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */ /* Pin Complex (NID 0x0a) Optical Black SPDIF Out at Ext N/A */
0x00a71cf0, AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0),
0x00a71d10,
0x00a71e45,
0x00a71f43,
/* coreboot specific header */ /* coreboot specific header */
0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI 0x80862805, // Codec Vendor / Device ID: Intel CougarPoint HDMI
@ -73,28 +52,16 @@ static const u32 mainboard_cim_verb_data[] = {
0x00000004, // Number of jacks 0x00000004, // Number of jacks
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
0x00172001, AZALIA_SUBVENDOR(0x0, 0x80860101),
0x00172101,
0x00172286,
0x00172380,
/* Pin Complex (NID 0x05) Digital Out at Int HDMI */ /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
0x30571c10, AZALIA_PIN_CFG(0x3, 0x05, 0x18560010),
0x30571d00,
0x30571e56,
0x30571f18,
/* Pin Complex (NID 0x06) Digital Out at Int HDMI */ /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
0x30671c20, AZALIA_PIN_CFG(0x3, 0x06, 0x18560020),
0x30671d00,
0x30671e56,
0x30671f18,
/* Pin Complex (NID 0x07) Digital Out at Int HDMI */ /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
0x30771c30, AZALIA_PIN_CFG(0x3, 0x07, 0x18560030)
0x30771d00,
0x30771e56,
0x30771f18
}; };
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {

View File

@ -33,9 +33,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h> #include <device/azalia_device.h>
#include "hda_verb.h"
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {