2023-09-09 03:50:50 +00:00
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/drm_panel_orientation_quirks.c linux/drivers/gpu/drm/drm_panel_orientation_quirks.c
|
|
|
|
--- linux.orig/drivers/gpu/drm/drm_panel_orientation_quirks.c 2023-09-02 07:14:38.000000000 +0000
|
|
|
|
+++ linux/drivers/gpu/drm/drm_panel_orientation_quirks.c 2023-09-09 03:24:49.178775423 +0000
|
2023-08-05 18:39:50 +00:00
|
|
|
@@ -133,6 +133,12 @@ static const struct drm_dmi_panel_orient
|
2023-07-14 17:36:05 +00:00
|
|
|
.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 dmi_system_id orientation_data[] = {
|
|
|
|
{ /* Acer One 10 (S1003) */
|
|
|
|
.matches = {
|
2023-08-05 18:39:50 +00:00
|
|
|
@@ -170,13 +176,13 @@ static const struct dmi_system_id orient
|
2023-01-03 23:08:36 +00:00
|
|
|
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
|
|
|
|
},
|
|
|
|
.driver_data = (void *)&lcd800x1280_rightside_up,
|
2023-01-05 21:59:30 +00:00
|
|
|
- }, { /* AYA NEO 2021 */
|
2023-06-21 23:41:19 +00:00
|
|
|
+ }, { /* AYA NEO 2021 and Founder */
|
2023-01-03 23:08:36 +00:00
|
|
|
.matches = {
|
2023-06-21 23:41:19 +00:00
|
|
|
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYADEVICE"),
|
2023-01-22 14:03:05 +00:00
|
|
|
- DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"),
|
2023-06-21 23:41:19 +00:00
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO"),
|
|
|
|
},
|
|
|
|
.driver_data = (void *)&lcd800x1280_rightside_up,
|
|
|
|
- }, { /* AYA NEO AIR */
|
|
|
|
+ }, { /* AYA NEO AIR, AIR Pro, AIR Plus*/
|
2023-01-04 02:10:59 +00:00
|
|
|
.matches = {
|
2023-01-05 21:59:30 +00:00
|
|
|
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
|
2023-06-21 23:41:19 +00:00
|
|
|
DMI_MATCH(DMI_PRODUCT_NAME, "AIR"),
|
2023-09-22 14:54:24 +00:00
|
|
|
@@ -188,6 +194,30 @@ static const struct dmi_system_id orient
|
2023-01-05 21:59:30 +00:00
|
|
|
DMI_MATCH(DMI_BOARD_NAME, "NEXT"),
|
|
|
|
},
|
|
|
|
.driver_data = (void *)&lcd800x1280_rightside_up,
|
|
|
|
+ }, { /* AYA NEO GEEK */
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
|
|
|
|
+ DMI_MATCH(DMI_BOARD_NAME, "GEEK"),
|
|
|
|
+ },
|
|
|
|
+ .driver_data = (void *)&lcd800x1280_rightside_up,
|
2023-06-21 23:41:19 +00:00
|
|
|
+ }, { /* AYANEO AYANEO 2 */
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"),
|
|
|
|
+ },
|
|
|
|
+ .driver_data = (void *)&lcd1200x1920_rightside_up,
|
2023-07-14 17:36:05 +00:00
|
|
|
+ }, { /* AOKZOE A1 Pro */
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AOKZOE"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AOKZOE A1 Pro"),
|
|
|
|
+ },
|
|
|
|
+ .driver_data = (void *)&lcd1200x1920_leftside_up,
|
2023-09-22 15:25:28 +00:00
|
|
|
+ }, { /* AYN Loki Zero, Max, Max Pro */
|
2023-08-05 18:39:50 +00:00
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
|
2023-09-22 14:54:24 +00:00
|
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "Loki"),
|
2023-09-09 03:50:50 +00:00
|
|
|
+ },
|
|
|
|
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
|
2023-01-05 21:59:30 +00:00
|
|
|
}, { /* Chuwi HiBook (CWI514) */
|
|
|
|
.matches = {
|
|
|
|
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
|