diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-05-17 13:22:57 +0200 |
---|---|---|
committer | David Hendricks <david.hendricks@gmail.com> | 2021-05-20 17:10:01 +0000 |
commit | ed1e25de525fe2649bf5af2b448f7b37e34c54f6 (patch) | |
tree | aa3f9f493ba748831c93fafd676388087f3c3d57 /src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c | |
parent | 9d8a4558e30845ff9ae421c551b4fa51dcfeec93 (diff) | |
download | coreboot-ed1e25de525fe2649bf5af2b448f7b37e34c54f6.tar.xz |
mb/asus/p8h61-m_lx: Transform into variant setup
Handle some differences in the DSDT code using preprocessor.
Tested with BUILD_TIMELESS=1, coreboot.rom for the Asus P8H61-M LX
remains identical when not adding the .config file in it.
Change-Id: I2a02f32dfd9fa9c1adce3baf0d279ea19db5883f
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54375
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c')
-rw-r--r-- | src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c b/src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c new file mode 100644 index 0000000000..3b707c2cd4 --- /dev/null +++ b/src/mainboard/asus/h61-series/variants/p8h61-m_lx/hda_verb.c @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <stdint.h> +#include <device/azalia_device.h> + +const u32 cim_verb_data[] = { + 0x10ec0887, /* Realtek ALC887-VD */ + 0x10438445, /* Subsystem ID */ + 15, /* Number of entries */ + AZALIA_SUBVENDOR(0, 0x10438445), + AZALIA_PIN_CFG(0, 0x11, 0x99430130), + AZALIA_PIN_CFG(0, 0x12, 0x411111f0), + AZALIA_PIN_CFG(0, 0x14, 0x01014010), + AZALIA_PIN_CFG(0, 0x15, 0x411111f0), + AZALIA_PIN_CFG(0, 0x16, 0x411111f0), + AZALIA_PIN_CFG(0, 0x17, 0x411111f0), + AZALIA_PIN_CFG(0, 0x18, 0x01a19840), + AZALIA_PIN_CFG(0, 0x19, 0x02a19c50), + AZALIA_PIN_CFG(0, 0x1a, 0x0181304f), + AZALIA_PIN_CFG(0, 0x1b, 0x02214c20), + AZALIA_PIN_CFG(0, 0x1c, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1d, 0x4004c601), + AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1f, 0x411111f0), +}; + +const u32 pc_beep_verbs[] = {}; + +AZALIA_ARRAY_SIZES; |