purism/librem13v2: Fix HDA verb values, use azalia macros

Use verb table values from AMI firmware, consolidate NID
definitions using azalia macros. Fixes headphone jack detection
and microphone.

Change-Id: Ia31be6efc7afe921ad91b400f66694d951f0a260
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/19944
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Matt DeVillier 2017-05-19 16:47:08 -05:00 committed by Martin Roth
parent eacac20bd5
commit 1e1bbb17a0
1 changed files with 13 additions and 46 deletions

View File

@ -35,72 +35,39 @@ const u32 cim_verb_data[] = {
/* Bits 7:0 - Payload */ /* Bits 7:0 - Payload */
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x19910269 */ /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x19910269 */
0x00172069, AZALIA_SUBVENDOR(0x0, 0x19910269),
0x00172102,
0x00172291,
0x00172319,
/* Pin Widget Verb Table */ /* Pin Widget Verb Table */
/* Pin Complex (NID 0x12) */ /* Pin Complex (NID 0x12) */
0x01271c00, AZALIA_PIN_CFG(0x0, 0x12, 0x40000000),
0x01271d00,
0x01271e00,
0x01271f40,
/* Pin Complex (NID 0x14) */ /* Pin Complex (NID 0x14) */
0x01471c10, AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),
0x01471d01,
0x01471e17, /* Pin Complex (NID 0x15) */
0x01471f90, AZALIA_PIN_CFG(0x0, 0x15, 0x04214020),
/* Pin Complex (NID 0x17) */ /* Pin Complex (NID 0x17) */
0x01771cf0, AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
0x01771d11,
0x01771e11,
0x01771f41,
/* Pin Complex (NID 0x18) */ /* Pin Complex (NID 0x18) */
0x01871c20, AZALIA_PIN_CFG(0x0, 0x18, 0x04a19040),
0x01871d10,
0x01871ea1,
0x01871f04,
/* Pin Complex (NID 0x19) */ /* Pin Complex (NID 0x19) */
0x01971c30, AZALIA_PIN_CFG(0x0, 0x19, 0x90a70130),
0x01971d01,
0x01971ea7,
0x01971f90,
/* Pin Complex (NID 0x1A) */ /* Pin Complex (NID 0x1A) */
0x01a71cf0, AZALIA_PIN_CFG(0x0, 0x1A, 0x411111f0),
0x01a71d11,
0x01a71e11,
0x01a71f41,
/* Pin Complex (NID 0x1B) */ /* Pin Complex (NID 0x1B) */
0x01b71cf0, AZALIA_PIN_CFG(0x0, 0x1B, 0x411111f0),
0x01b71d11,
0x01b71e11,
0x01b71f41,
/* Pin Complex (NID 0x1D) */ /* Pin Complex (NID 0x1D) */
0x01d71c05, AZALIA_PIN_CFG(0x0, 0x1D, 0x40548505),
0x01d71d9d,
0x01d71e56,
0x01d71f40,
/* Pin Complex (NID 0x1E) */ /* Pin Complex (NID 0x1E) */
0x01e71cf0, AZALIA_PIN_CFG(0x0, 0x1E, 0x411111f0),
0x01e71d11,
0x01e71e11,
0x01e71f41,
/* Pin Complex (NID 0x21) */
0x02171c1f,
0x02171d10,
0x02171e21,
0x02171f04,
}; };
const u32 pc_beep_verbs[] = { const u32 pc_beep_verbs[] = {