diff options
author | Dave Airlie <airlied@redhat.com> | 2018-10-17 22:04:41 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-10-17 22:04:47 -0400 |
commit | 28b32b9f61fe73e7625ed30c35afd6d8a0ed2b6e (patch) | |
tree | d58dd9516cb6a09cc126656305e6260033475c5f | |
parent | ca4b869240d5810ebac6b1570ad7beffcfbac2f5 (diff) | |
parent | 0e8afefd5da4875ddea9aa4ad17a2540a2bf9736 (diff) |
Merge tag 'drm-misc-next-fixes-2018-10-17' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
- Add quirk to fix orientation of Acer One 10 (S1003) panel (Hans)
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Sean Paul <sean@poorly.run>
Link: https://patchwork.freedesktop.org/patch/msgid/20181017200741.GA240649@art_vandelay
-rw-r--r-- | drivers/gpu/drm/drm_panel_orientation_quirks.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index fe9c6c731e87..ee4a5e1221f1 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c | |||
@@ -30,6 +30,12 @@ struct drm_dmi_panel_orientation_data { | |||
30 | int orientation; | 30 | int orientation; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | static const struct drm_dmi_panel_orientation_data acer_s1003 = { | ||
34 | .width = 800, | ||
35 | .height = 1280, | ||
36 | .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, | ||
37 | }; | ||
38 | |||
33 | static const struct drm_dmi_panel_orientation_data asus_t100ha = { | 39 | static const struct drm_dmi_panel_orientation_data asus_t100ha = { |
34 | .width = 800, | 40 | .width = 800, |
35 | .height = 1280, | 41 | .height = 1280, |
@@ -67,7 +73,13 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = { | |||
67 | }; | 73 | }; |
68 | 74 | ||
69 | static const struct dmi_system_id orientation_data[] = { | 75 | static const struct dmi_system_id orientation_data[] = { |
70 | { /* Asus T100HA */ | 76 | { /* Acer One 10 (S1003) */ |
77 | .matches = { | ||
78 | DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
79 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"), | ||
80 | }, | ||
81 | .driver_data = (void *)&acer_s1003, | ||
82 | }, { /* Asus T100HA */ | ||
71 | .matches = { | 83 | .matches = { |
72 | DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), | 84 | DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), |
73 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"), | 85 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"), |