From 416875e93ee71bcc53079146873ebb5635497c70 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sun, 15 Feb 2026 12:54:31 +0100 Subject: [PATCH] mb/lenovo/t430|t530: Reduces differences in code Make the T430 look like the T530 codebase by reordering includes, update the ACPI code and update the CMOS defaults file. Should have not influence on functionality, but changes the TIMELESS build artifacts. Change-Id: I2c300ecbf44fa950183ee5e05ba1e05cdf5ff00d Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/91281 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/lenovo/t430/cmos.default | 2 +- src/mainboard/lenovo/t430/cmos.layout | 1 + src/mainboard/lenovo/t430/dsdt.asl | 17 +++++++++++------ src/mainboard/lenovo/t430/smihandler.c | 2 +- src/mainboard/lenovo/t530/early_init.c | 5 ++--- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/mainboard/lenovo/t430/cmos.default b/src/mainboard/lenovo/t430/cmos.default index c896eadec1..4857f92f67 100644 --- a/src/mainboard/lenovo/t430/cmos.default +++ b/src/mainboard/lenovo/t430/cmos.default @@ -15,6 +15,6 @@ fn_ctrl_swap=Disable sticky_fn=Disable trackpoint=Enable backlight=Both -usb_always_on=Disable hybrid_graphics_mode=Integrated Only +usb_always_on=Disable me_state=Normal diff --git a/src/mainboard/lenovo/t430/cmos.layout b/src/mainboard/lenovo/t430/cmos.layout index 3e48df5584..d109a61b4e 100644 --- a/src/mainboard/lenovo/t430/cmos.layout +++ b/src/mainboard/lenovo/t430/cmos.layout @@ -41,6 +41,7 @@ entries # coreboot config options: northbridge 432 3 e 11 gfx_uma_size 435 2 e 12 hybrid_graphics_mode + 440 8 h 0 volume # VBOOT diff --git a/src/mainboard/lenovo/t430/dsdt.asl b/src/mainboard/lenovo/t430/dsdt.asl index 795f9a1ee9..1134782675 100644 --- a/src/mainboard/lenovo/t430/dsdt.asl +++ b/src/mainboard/lenovo/t430/dsdt.asl @@ -11,24 +11,29 @@ DefinitionBlock( ACPI_DSDT_REV_2, OEM_ID, ACPI_TABLE_CREATOR, - 0x20141018 // OEM revision + 0x20110725 // OEM revision ) { #include - #include "acpi/platform.asl" - #include #include - /* global NVS and variables. */ + + #include "acpi/platform.asl" + + // global NVS and variables #include - #include + + #include Scope (\_SB) { Device (PCI0) { #include - #include #include + + #include } } + + #include #include } diff --git a/src/mainboard/lenovo/t430/smihandler.c b/src/mainboard/lenovo/t430/smihandler.c index 81cbc487f6..03c899e0d9 100644 --- a/src/mainboard/lenovo/t430/smihandler.c +++ b/src/mainboard/lenovo/t430/smihandler.c @@ -5,8 +5,8 @@ #include #include #include -#include #include +#include #define GPE_EC_SCI 1 #define GPE_EC_WAKE 13 diff --git a/src/mainboard/lenovo/t530/early_init.c b/src/mainboard/lenovo/t530/early_init.c index b7bc35adbb..d982660856 100644 --- a/src/mainboard/lenovo/t530/early_init.c +++ b/src/mainboard/lenovo/t530/early_init.c @@ -1,12 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#include #include #include +#include #include -#include #include +#include static void hybrid_graphics_init(void) {