From 0b158d43dfbbb72bbbed26ef87fddecfe072756d Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Fri, 11 Mar 2022 09:33:50 +0000 Subject: mb/starlabs/lite: Move Verb Table to variant directory Move the verb table to variant directory to allow for different tables for different variants. Signed-off-by: Sean Rhodes Change-Id: I4260188057d1c3b4e6ea7c82f085fad0cc244881 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62755 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/starlabs/lite/Makefile.inc | 1 - src/mainboard/starlabs/lite/hda_verb.c | 54 ---------------------- .../starlabs/lite/variants/glk/Makefile.inc | 1 + .../starlabs/lite/variants/glk/hda_verb.c | 54 ++++++++++++++++++++++ 4 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 src/mainboard/starlabs/lite/hda_verb.c create mode 100644 src/mainboard/starlabs/lite/variants/glk/hda_verb.c (limited to 'src/mainboard/starlabs/lite') diff --git a/src/mainboard/starlabs/lite/Makefile.inc b/src/mainboard/starlabs/lite/Makefile.inc index 019d560ee6..e7f8277787 100644 --- a/src/mainboard/starlabs/lite/Makefile.inc +++ b/src/mainboard/starlabs/lite/Makefile.inc @@ -6,7 +6,6 @@ subdirs-y += variants/$(VARIANT_DIR) bootblock-y += bootblock.c ramstage-y += devtree.c -ramstage-y += hda_verb.c ramstage-y += mainboard.c ramstage-y += smbios.c ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/starlabs/lite/hda_verb.c b/src/mainboard/starlabs/lite/hda_verb.c deleted file mode 100644 index 36ac8f091a..0000000000 --- a/src/mainboard/starlabs/lite/hda_verb.c +++ /dev/null @@ -1,54 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include - -const u32 cim_verb_data[] = { - /* coreboot specific header */ - 0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269 */ - 0x10ec111e, /* Subsystem ID */ - 15, /* Number of jacks (NID entries) */ - - /* Reset Codec First */ - AZALIA_RESET(0x1), - - /* HDA Codec Subsystem ID */ - AZALIA_SUBVENDOR(0, 0x10ec111e), - - /* Pin Widget Verb-table */ - AZALIA_PIN_CFG(0, 0x01, 0x00000000), - AZALIA_PIN_CFG(0, 0x12, 0x411111f0), - AZALIA_PIN_CFG(0, 0x14, 0x94171110), - AZALIA_PIN_CFG(0, 0x15, 0x042b1010), - AZALIA_PIN_CFG(0, 0x17, 0x411111f0), - AZALIA_PIN_CFG(0, 0x18, 0x04ab1020), - AZALIA_PIN_CFG(0, 0x19, 0x411111f0), - AZALIA_PIN_CFG(0, 0x1a, 0x93171110), - AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), - AZALIA_PIN_CFG(0, 0x1d, 0x411111f0), - AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), - - 0x00370600, - 0x00270600, - 0x00b707C0, - 0x00d70740, - - 0x0017a200, - 0x0017c621, - 0x0017a208, - 0x00170500, - - 0x8086280d, /* Codec Vendor / Device ID: Intel */ - 0x80860101, /* Subsystem ID */ - 4, /* Number of 4 dword sets */ - - AZALIA_SUBVENDOR(2, 0x80860101), - - AZALIA_PIN_CFG(2, 0x05, 0x18560010), - AZALIA_PIN_CFG(2, 0x06, 0x18560020), - AZALIA_PIN_CFG(2, 0x07, 0x18560030), -}; - -const u32 pc_beep_verbs[] = { -}; - -AZALIA_ARRAY_SIZES; diff --git a/src/mainboard/starlabs/lite/variants/glk/Makefile.inc b/src/mainboard/starlabs/lite/variants/glk/Makefile.inc index 05b0677380..ae3ec84c1d 100644 --- a/src/mainboard/starlabs/lite/variants/glk/Makefile.inc +++ b/src/mainboard/starlabs/lite/variants/glk/Makefile.inc @@ -3,5 +3,6 @@ bootblock-y += gpio.c ramstage-y += gpio.c +ramstage-y += hda_verb.c romstage-y += romstage.c diff --git a/src/mainboard/starlabs/lite/variants/glk/hda_verb.c b/src/mainboard/starlabs/lite/variants/glk/hda_verb.c new file mode 100644 index 0000000000..36ac8f091a --- /dev/null +++ b/src/mainboard/starlabs/lite/variants/glk/hda_verb.c @@ -0,0 +1,54 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +const u32 cim_verb_data[] = { + /* coreboot specific header */ + 0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269 */ + 0x10ec111e, /* Subsystem ID */ + 15, /* Number of jacks (NID entries) */ + + /* Reset Codec First */ + AZALIA_RESET(0x1), + + /* HDA Codec Subsystem ID */ + AZALIA_SUBVENDOR(0, 0x10ec111e), + + /* Pin Widget Verb-table */ + AZALIA_PIN_CFG(0, 0x01, 0x00000000), + AZALIA_PIN_CFG(0, 0x12, 0x411111f0), + AZALIA_PIN_CFG(0, 0x14, 0x94171110), + AZALIA_PIN_CFG(0, 0x15, 0x042b1010), + AZALIA_PIN_CFG(0, 0x17, 0x411111f0), + AZALIA_PIN_CFG(0, 0x18, 0x04ab1020), + AZALIA_PIN_CFG(0, 0x19, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1a, 0x93171110), + AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1d, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), + + 0x00370600, + 0x00270600, + 0x00b707C0, + 0x00d70740, + + 0x0017a200, + 0x0017c621, + 0x0017a208, + 0x00170500, + + 0x8086280d, /* Codec Vendor / Device ID: Intel */ + 0x80860101, /* Subsystem ID */ + 4, /* Number of 4 dword sets */ + + AZALIA_SUBVENDOR(2, 0x80860101), + + AZALIA_PIN_CFG(2, 0x05, 0x18560010), + AZALIA_PIN_CFG(2, 0x06, 0x18560020), + AZALIA_PIN_CFG(2, 0x07, 0x18560030), +}; + +const u32 pc_beep_verbs[] = { +}; + +AZALIA_ARRAY_SIZES; -- cgit v1.2.3