Skip to contentSkip to conversation

drm: Added orientation quirk for Samsung Chromebook Bugzzy

PATCH New Jongpil Jung 1 participant 1 message Aug 25, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Added orientation quirk for Samsung Chromebook Bugzzy

Bugzzy has different type of panel from clamshell. So we need to add quirk to change orientation.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +12 -0
index 902cc1a71e45..3c85afd3ef17 100644
@@ -66,6 +66,12 @@ static const struct drm_dmi_panel_orientation_data vios_lth17 = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data samsung_bugzzy = {
+	.width = 1600,
+	.height = 2560,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+};
+
 static const struct dmi_system_id orientation_data[] = {
 	{	/* Asus T100HA */
 		.matches = {
@@ -108,6 +114,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
 		},
 		.driver_data = (void *)&vios_lth17,
+	}, {    /* Samsung Bugzzy */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Google"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Bugzzy"),
+		},
+		.driver_data = (void *)&samsung_bugzzy,
 	},
 	{}
 };
Signature · 1 line
2.25.1