Skip to content

Commit a860eb9

Browse files
fewtariustdz
authored andcommitted
drm: panel-orientation-quirks: Add new quirk for GPD Win 2
Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt <fewtarius@steamfork.org> Signed-off-by: John Edwards <uejji@uejji.net> Tested-by: Paco Avelar <pacoavelar@hotmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-5-uejji@uejji.net
1 parent 132c89e commit a860eb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = {
339339
DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
340340
},
341341
.driver_data = (void *)&gpd_win2,
342+
}, { /* GPD Win 2 (correct DMI strings) */
343+
.matches = {
344+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
345+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2")
346+
},
347+
.driver_data = (void *)&lcd720x1280_rightside_up,
342348
}, { /* GPD Win 3 */
343349
.matches = {
344350
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),

0 commit comments

Comments
 (0)