coreboot-kgpe-d16/src/mainboard/lenovo/t420
Piotr Szymaniak 49236d4430 mb/lenovo/t420: Copy HDA verbs from vendor firmware
Background story (I think that's what great in opensource -
ppl leave there part of their lives):  ;-)
While trying to fix audio jack not working with coreboot and
Windows 10 with some help from hell__ and nico_h on IRC nico_h
discovered that t420 and t430 hda_verb.c are the same:
<nico_h> oddly, in coreboot source T420 and T430 have the same
  numbers for very different codecs... I suspect copy-pasta
Difference between /sys/class/sound/cardX/hwCXDY/init_pin_config
in vendor BIOS helped with the updated config. Connecting audio
jack now works flawless both in Linux and Windows.

Audio-related keyboard buttons: volup, voldown, mute works fine
both in Linux (Debian-based) and Windows 10. mutemic button works
(tested ie. with xev) but both in Linux and Windows 10 wont light
up or makes any effect.

+-----------------------------------+
|   init_pin_config dump from:      |
+----= VENDOR =---+---= coreboot =--+
| 0x19 0x04211040 | 0x19 0x04211040 |
| 0x1a 0x61a19050 | 0x1a 0x61a19050 |
| 0x1b 0x04a11060 | 0x1b 0x04a11060 |
| 0x1c 0x6121401f | 0x1c 0x6121401f |
| 0x1d 0x40f001f0 | 0x1d 0x40f001f0 |
| 0x1e 0x40f001f0 | 0x1e 0x40f001f0 |
| 0x1f 0x90170110 | 0x1f 0x90170110 |
| 0x20 0x40f001f0 | 0x20 0x40f001f0 |
| 0x22 0x40f001f0 | 0x22 0x40f001f0 |
| 0x23 0x90a60170 | 0x23 0x90a60170 |
+-----------------+-----------------+

Tested-by: Piotr Szymaniak

Signed-off-by: Piotr Szymaniak <szarpaj@grubelek.pl>
Change-Id: Ie5eba84e5ea590b7db00e189cd68e714bee7e410
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51612
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-04-06 06:47:14 +00:00
..
acpi mb/lenovo/t420: Convert to ASL 2.0 syntax 2021-01-24 21:41:18 +00:00
acpi_tables.c ACPI: Select ACPI_SOC_NVS only where suitable 2021-01-18 07:21:34 +00:00
board_info.txt
cmos.default sb/intel/bd82x6x: Support ME Soft Temporary Disable Mode 2021-02-07 23:06:52 +00:00
cmos.layout sb/intel/bd82x6x: Support ME Soft Temporary Disable Mode 2021-02-07 23:06:52 +00:00
data.vbt
devicetree.cb sandybridge boards: Drop default pci_mmio_size 2021-04-05 13:16:36 +00:00
dsdt.asl ACPI: Add top-level ASL 2021-01-27 15:35:13 +00:00
early_init.c
gma-mainboard.ads
gpio.c
hda_verb.c mb/lenovo/t420: Copy HDA verbs from vendor firmware 2021-04-06 06:47:14 +00:00
Kconfig
Kconfig.name
mainboard.c
Makefile.inc arch/x86: Use wildcard for mb/smihandler.c 2021-01-24 21:06:22 +00:00
smihandler.c
vboot-ro-me_clean.fmd
vboot-ro.fmd
vboot-rwa.fmd