summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/haswell/mainboard.c
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-05-22 03:20:46 +0200
committerPaul Fagerburg <pfagerburg@chromium.org>2022-05-31 13:41:18 +0000
commit1b3197efb40a19353f26ca565ed81248e3db43e1 (patch)
tree7abf495dede230a7f57d1a7b6fc27789e2b6240b /src/mainboard/lenovo/haswell/mainboard.c
parentc754462717b79c2d334a5de8fc269b346468dbe6 (diff)
mb/lenovo: Rename t440p to haswell
In preparation to follow-up commits, rename the mainboard folder from t440p to haswell, which will have more variants later. Change-Id: I4a9d68d54d5f0821bbf85faaa620855d456c97f3 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63511 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/lenovo/haswell/mainboard.c')
-rw-r--r--src/mainboard/lenovo/haswell/mainboard.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/haswell/mainboard.c b/src/mainboard/lenovo/haswell/mainboard.c
new file mode 100644
index 0000000000..e9ff4f5cbe
--- /dev/null
+++ b/src/mainboard/lenovo/haswell/mainboard.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <device/device.h>
+#include <drivers/intel/gma/int15.h>
+#include <ec/lenovo/h8/h8.h>
+
+static void mainboard_enable(struct device *dev)
+{
+ install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP,
+ GMA_INT15_PANEL_FIT_DEFAULT,
+ GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
+}
+
+struct chip_operations mainboard_ops = {
+ .enable_dev = mainboard_enable,
+};