Skip to content

Commit cbb7eb2

Browse files
Kai Uwe Broulikdliviu
authored andcommitted
drm: panel-orientation-quirks: Add quirk for One Mix 2S
The One Mix 2S is a mini laptop with a 1200x1920 portrait screen mounted in a landscape oriented clamshell case. Because of the too generic DMI strings this entry is also doing bios-date matching. Signed-off-by: Kai Uwe Broulik <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 885291a commit cbb7eb2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ static const struct drm_dmi_panel_orientation_data gpd_micropc = {
3838
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
3939
};
4040

41+
static const struct drm_dmi_panel_orientation_data gpd_onemix2s = {
42+
.width = 1200,
43+
.height = 1920,
44+
.bios_dates = (const char * const []){ "05/21/2018", "10/26/2018",
45+
"03/04/2019", NULL },
46+
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
47+
};
48+
4149
static const struct drm_dmi_panel_orientation_data gpd_pocket = {
4250
.width = 1200,
4351
.height = 1920,
@@ -401,6 +409,14 @@ static const struct dmi_system_id orientation_data[] = {
401409
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
402410
},
403411
.driver_data = (void *)&lcd800x1280_rightside_up,
412+
}, { /* One Mix 2S (generic strings, also match on bios date) */
413+
.matches = {
414+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
415+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
416+
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
417+
DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
418+
},
419+
.driver_data = (void *)&gpd_onemix2s,
404420
},
405421
{}
406422
};

0 commit comments

Comments
 (0)