Skip to content

Commit 1442485

Browse files
committed
drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Tablet 2 830
The Lenovo Yoga Tablet 2 830F / 830L use a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220623112710.15693-1-hdegoede@redhat.com
1 parent ee7a69a commit 1442485

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,21 @@ static const struct dmi_system_id orientation_data[] = {
286286
DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"),
287287
},
288288
.driver_data = (void *)&lcd1200x1920_rightside_up,
289+
}, { /* Lenovo Yoga Tablet 2 830F / 830L */
290+
.matches = {
291+
/*
292+
* Note this also matches the Lenovo Yoga Tablet 2 1050F/L
293+
* since that uses the same mainboard. The resolution match
294+
* will limit this to only matching on the 830F/L. Neither has
295+
* any external video outputs so those are not a concern.
296+
*/
297+
DMI_MATCH(DMI_SYS_VENDOR, "Intel Corp."),
298+
DMI_MATCH(DMI_PRODUCT_NAME, "VALLEYVIEW C0 PLATFORM"),
299+
DMI_MATCH(DMI_BOARD_NAME, "BYT-T FFD8"),
300+
/* Partial match on beginning of BIOS version */
301+
DMI_MATCH(DMI_BIOS_VERSION, "BLADE_21"),
302+
},
303+
.driver_data = (void *)&lcd1200x1920_rightside_up,
289304
}, { /* OneGX1 Pro */
290305
.matches = {
291306
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SYSTEM_MANUFACTURER"),

0 commit comments

Comments
 (0)