summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/p8z77-series/mainboard.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-05-17 17:57:19 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-05-20 17:49:39 +0000
commit6f925064152f2227b12ff68ef72289cf76be5d7c (patch)
treef254bb4daaeb3e2ec5d218e519ded8c7c9753437 /src/mainboard/asus/p8z77-series/mainboard.c
parent0da07d66bd131b5ca5c694a069bf8ea1838f9951 (diff)
downloadcoreboot-6f925064152f2227b12ff68ef72289cf76be5d7c.tar.xz
mb/asus/p8z77-m_pro: Transform into variant
To preserve reproducibility, temporarily guard mainboard.c contents. Tested with BUILD_TIMELESS=1, coreboot.rom for the Asus P8Z77-M PRO remains identical when not adding the .config file in it. Change-Id: I05e272690ca78f6b9e22b1db1c36cb9e5a7afe3c Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54411 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/asus/p8z77-series/mainboard.c')
-rw-r--r--src/mainboard/asus/p8z77-series/mainboard.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mainboard/asus/p8z77-series/mainboard.c b/src/mainboard/asus/p8z77-series/mainboard.c
new file mode 100644
index 0000000000..bc45baf8a7
--- /dev/null
+++ b/src/mainboard/asus/p8z77-series/mainboard.c
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* TODO: remove */
+#if CONFIG(INTEL_INT15)
+
+#include <device/device.h>
+#include <drivers/intel/gma/int15.h>
+
+static void mainboard_enable(struct device *dev)
+{
+ install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
+ GMA_INT15_PANEL_FIT_DEFAULT,
+ GMA_INT15_BOOT_DISPLAY_DEFAULT,
+ 0);
+}
+
+struct chip_operations mainboard_ops = {
+ .enable_dev = mainboard_enable
+};
+
+#endif