aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_panel_orientation_quirks.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-09-05 15:05:01 +0200
committerHans de Goede <hdegoede@redhat.com>2021-09-12 15:08:27 +0200
commit63a4881572d7da18d423a5a0a5421dc30e83d114 (patch)
tree1faf3f1d7306ed11acc11c542652e24374b579bb /drivers/gpu/drm/drm_panel_orientation_quirks.c
parentdrm: document drm_mode_create_lease object requirements (diff)
downloadlinux-dev-63a4881572d7da18d423a5a0a5421dc30e83d114.tar.xz
linux-dev-63a4881572d7da18d423a5a0a5421dc30e83d114.zip
drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook
The Chuwi HiBook uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210905130501.32980-1-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/drm_panel_orientation_quirks.c')
-rw-r--r--drivers/gpu/drm/drm_panel_orientation_quirks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 4e965b0f5502..7e0f581a360e 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
},
.driver_data = (void *)&lcd800x1280_rightside_up,
+ }, { /* Chuwi HiBook (CWI514) */
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+ DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+ /* Above matches are too generic, add bios-date match */
+ DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+ },
+ .driver_data = (void *)&lcd1200x1920_rightside_up,
}, { /* Chuwi Hi10 Pro (CWI529) */
.matches = {
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),