From: Andrew Wyatt <fewtar...@steamfork.org>

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 <fewtar...@steamfork.org>
Signed-off-by: John Edwards <ue...@uejji.net>
Tested-by: Paco Avelar <pacoave...@hotmail.com>
Reviewed-by: Thomas Zimmermann <tzimmerm...@suse.de>
Reviewed-by: Hans de Goede <hdego...@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c 
b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 9e6708cd1..e6148cc31 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = {
                  DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
                },
                .driver_data = (void *)&gpd_win2,
+       }, {    /* GPD Win 2 (correct DMI strings) */
+               .matches = {
+                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
+                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2")
+               },
+               .driver_data = (void *)&lcd720x1280_rightside_up,
        }, {    /* GPD Win 3 */
                .matches = {
                  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
-- 
2.43.0

Reply via email to