From f74e42a542ab5a678b40a0e32d03f6a2449e45c9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 9 Apr 2021 10:51:31 -0600 Subject: mb/system76/kbl-u: Add Galago Pro 2 as a variant Change-Id: Ia277b3ad50c9f821ab3e1dcb8327314ba955fa79 Signed-off-by: Jeremy Soller Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/52219 Tested-by: build bot (Jenkins) --- .../system76/kbl-u/variants/galp2/data.vbt | Bin 0 -> 4608 bytes .../system76/kbl-u/variants/galp2/hda_verb.c | 33 +++++++++++++++++++++ .../system76/kbl-u/variants/galp2/overridetree.cb | 5 ++++ 3 files changed, 38 insertions(+) create mode 100644 src/mainboard/system76/kbl-u/variants/galp2/data.vbt create mode 100644 src/mainboard/system76/kbl-u/variants/galp2/hda_verb.c create mode 100644 src/mainboard/system76/kbl-u/variants/galp2/overridetree.cb (limited to 'src/mainboard/system76/kbl-u/variants') diff --git a/src/mainboard/system76/kbl-u/variants/galp2/data.vbt b/src/mainboard/system76/kbl-u/variants/galp2/data.vbt new file mode 100644 index 0000000000..b7d91b19ea Binary files /dev/null and b/src/mainboard/system76/kbl-u/variants/galp2/data.vbt differ diff --git a/src/mainboard/system76/kbl-u/variants/galp2/hda_verb.c b/src/mainboard/system76/kbl-u/variants/galp2/hda_verb.c new file mode 100644 index 0000000000..8e5012b473 --- /dev/null +++ b/src/mainboard/system76/kbl-u/variants/galp2/hda_verb.c @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +const u32 cim_verb_data[] = { + /* Realtek, ALC269VC */ + 0x10ec0269, /* Vendor ID */ + 0x15581303, /* Subsystem ID */ + 11, /* Number of entries */ + AZALIA_SUBVENDOR(0, 0x15581303), + AZALIA_PIN_CFG(0, 0x12, 0x90a60140), + AZALIA_PIN_CFG(0, 0x14, 0x90170120), + AZALIA_PIN_CFG(0, 0x15, 0x02211010), + AZALIA_PIN_CFG(0, 0x17, 0x40000000), + AZALIA_PIN_CFG(0, 0x18, 0x02a11030), + AZALIA_PIN_CFG(0, 0x19, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1a, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1d, 0x40f4a205), + AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), + /* Intel, KabylakeHDMI */ + 0x8086280b, /* Vendor ID */ + 0x80860101, /* Subsystem ID */ + 4, /* Number of entries */ + AZALIA_SUBVENDOR(2, 0x80860101), + AZALIA_PIN_CFG(2, 0x05, 0x18560010), + AZALIA_PIN_CFG(2, 0x06, 0x18560010), + AZALIA_PIN_CFG(2, 0x07, 0x18560010), +}; + +const u32 pc_beep_verbs[] = {}; + +AZALIA_ARRAY_SIZES; diff --git a/src/mainboard/system76/kbl-u/variants/galp2/overridetree.cb b/src/mainboard/system76/kbl-u/variants/galp2/overridetree.cb new file mode 100644 index 0000000000..9e042a335b --- /dev/null +++ b/src/mainboard/system76/kbl-u/variants/galp2/overridetree.cb @@ -0,0 +1,5 @@ +chip soc/intel/skylake + device domain 0 on + subsystemid 0x1558 0x1303 inherit + end +end -- cgit v1.2.3