Skip to content

Commit d3cbc6e

Browse files
intersectRavendanvet
authored andcommitted
drm: panel-orientation-quirks: Add quirk for the 1Netbook OneXPlayer
The 1Netbook OneXPlayer uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Raymond Jay Golo <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0a3d12a commit d3cbc6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = {
115115
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
116116
};
117117

118+
static const struct drm_dmi_panel_orientation_data lcd1600x2560_leftside_up = {
119+
.width = 1600,
120+
.height = 2560,
121+
.orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
122+
};
123+
118124
static const struct dmi_system_id orientation_data[] = {
119125
{ /* Acer One 10 (S1003) */
120126
.matches = {
@@ -275,6 +281,12 @@ static const struct dmi_system_id orientation_data[] = {
275281
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"),
276282
},
277283
.driver_data = (void *)&onegx1_pro,
284+
}, { /* OneXPlayer */
285+
.matches = {
286+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."),
287+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
288+
},
289+
.driver_data = (void *)&lcd1600x2560_leftside_up,
278290
}, { /* Samsung GalaxyBook 10.6 */
279291
.matches = {
280292
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),

0 commit comments

Comments
 (0)