drm: panel-orientation-quirks: Add quirk for DynaBook K50
authorjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 03:36:31 +0000 (03:36 +0000)
committerjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 03:36:31 +0000 (03:36 +0000)
From Allen Ballway
d5b286daecb46292e1e229ff3dcc8a760afef759 in linux-6.1.y/6.1.16
a3caf7ea0c3d5872ed0f2c51f5476aee0c47a73a in mainline linux

sys/dev/pci/drm/drm_panel_orientation_quirks.c

index 21fc873..9737ad9 100644 (file)
@@ -30,12 +30,6 @@ struct drm_dmi_panel_orientation_data {
        int orientation;
 };
 
-static const struct drm_dmi_panel_orientation_data asus_t100ha = {
-       .width = 800,
-       .height = 1280,
-       .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
-};
-
 static const struct drm_dmi_panel_orientation_data gpd_micropc = {
        .width = 720,
        .height = 1280,
@@ -97,6 +91,12 @@ static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = {
        .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd800x1280_leftside_up = {
+       .width = 800,
+       .height = 1280,
+       .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
        .width = 800,
        .height = 1280,
@@ -157,7 +157,7 @@ static const struct dmi_system_id orientation_data[] = {
                  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
                  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
                },
-               .driver_data = (void *)&asus_t100ha,
+               .driver_data = (void *)&lcd800x1280_leftside_up,
        }, {    /* Asus T101HA */
                .matches = {
                  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
@@ -202,6 +202,12 @@ static const struct dmi_system_id orientation_data[] = {
                  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
                },
                .driver_data = (void *)&lcd1200x1920_rightside_up,
+       }, {    /* Dynabook K50 */
+               .matches = {
+                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Dynabook Inc."),
+                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "dynabook K50/FR"),
+               },
+               .driver_data = (void *)&lcd800x1280_leftside_up,
        }, {    /* GPD MicroPC (generic strings, also match on bios date) */
                .matches = {
                  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),