]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
authorBouke Sybren Haarsma <boukehaarsma23@gmail.com>
Sun, 28 Jul 2024 12:47:30 +0000 (14:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:05 +0000 (19:24 +0200)
[ Upstream commit b86aa4140f6a8f01f35bfb05af60e01a55b48803 ]

Add quirk orientation for the Ayn Loki Zero.

This also has been tested/used by the JELOS team.

Signed-off-by: Bouke Sybren Haarsma <boukehaarsma23@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240728124731.168452-2-boukehaarsma23@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_panel_orientation_quirks.c

index 039da0d1a613b7243369aec642b2251c0f173991..79ccf4959df41b8dde5085d3ab1d5aceb232c5ab 100644 (file)
@@ -208,6 +208,12 @@ static const struct dmi_system_id orientation_data[] = {
                  DMI_MATCH(DMI_BOARD_NAME, "KUN"),
                },
                .driver_data = (void *)&lcd1600x2560_rightside_up,
+       }, {    /* AYN Loki Zero */
+               .matches = {
+                       DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Zero"),
+               },
+               .driver_data = (void *)&lcd1080x1920_leftside_up,
        }, {    /* Chuwi HiBook (CWI514) */
                .matches = {
                        DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),