From ed1e25de525fe2649bf5af2b448f7b37e34c54f6 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 17 May 2021 13:22:57 +0200 Subject: mb/asus/p8h61-m_lx: Transform into variant setup Handle some differences in the DSDT code using preprocessor. Tested with BUILD_TIMELESS=1, coreboot.rom for the Asus P8H61-M LX remains identical when not adding the .config file in it. Change-Id: I2a02f32dfd9fa9c1adce3baf0d279ea19db5883f Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/54375 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/mainboard/asus/h61-series/acpi/superio.asl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mainboard/asus/h61-series/acpi') diff --git a/src/mainboard/asus/h61-series/acpi/superio.asl b/src/mainboard/asus/h61-series/acpi/superio.asl index ee2eabeb75..55816266cf 100644 --- a/src/mainboard/asus/h61-series/acpi/superio.asl +++ b/src/mainboard/asus/h61-series/acpi/superio.asl @@ -1,3 +1,18 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#if CONFIG(BOARD_ASUS_P8H61_M_LX) + +#define SUPERIO_DEV SIO0 +#define SUPERIO_PNP_BASE 0x2e +#define NCT6776_SHOW_PP +#define NCT6776_SHOW_SP1 +#define NCT6776_SHOW_KBC +#define NCT6776_SHOW_HWM + +#undef NCT6776_SHOW_GPIO + +#include + +#else /* !BOARD_ASUS_P8H61_M_LX */ #include +#endif -- cgit v1.2.3