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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jongpil Jung <jongpuls@xxxxxxxxx>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 902cc1a71e45..3c85afd3ef17 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -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,
 	},
 	{}
 };
-- 
2.25.1




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux