hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/x86/kernel/sysfb_efi.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Generic System Framebuffers on x86
34 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com>
45 *
56 * EFI Quirks Copyright (c) 2006 Edgar Hucek <gimli@dark-green.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the Free
9
- * Software Foundation; either version 2 of the License, or (at your option)
10
- * any later version.
117 */
128
139 /*
....@@ -19,12 +15,15 @@
1915
2016 #include <linux/dmi.h>
2117 #include <linux/err.h>
18
+#include <linux/efi.h>
2219 #include <linux/init.h>
2320 #include <linux/kernel.h>
2421 #include <linux/mm.h>
2522 #include <linux/pci.h>
2623 #include <linux/screen_info.h>
2724 #include <video/vga.h>
25
+
26
+#include <asm/efi.h>
2827 #include <asm/sysfb.h>
2928
3029 enum {
....@@ -265,6 +264,22 @@
265264 "Lenovo ideapad D330-10IGM"),
266265 },
267266 },
267
+ {
268
+ /* Lenovo IdeaPad Duet 3 10IGL5 with 1200x1920 portrait screen */
269
+ .matches = {
270
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
271
+ DMI_EXACT_MATCH(DMI_PRODUCT_VERSION,
272
+ "IdeaPad Duet 3 10IGL5"),
273
+ },
274
+ },
275
+ {
276
+ /* Lenovo Yoga Book X91F / X91L */
277
+ .matches = {
278
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
279
+ /* Non exact match to match F + L versions */
280
+ DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
281
+ },
282
+ },
268283 {},
269284 };
270285