summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/h61-series/acpi
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-05-17 13:22:57 +0200
committerDavid Hendricks <david.hendricks@gmail.com>2021-05-20 17:10:01 +0000
commited1e25de525fe2649bf5af2b448f7b37e34c54f6 (patch)
treeaa3f9f493ba748831c93fafd676388087f3c3d57 /src/mainboard/asus/h61-series/acpi
parent9d8a4558e30845ff9ae421c551b4fa51dcfeec93 (diff)
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 <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54375 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'src/mainboard/asus/h61-series/acpi')
-rw-r--r--src/mainboard/asus/h61-series/acpi/superio.asl15
1 files changed, 15 insertions, 0 deletions
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 <superio/nuvoton/nct6776/acpi/superio.asl>
+
+#else /* !BOARD_ASUS_P8H61_M_LX */
#include <drivers/pc80/pc/ps2_controller.asl>
+#endif