-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from uejji/linux
Update panel orientation quirks patch
- Loading branch information
Showing
3 changed files
with
122 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
PKGBUILD/linux/9000-upstreamed-drm-panel-orientation-quirks.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c | ||
index 4a73821b8..88aa57c15 100644 | ||
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c | ||
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c | ||
@@ -93,6 +93,12 @@ static const struct drm_dmi_panel_orientation_data onegx1_pro = { | ||
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, | ||
}; | ||
|
||
+static const struct drm_dmi_panel_orientation_data lcd640x960_leftside_up = { | ||
+ .width = 640, | ||
+ .height = 960, | ||
+ .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, | ||
+}; | ||
+ | ||
static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = { | ||
.width = 720, | ||
.height = 1280, | ||
@@ -123,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = { | ||
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, | ||
}; | ||
|
||
+static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_up = { | ||
+ .width = 1200, | ||
+ .height = 1920, | ||
+ .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, | ||
+}; | ||
+ | ||
static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { | ||
.width = 1200, | ||
.height = 1920, | ||
@@ -184,10 +196,10 @@ static const struct dmi_system_id orientation_data[] = { | ||
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"), | ||
}, | ||
.driver_data = (void *)&lcd800x1280_rightside_up, | ||
- }, { /* AYA NEO AYANEO 2 */ | ||
+ }, { /* AYA NEO AYANEO 2/2S */ | ||
.matches = { | ||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), | ||
- DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), | ||
+ DMI_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), | ||
}, | ||
.driver_data = (void *)&lcd1200x1920_rightside_up, | ||
}, { /* AYA NEO 2021 */ | ||
@@ -202,6 +214,18 @@ static const struct dmi_system_id orientation_data[] = { | ||
DMI_MATCH(DMI_PRODUCT_NAME, "AIR"), | ||
}, | ||
.driver_data = (void *)&lcd1080x1920_leftside_up, | ||
+ }, { /* AYA NEO Flip DS Bottom Screen */ | ||
+ .matches = { | ||
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), | ||
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FLIP DS"), | ||
+ }, | ||
+ .driver_data = (void *)&lcd640x960_leftside_up, | ||
+ }, { /* AYA NEO Flip KB/DS Top Screen */ | ||
+ .matches = { | ||
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), | ||
+ DMI_MATCH(DMI_PRODUCT_NAME, "FLIP"), | ||
+ }, | ||
+ .driver_data = (void *)&lcd1080x1920_leftside_up, | ||
}, { /* AYA NEO Founder */ | ||
.matches = { | ||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYA NEO"), | ||
@@ -226,6 +250,12 @@ static const struct dmi_system_id orientation_data[] = { | ||
DMI_MATCH(DMI_BOARD_NAME, "KUN"), | ||
}, | ||
.driver_data = (void *)&lcd1600x2560_rightside_up, | ||
+ }, { /* AYA NEO SLIDE */ | ||
+ .matches = { | ||
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), | ||
+ DMI_MATCH(DMI_PRODUCT_NAME, "SLIDE"), | ||
+ }, | ||
+ .driver_data = (void *)&lcd1080x1920_leftside_up, | ||
}, { /* AYN Loki Max */ | ||
.matches = { | ||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"), | ||
@@ -315,6 +345,12 @@ static const struct dmi_system_id orientation_data[] = { | ||
DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), | ||
}, | ||
.driver_data = (void *)&gpd_win2, | ||
+ }, { /* GPD Win 2 (correct DMI strings) */ | ||
+ .matches = { | ||
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), | ||
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") | ||
+ }, | ||
+ .driver_data = (void *)&lcd720x1280_rightside_up, | ||
}, { /* GPD Win 3 */ | ||
.matches = { | ||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), | ||
@@ -443,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = { | ||
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), | ||
}, | ||
.driver_data = (void *)&lcd1600x2560_leftside_up, | ||
+ }, { /* OneXPlayer Mini (Intel) */ | ||
+ .matches = { | ||
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."), | ||
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), | ||
+ }, | ||
+ .driver_data = (void *)&lcd1200x1920_leftside_up, | ||
}, { /* OrangePi Neo */ | ||
.matches = { | ||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters