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

Signed-off-by: Jongpil Jung <[email protected]>
---
 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

Reply via email to