From be43b13543b138f3b2ed7fe1c9f140c85fbe61fb Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 9 Apr 2021 10:51:31 -0600 Subject: [PATCH] mb/system76/kbl-u: Add Galago Pro 3 as a variant Change-Id: Ie203883cc9418585da4f9c7acd89e7624234caf1 Signed-off-by: Jeremy Soller Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/52218 Tested-by: build bot (Jenkins) --- src/mainboard/system76/kbl-u/Kconfig | 7 ++-- src/mainboard/system76/kbl-u/Kconfig.name | 3 ++ .../system76/kbl-u/variants/galp3/data.vbt | Bin 0 -> 4608 bytes .../system76/kbl-u/variants/galp3/hda_verb.c | 33 ++++++++++++++++++ .../kbl-u/variants/galp3/overridetree.cb | 5 +++ 5 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/mainboard/system76/kbl-u/variants/galp3/data.vbt create mode 100644 src/mainboard/system76/kbl-u/variants/galp3/hda_verb.c create mode 100644 src/mainboard/system76/kbl-u/variants/galp3/overridetree.cb diff --git a/src/mainboard/system76/kbl-u/Kconfig b/src/mainboard/system76/kbl-u/Kconfig index e4421d179a..aeb9880740 100644 --- a/src/mainboard/system76/kbl-u/Kconfig +++ b/src/mainboard/system76/kbl-u/Kconfig @@ -1,4 +1,4 @@ -if BOARD_SYSTEM76_GALP3_B +if BOARD_SYSTEM76_GALP3 || BOARD_SYSTEM76_GALP3_B config BOARD_SPECIFIC_OPTIONS def_bool y @@ -22,15 +22,18 @@ config MAINBOARD_DIR default "system76/kbl-u" config VARIANT_DIR + default "galp3" if BOARD_SYSTEM76_GALP3 default "galp3-b" if BOARD_SYSTEM76_GALP3_B config MAINBOARD_PART_NUMBER + default "galp3" if BOARD_SYSTEM76_GALP3 default "galp3-b" if BOARD_SYSTEM76_GALP3_B config MAINBOARD_SMBIOS_PRODUCT_NAME default "Galago Pro" config MAINBOARD_VERSION + default "galp3" if BOARD_SYSTEM76_GALP3 default "galp3-b" if BOARD_SYSTEM76_GALP3_B config CBFS_SIZE @@ -52,7 +55,7 @@ config DIMM_SPD_SIZE default 512 config VGA_BIOS_ID - default "8086,5917" if BOARD_SYSTEM76_GALP3_B + default "8086,5917" if BOARD_SYSTEM76_GALP3 || BOARD_SYSTEM76_GALP3_B config POST_DEVICE default n diff --git a/src/mainboard/system76/kbl-u/Kconfig.name b/src/mainboard/system76/kbl-u/Kconfig.name index 8af68d8805..97b0f5aa53 100644 --- a/src/mainboard/system76/kbl-u/Kconfig.name +++ b/src/mainboard/system76/kbl-u/Kconfig.name @@ -1,2 +1,5 @@ +config BOARD_SYSTEM76_GALP3 + bool "galp3" + config BOARD_SYSTEM76_GALP3_B bool "galp3-b" diff --git a/src/mainboard/system76/kbl-u/variants/galp3/data.vbt b/src/mainboard/system76/kbl-u/variants/galp3/data.vbt new file mode 100644 index 0000000000000000000000000000000000000000..5c0118036afeafbd205b51ea90dd61c84bdca86d GIT binary patch literal 4608 zcmeHKZ){Ul6hH61{=M(L_VtZGDL9Xa&<)sL2TYh#Ue^v**0FXSb3_w5Xwk*O#x~6G zA2m+1#Ay0K4H`5{{9^D6iSd&$^2JC(RALlA_(8syDA8yl#xFoU?@wEF!WyCohSQyU z?mh49_s+TZ+K6NGfGrQx_!RYR;WPhv|zl6mQ z4qQGDkmI0t#FlE+tXta>S9f$Vs$xn130cm87kqs^DHy}n@+vrb=Y^1K%5ozz(xLIcL?pS|c zDv^v1Ci-_^{{Y4lnP?`{-Pe`eg{gu5o%hUKHXsFfba3dPQwP8S zpjTh^Hys7|jT}!_t32QeUTHw^f;rX!t9o?6*(@lE=R9E>9fd>k#3Iz;3)AYN zZN;087!Nt5zD0_>B6hnN1c;Xr z-$UF=yqP#g+(-N%@d&Z&5L_(tMPmtwikvM2mITECFE>H)n5{o%>%G6wViPf2incVB zbu{I&+YOh?p9P^@_S|oHpc4Xx&Bbk`9$O|&DF`WhJV?@*t6_UwE_<^ysO$1+I`4y1Ubo^V|RO zNyx~6Wk2#~+zigRFL1LBH)qe7HD!UHHM7-JvkwPLd%L|o1C<$A-UDa7#S)&oL-Ax+ zSlY(x)7<$mW1h2>*PF6F6(abJ4SEd zk$ocKPoi2DnODMANsUUZSHgpm`kcgGlJGrA{a9k3OZc0lx@8uS@m^U?$Sfn{VOf1q zX0OWlfvkQiv#({mB&&WOTk69tJ~i!Q5BcO~)mh}vam9eoEOa~*5}iH6ykyD?oI=v+ zUro2%{6%R$LYKV}t%Slbzc9j_A0aZl9K*#$)*LmqAF-}IS}Quv7e>e}1w9I@wBT&J zg%E5%B3Shqxd{#fp_6K+t4EicGONEj z5#DK?K9>%y(ua@MeBeqh(+Aykq7EN=w&>cP6K%SFvWDQYDj;ddSn#+b7bq(#cpw)Dg%<5Dsy6cG|+*zC(KXEr9G}qRmWY#It zoO7m*e0Za2?o4`Sg_e4KNfki=vow};S3L+?vwkW&lhcA}s~!Z3LZEacy55{L5o8O& ziFHJAJ_K_qT%t)@tQJLy_9OXFbZ;{A!ASC}XEonZ3?AIHP9I)ZTMGgFmJjqrv+%xX z(ji-fhOD9lYCg~*YWR@cn%bQjIgl^x7}=ly9}KJjuhp)37F^p;QH_55A8vEtuV9w{ zM5!|W7h1a*Uf4=bCa7}XNtag+)^e}G_X4zN9L!ef*63Q3UHS01;d1@FPwQ)~{!Q`h E5Ar<79{>OV literal 0 HcmV?d00001 diff --git a/src/mainboard/system76/kbl-u/variants/galp3/hda_verb.c b/src/mainboard/system76/kbl-u/variants/galp3/hda_verb.c new file mode 100644 index 0000000000..83cd41de02 --- /dev/null +++ b/src/mainboard/system76/kbl-u/variants/galp3/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 */ + 0x15581313, /* Subsystem ID */ + 11, /* Number of entries */ + AZALIA_SUBVENDOR(0, 0x15581313), + 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/galp3/overridetree.cb b/src/mainboard/system76/kbl-u/variants/galp3/overridetree.cb new file mode 100644 index 0000000000..8a61f28069 --- /dev/null +++ b/src/mainboard/system76/kbl-u/variants/galp3/overridetree.cb @@ -0,0 +1,5 @@ +chip soc/intel/skylake + device domain 0 on + subsystemid 0x1558 0x1313 inherit + end +end