summaryrefslogtreecommitdiff
path: root/src/mainboard/hp/probook_640_g1/mainboard.c
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-10-06 23:00:23 +0800
committerIru Cai <mytbk920423@gmail.com>2020-11-14 18:10:49 +0800
commit13433115c97e5559b506cab72be8ad56eed0df60 (patch)
tree8c293f521c1af2b92742d7e99c46040f56cff9d6 /src/mainboard/hp/probook_640_g1/mainboard.c
parente5e233e6d9dc12dbccdf07b810869d659954129c (diff)
downloadcoreboot-13433115c97e5559b506cab72be8ad56eed0df60.tar.xz
[WIP] mb/hp: Add HP ProBook 640 G1
Generate code from autoport. It boots to Arch Linux in a USB disk from SeaBIOS payload. This board doesn't have HP Sure Start enabled, so we can use all the flash regions, and relocate the EC firmware with CB:41393. Change-Id: I07f433784292e3765bde3736414ff0eae525a046 Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Diffstat (limited to 'src/mainboard/hp/probook_640_g1/mainboard.c')
-rw-r--r--src/mainboard/hp/probook_640_g1/mainboard.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/hp/probook_640_g1/mainboard.c b/src/mainboard/hp/probook_640_g1/mainboard.c
new file mode 100644
index 0000000000..98cc8110cc
--- /dev/null
+++ b/src/mainboard/hp/probook_640_g1/mainboard.c
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#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_EDP, GMA_INT15_PANEL_FIT_DEFAULT,
+ GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
+}
+
+struct chip_operations mainboard_ops = {
+ .enable_dev = mainboard_enable,
+};