summaryrefslogtreecommitdiff
path: root/src/mainboard/dmp
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-09-04 22:04:11 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2014-09-05 00:12:11 +0200
commit02d674ac2f9b238ea83ba31e3e4f32d25f9fedf6 (patch)
tree7f9bf5a7b2080be10aa115621432652c2d1f485c /src/mainboard/dmp
parentf91ecce609ed8f90de5840e265cb3da3520ab591 (diff)
downloadcoreboot-02d674ac2f9b238ea83ba31e3e4f32d25f9fedf6.tar.xz
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>
Diffstat (limited to 'src/mainboard/dmp')
-rw-r--r--src/mainboard/dmp/vortex86ex/hda_verb.h70
1 files changed, 14 insertions, 56 deletions
diff --git a/src/mainboard/dmp/vortex86ex/hda_verb.h b/src/mainboard/dmp/vortex86ex/hda_verb.h
index 6b1620ba13..5402b621ef 100644
--- a/src/mainboard/dmp/vortex86ex/hda_verb.h
+++ b/src/mainboard/dmp/vortex86ex/hda_verb.h
@@ -25,10 +25,7 @@ static const u32 mainboard_cim_verb_data[] = {
/* ===== HDA Codec Subsystem ID Verb-table ===== */
/* HDA Codec Subsystem ID : 0x10EC0000 */
- 0x00172000,
- 0x00172100,
- 0x001722ec,
- 0x00172310,
+ AZALIA_SUBVENDOR(0x0, 0x10ec0000),
/* ===== Pin Widget Verb-table ===== */
/* Widget node 0x01 : */
@@ -37,68 +34,29 @@ static const u32 mainboard_cim_verb_data[] = {
0x0017ff00,
0x0017ff00,
/* Pin widget 0x11 - S/PDIF-OUT2 */
- 0x01171c00,
- 0x01171d00,
- 0x01171e00,
- 0x01171f40,
+ AZALIA_PIN_CFG(0x0, 0x11, 0x40000000),
/* Pin widget 0x12 - DMIC */
- 0x01271cf0,
- 0x01271d11,
- 0x01271e11,
- 0x01271f41,
+ AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
/* Pin widget 0x14 - LINE-OUT (Port-D) */
- 0x01471c10,
- 0x01471d41,
- 0x01471e01,
- 0x01471f01,
+ AZALIA_PIN_CFG(0x0, 0x14, 0x01014110),
/* Pin widget 0x15 - HP-OUT (Port-A) */
- 0x01571cf0,
- 0x01571d11,
- 0x01571e11,
- 0x01571f41,
+ AZALIA_PIN_CFG(0x0, 0x15, 0x411111f0),
/* Pin widget 0x16 - MONO-OUT */
- 0x01671cf0,
- 0x01671d11,
- 0x01671e11,
- 0x01671f41,
+ AZALIA_PIN_CFG(0x0, 0x16, 0x411111f0),
/* Pin widget 0x18 - MIC1 (Port-B) */
- 0x01871cf0,
- 0x01871d11,
- 0x01871e11,
- 0x01871f41,
+ AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
/* Pin widget 0x19 - MIC2 (Port-F) */
- 0x01971c30,
- 0x01971d91,
- 0x01971ea1,
- 0x01971f02,
+ AZALIA_PIN_CFG(0x0, 0x19, 0x02a19130),
/* Pin widget 0x1A - LINE1 (Port-C) */
- 0x01a71c40,
- 0x01a71d31,
- 0x01a71e81,
- 0x01a71f01,
+ AZALIA_PIN_CFG(0x0, 0x1a, 0x01813140),
/* Pin widget 0x1B - LINE2 (Port-E) */
- 0x01b71cf0,
- 0x01b71d11,
- 0x01b71e11,
- 0x01b71f41,
+ AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
/* Pin widget 0x1C - CD-IN */
- 0x01c71cf0,
- 0x01c71d11,
- 0x01c71e11,
- 0x01c71f41,
+ AZALIA_PIN_CFG(0x0, 0x1c, 0x411111f0),
/* Pin widget 0x1D - BEEP-IN */
- 0x01d71c29,
- 0x01d71d46,
- 0x01d71e35,
- 0x01d71f40,
+ AZALIA_PIN_CFG(0x0, 0x1d, 0x40354629),
/* Pin widget 0x1E - S/PDIF-OUT */
- 0x01e71c20,
- 0x01e71d11,
- 0x01e71e56,
- 0x01e71f18,
+ AZALIA_PIN_CFG(0x0, 0x1e, 0x18561120),
/* Pin widget 0x1F - S/PDIF-IN */
- 0x01f71cf0,
- 0x01f71d11,
- 0x01f71e11,
- 0x01f71f41,
+ AZALIA_PIN_CFG(0x0, 0x1f, 0x411111f0),
};