summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-17 05:17:31 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-17 05:17:31 +0000
commitce416a647e13720ba2afe3f58e00b0f015f81c24 (patch)
treee9e8a616efd3f9142326000c34ed95ecae14dfca
parent5bfda0d1fe6d10f170ccb1bc197e8dcdc83fc65c (diff)
drm: panel-orientation-quirks: Add quirk for the 1Netbook OneXPlayer
From Raymond Jay Golo 9696125fb3ca1660d28a0aef53bcaa1a20a02bdb in linux 5.15.y/5.15.24 d3cbc6e323c9299d10c8d2e4127c77c7d05d07b1 in mainline linux
-rw-r--r--sys/dev/pci/drm/drm_panel_orientation_quirks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_panel_orientation_quirks.c b/sys/dev/pci/drm/drm_panel_orientation_quirks.c
index a21a1bbfa4c..bc812138e72 100644
--- a/sys/dev/pci/drm/drm_panel_orientation_quirks.c
+++ b/sys/dev/pci/drm/drm_panel_orientation_quirks.c
@@ -115,6 +115,12 @@ static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = {
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
};
+static const struct drm_dmi_panel_orientation_data lcd1600x2560_leftside_up = {
+ .width = 1600,
+ .height = 2560,
+ .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
static const struct dmi_system_id orientation_data[] = {
{ /* Acer One 10 (S1003) */
.matches = {
@@ -267,6 +273,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"),
},
.driver_data = (void *)&onegx1_pro,
+ }, { /* OneXPlayer */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
+ },
+ .driver_data = (void *)&lcd1600x2560_leftside_up,
}, { /* Samsung GalaxyBook 10.6 */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),