This is based on t420s. Tested on a T420 without discrete GPU. There is no support for nvidia gpu and optimus.
2bffa8a lenovo/t420: Add new port
src/mainboard/lenovo/t420/Kconfig | 79 ++++++++
src/mainboard/lenovo/t420/Kconfig.name | 2 +
src/mainboard/lenovo/t420/Makefile.inc | 17 ++
src/mainboard/lenovo/t420/acpi/ec.asl | 21 ++
src/mainboard/lenovo/t420/acpi/platform.asl | 35 ++++
src/mainboard/lenovo/t420/acpi/superio.asl | 1 +
src/mainboard/lenovo/t420/acpi_tables.c | 42 ++++
src/mainboard/lenovo/t420/board_info.txt | 6 +
src/mainboard/lenovo/t420/cmos.default | 16 ++
src/mainboard/lenovo/t420/cmos.layout | 142 +++++++++++++
src/mainboard/lenovo/t420/devicetree.cb | 180 +++++++++++++++++
src/mainboard/lenovo/t420/dsdt.asl | 64 ++++++
src/mainboard/lenovo/t420/gpio.c | 291 +++++++++++++++++++++++++++
src/mainboard/lenovo/t420/hda_verb.c | 69 +++++++
src/mainboard/lenovo/t420/mainboard.c | 46 +++++
src/mainboard/lenovo/t420/romstage.c | 75 +++++++
src/mainboard/lenovo/t420/smihandler.c | 101 ++++++++++
src/mainboard/lenovo/t420/thermal.h | 26 +++
18 files changed, 1213 insertions(+)
Upstream: review.coreboot.org