aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-10-17 22:04:41 -0400
committerDave Airlie <airlied@redhat.com>2018-10-17 22:04:47 -0400
commit28b32b9f61fe73e7625ed30c35afd6d8a0ed2b6e (patch)
treed58dd9516cb6a09cc126656305e6260033475c5f
parentca4b869240d5810ebac6b1570ad7beffcfbac2f5 (diff)
parent0e8afefd5da4875ddea9aa4ad17a2540a2bf9736 (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.c14
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
33static 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
33static const struct drm_dmi_panel_orientation_data asus_t100ha = { 39static 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
69static const struct dmi_system_id orientation_data[] = { 75static 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"),