summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2022-12-08 00:29:07 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2022-12-08 00:29:07 +0000
commit7276046ee3e5ed97bbac25157fd0d675281cac9b (patch)
treee08208374a1080b93f3d16cff590050c5ef7a09c /sys
parent96f6398cde741b20c403d54638ccce9d0cbc44c3 (diff)
Forcibly set console output to the framebuffer on the Lenovo x13s.
We should actually do something like checking that both stdout-path and serial0 don't exist to realize we have to switch, but this hack gets us going for now. ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm64/stand/efiboot/conf.c4
-rw-r--r--sys/arch/arm64/stand/efiboot/efiboot.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/arm64/stand/efiboot/conf.c b/sys/arch/arm64/stand/efiboot/conf.c
index ae2813eee16..627271abf24 100644
--- a/sys/arch/arm64/stand/efiboot/conf.c
+++ b/sys/arch/arm64/stand/efiboot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.42 2022/12/07 23:04:26 patrick Exp $ */
+/* $OpenBSD: conf.c,v 1.43 2022/12/08 00:29:06 patrick Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -46,7 +46,7 @@
#include "efipxe.h"
#include "softraid_arm64.h"
-const char version[] = "1.14";
+const char version[] = "1.15";
int debug = 0;
struct fs_ops file_system[] = {
diff --git a/sys/arch/arm64/stand/efiboot/efiboot.c b/sys/arch/arm64/stand/efiboot/efiboot.c
index 970b8fa0a35..7629136f2ff 100644
--- a/sys/arch/arm64/stand/efiboot/efiboot.c
+++ b/sys/arch/arm64/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.45 2022/12/07 23:04:26 patrick Exp $ */
+/* $OpenBSD: efiboot.c,v 1.46 2022/12/08 00:29:06 patrick Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -1104,9 +1104,12 @@ efi_fdt(void)
return fdt_sys;
if (strcmp(hw_vendor, "LENOVO") == 0 &&
- strncmp(hw_prod, "21BX", 4) == 0)
+ strncmp(hw_prod, "21BX", 4) == 0) {
fdt_load_override(FW_PATH
"qcom/sc8280xp-lenovo-thinkpad-x13s.dtb");
+ /* TODO: find a better mechanism */
+ cnset(ttydev("fb0"));
+ }
return fdt_override ? fdt_override : fdt_sys;
}