27310c9
From aab65520447cb19e3be4a301b796dfb588e85873 Mon Sep 17 00:00:00 2001
27310c9
From: Hans de Goede <hdegoede@redhat.com>
27310c9
Date: Sun, 2 Jun 2019 15:20:33 +0200
27310c9
Subject: [PATCH] drm: panel-orientation-quirks: Add extra quirk table entry
27310c9
 for GPD MicroPC
27310c9
27310c9
Newer GPD MicroPC BIOS versions have proper DMI strings, add an extra quirk
27310c9
table entry for these new strings. This is good news, as this means that we
27310c9
no longer have to update the BIOS dates list with every BIOS update.
27310c9
27310c9
Fixes: 652b8b086538("drm: panel-orientation-quirks: Add quirk for GPD MicroPC")
27310c9
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
27310c9
---
27310c9
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
27310c9
 1 file changed, 12 insertions(+)
27310c9
27310c9
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
27310c9
index d8a0bcd02f34..ffd95bfeaa94 100644
27310c9
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
27310c9
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
27310c9
@@ -90,6 +90,12 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
27310c9
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
27310c9
 };
27310c9
 
27310c9
+static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = {
27310c9
+	.width = 720,
27310c9
+	.height = 1280,
27310c9
+	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
27310c9
+};
27310c9
+
27310c9
 static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
27310c9
 	.width = 800,
27310c9
 	.height = 1280,
27310c9
@@ -123,6 +129,12 @@ static const struct dmi_system_id orientation_data[] = {
27310c9
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
27310c9
 		},
27310c9
 		.driver_data = (void *)&gpd_micropc,
27310c9
+	}, {	/* GPD MicroPC (later BIOS versions with proper DMI strings) */
27310c9
+		.matches = {
27310c9
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
27310c9
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MicroPC"),
27310c9
+		},
27310c9
+		.driver_data = (void *)&lcd720x1280_rightside_up,
27310c9
 	}, {	/*
27310c9
 		 * GPD Pocket, note that the the DMI data is less generic then
27310c9
 		 * it seems, devices with a board-vendor of "AMI Corporation"
27310c9
-- 
27310c9
2.21.0
27310c9