Skip to content

Commit 03aecb1

Browse files
committed
drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book X90F
Like the Windows Lenovo Yoga Book X91F/L the Android Lenovo Yoga Book X90F/L has a portrait 1200x1920 screen used in landscape mode, add a quirk for this. When the quirk for the X91F/L was initially added it was written to also apply to the X90F/L but this does not work because the Android version of the Yoga Book uses completely different DMI strings. Also adjust the X91F/L quirk to reflect that it only applies to the X91F/L models. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4028cbf commit 03aecb1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,17 @@ static const struct dmi_system_id orientation_data[] = {
328328
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Duet 3 10IGL5"),
329329
},
330330
.driver_data = (void *)&lcd1200x1920_rightside_up,
331-
}, { /* Lenovo Yoga Book X90F / X91F / X91L */
331+
}, { /* Lenovo Yoga Book X90F / X90L */
332332
.matches = {
333-
/* Non exact match to match all versions */
334-
DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"),
333+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
334+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
335+
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
336+
},
337+
.driver_data = (void *)&lcd1200x1920_rightside_up,
338+
}, { /* Lenovo Yoga Book X91F / X91L */
339+
.matches = {
340+
/* Non exact match to match F + L versions */
341+
DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
335342
},
336343
.driver_data = (void *)&lcd1200x1920_rightside_up,
337344
}, { /* Lenovo Yoga Tablet 2 830F / 830L */

0 commit comments

Comments
 (0)