]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/6.8.6/drm-panel-orientation-quirks-add-quirk-for-gpd-win-m.patch
Linux 6.8.6
[thirdparty/kernel/stable-queue.git] / releases / 6.8.6 / drm-panel-orientation-quirks-add-quirk-for-gpd-win-m.patch
CommitLineData
335f7cc0
SL
1From 67734db6537310b4181ec889c6788c00cd1696e3 Mon Sep 17 00:00:00 2001
2From: Sasha Levin <sashal@kernel.org>
3Date: Thu, 21 Dec 2023 22:01:50 -0500
4Subject: drm: panel-orientation-quirks: Add quirk for GPD Win Mini
5
6From: Samuel Dionne-Riel <samuel@dionne-riel.com>
7
8[ Upstream commit 2f862fdc0fd802e728b6ca96bc78ec3f01bf161e ]
9
10This adds a DMI orientation quirk for the GPD Win Mini panel.
11
12Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
13Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14Link: https://patchwork.freedesktop.org/patch/msgid/20231222030149.3740815-2-samuel@dionne-riel.com
15Signed-off-by: Sasha Levin <sashal@kernel.org>
16---
17 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
18 1 file changed, 12 insertions(+)
19
20diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
21index 3d92f66e550c3..aa93129c3397e 100644
22--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
23+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
24@@ -117,6 +117,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = {
25 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
26 };
27
28+static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = {
29+ .width = 1080,
30+ .height = 1920,
31+ .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
32+};
33+
34 static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
35 .width = 1200,
36 .height = 1920,
37@@ -279,6 +285,12 @@ static const struct dmi_system_id orientation_data[] = {
38 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1618-03")
39 },
40 .driver_data = (void *)&lcd720x1280_rightside_up,
41+ }, { /* GPD Win Mini */
42+ .matches = {
43+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
44+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1617-01")
45+ },
46+ .driver_data = (void *)&lcd1080x1920_rightside_up,
47 }, { /* I.T.Works TW891 */
48 .matches = {
49 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
50--
512.43.0
52