From 02d674ac2f9b238ea83ba31e3e4f32d25f9fedf6 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 4 Sep 2014 22:04:11 +0200 Subject: azalia: Use convenience macros throughout Change-Id: Ic044bf155bfcf93fa7cf3afd7287b7d0b615ef6d Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/6839 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/getac/p470/hda_verb.h | 65 ++++++++----------------------------- 1 file changed, 13 insertions(+), 52 deletions(-) (limited to 'src/mainboard/getac') diff --git a/src/mainboard/getac/p470/hda_verb.h b/src/mainboard/getac/p470/hda_verb.h index dfc4d79f2e..280d6f2604 100644 --- a/src/mainboard/getac/p470/hda_verb.h +++ b/src/mainboard/getac/p470/hda_verb.h @@ -24,82 +24,43 @@ static const u32 mainboard_cim_verb_data[] = { 0x0000000d, // Number of jacks /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0000 */ - 0x00172000, - 0x00172100, - 0x001722EC, - 0x00172310, + AZALIA_SUBVENDOR(0x0, 0x10EC0000), /* Pin Widget Verb Table */ /* Pin Complex (NID 0x12), DMIC */ - 0x01271CF0, - 0x01271D11, - 0x01271E11, - 0x01271F41, + AZALIA_PIN_CFG(0x0, 0x12, 0x411111F0), /* Pin Complex (NID 0x14), LINE_OUT (port D) */ - 0x01471C10, - 0x01471D01, - 0x01471E13, - 0x01471F99, + AZALIA_PIN_CFG(0x0, 0x14, 0x99130110), /* Pin Complex (NID 0x15), HP_OUT (port A) */ - 0x01571C20, - 0x01571D40, - 0x01571E21, - 0x01571F01, + AZALIA_PIN_CFG(0x0, 0x15, 0x01214020), /* Pin Complex (NID 0x16), MONO-OUT */ - 0x01671CF0, - 0x01671D11, - 0x01671E11, - 0x01671F41, + AZALIA_PIN_CFG(0x0, 0x16, 0x411111F0), /* Pin Complex (NID 0x18), MIC1 (port B) */ - 0x01871C30, - 0x01871D98, - 0x01871EA1, - 0x01871F01, + AZALIA_PIN_CFG(0x0, 0x18, 0x01A19830), /* Pin Complex (NID 0x19), MIC2 (port F) */ - 0x01971C31, - 0x01971D09, - 0x01971EA3, - 0x01971F99, + AZALIA_PIN_CFG(0x0, 0x19, 0x99A30931), /* Pin Complex (NID 0x1A), LINE1 (port C) */ - 0x01A71C3F, - 0x01A71D98, - 0x01A71EA1, - 0x01A71F02, + AZALIA_PIN_CFG(0x0, 0x1A, 0x02A1983F), /* Pin Complex (NID 0x1B), LINE2 (port E) */ - 0x01B71C1F, - 0x01B71D40, - 0x01B71E21, - 0x01B71F02, + AZALIA_PIN_CFG(0x0, 0x1B, 0x0221401F), /* Pin Complex (NID 0x1C), CD_IN */ - 0x01C71CF0, - 0x01C71D11, - 0x01C71E11, - 0x01C71F41, + AZALIA_PIN_CFG(0x0, 0x1C, 0x411111F0), /* Pin Complex (NID 0x1D), PCBEEP */ - 0x01D71CF0, - 0x01D71D11, - 0x01D71E11, - 0x01D71F41, + AZALIA_PIN_CFG(0x0, 0x1D, 0x411111F0), /* Pin Complex (NID 0x1E), S/PDIF-OUT */ - 0x01E71CF0, - 0x01E71D11, - 0x01E71E11, - 0x01E71F41, + AZALIA_PIN_CFG(0x0, 0x1E, 0x411111F0), /* Pin Complex (NID 0x1F), S/PDIF-IN */ - 0x01F71CF0, - 0x01F71D11, - 0x01F71E11, - 0x01F71F41, + AZALIA_PIN_CFG(0x0, 0x1F, 0x411111F0), }; -- cgit v1.2.3