diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2016-10-25 18:10:18 -0400 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-12-16 23:04:50 +0100 |
commit | ce128a7ef1c11cf6c21c137855b2b28d79bfae31 (patch) | |
tree | c10910e86cae633bd89d4e5e273bb73396ddfa24 /src/mainboard/amd/gardenia/OemCustomize.c | |
parent | 2e0817e9fac9d3e5d4f179236ef9f00823e8df29 (diff) | |
download | coreboot-ce128a7ef1c11cf6c21c137855b2b28d79bfae31.tar.xz |
amd/gardenia: Enable HD Audio
Add ALC286 commands and update the PLATFORM_CONFIGURATION structure
with the list address.
Original-Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Original-Reviewed-by: Marc Jones <marcj303@gmail.com>
(cherry picked from commit 2dd5cd2f01cd37c9eb7dff85e20e446c7d5ab2ee)
Change-Id: I037b39a8634bf886f82ed93488f1efbf6661c93f
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/17226
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/amd/gardenia/OemCustomize.c')
-rw-r--r-- | src/mainboard/amd/gardenia/OemCustomize.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mainboard/amd/gardenia/OemCustomize.c b/src/mainboard/amd/gardenia/OemCustomize.c index 64091ffd57..1619c9544e 100644 --- a/src/mainboard/amd/gardenia/OemCustomize.c +++ b/src/mainboard/amd/gardenia/OemCustomize.c @@ -97,6 +97,34 @@ static const PCIe_COMPLEX_DESCRIPTOR PcieComplex = { .DdiLinkList = DdiList }; +static const UINT32 AzaliaCodecAlc286Table[] = +{ + 0x00172051, 0x001721C7, 0x00172222, 0x00172310, + 0x0017FF00, 0x0017FF00, 0x0017FF00, 0x0017FF00, + 0x01271C50, 0x01271D01, 0x01271EA6, 0x01271FB7, + 0x01371C00, 0x01371D00, 0x01371E00, 0x01371F40, + 0x01471C10, 0x01471D01, 0x01471E17, 0x01471F90, + 0x01771CF0, 0x01771D11, 0x01771E11, 0x01771F41, + 0x01871C40, 0x01871D10, 0x01871EA1, 0x01871F04, + 0x01971CF0, 0x01971D11, 0x01971E11, 0x01971F41, + 0x01A71CF0, 0x01A71D11, 0x01A71E11, 0x01A71F41, + 0x01D71C2D, 0x01D71DA5, 0x01D71E67, 0x01D71F40, + 0x01E71C30, 0x01E71D11, 0x01E71E45, 0x01E71F04, + 0x02171C20, 0x02171D10, 0x02171E21, 0x02171F04, + 0x02050071, 0x02040014, 0x02050010, 0x02040C22, + 0x0205004F, 0x0204B029, 0x0205002B, 0x02040C50, + 0x0205002D, 0x02041020, 0x02050020, 0x02040000, + 0x02050019, 0x02040817, 0x02050035, 0x02041AA5, + 0x02050063, 0x02042906, 0x02050063, 0x02042906, + 0xffffffff +}; + +CONST CODEC_VERB_TABLE_LIST CodecTableList[] = +{ + { (UINT32) 0x10ec0286, AzaliaCodecAlc286Table}, + { (UINT32) 0x0FFFFFFFF, (UINT32 *)0x0FFFFFFFF} +}; + /*---------------------------------------------------------------------------------------*/ /** * OemCustomizeInitEarly @@ -118,4 +146,5 @@ VOID OemCustomizeInitEarly ( ) { InitEarly->GnbConfig.PcieComplexList = &PcieComplex; + InitEarly->PlatformConfig.AzaliaCodecVerbTable = (UINT64)(UINTN)CodecTableList; } |