aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_panel_orientation_quirks.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 902cc1a71e45..9274237b7f57 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -60,6 +60,12 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
60 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 60 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
61}; 61};
62 62
63static const struct drm_dmi_panel_orientation_data lenovo_ideapad_miix_310 = {
64 .width = 800,
65 .height = 1280,
66 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
67};
68
63static const struct drm_dmi_panel_orientation_data vios_lth17 = { 69static const struct drm_dmi_panel_orientation_data vios_lth17 = {
64 .width = 800, 70 .width = 800,
65 .height = 1280, 71 .height = 1280,
@@ -102,6 +108,17 @@ static const struct dmi_system_id orientation_data[] = {
102 DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"), 108 DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
103 }, 109 },
104 .driver_data = (void *)&itworks_tw891, 110 .driver_data = (void *)&itworks_tw891,
111 }, { /*
112 * Lenovo Ideapad Miix 310 laptop, only some production batches
113 * have a portrait screen, the resolution checks makes the quirk
114 * apply only to those batches.
115 */
116 .matches = {
117 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
118 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
119 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
120 },
121 .driver_data = (void *)&lenovo_ideapad_miix_310,
105 }, { /* VIOS LTH17 */ 122 }, { /* VIOS LTH17 */
106 .matches = { 123 .matches = {
107 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"), 124 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),