64 lines
2.7 KiB
Diff
Executable file
64 lines
2.7 KiB
Diff
Executable file
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
|
|
@@ -133,6 +133,12 @@ static const struct drm_dmi_panel_orient
|
|
.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 = {
|
|
@@ -170,13 +176,13 @@ static const struct dmi_system_id orient
|
|
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
|
|
},
|
|
.driver_data = (void *)&lcd800x1280_rightside_up,
|
|
- }, { /* AYA NEO 2021 */
|
|
+ }, { /* AYA NEO 2021 and Founder */
|
|
.matches = {
|
|
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYADEVICE"),
|
|
- DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"),
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO"),
|
|
},
|
|
.driver_data = (void *)&lcd800x1280_rightside_up,
|
|
- }, { /* AYA NEO AIR */
|
|
+ }, { /* AYA NEO AIR, AIR Pro, AIR Plus*/
|
|
.matches = {
|
|
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
|
|
DMI_MATCH(DMI_PRODUCT_NAME, "AIR"),
|
|
@@ -188,6 +194,30 @@ static const struct dmi_system_id orient
|
|
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,
|
|
+ }, { /* 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,
|
|
+ }, { /* 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,
|
|
+ }, { /* AYN Loki Zero, Max, Max Pro */
|
|
+ .matches = {
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "Loki"),
|
|
+ },
|
|
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
|
|
}, { /* Chuwi HiBook (CWI514) */
|
|
.matches = {
|
|
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
|