修订版 | 47aca0df8ca1f3e189be6656f2c0596c2359e7e5 (tree) |
---|---|
时间 | 2019-03-27 17:51:46 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
drm: panel-orientation-quirks: Add quirk for Microtech e-tab Pro
The tablet uses a portrait screen rotated 90 degrees (ugly).
Add a quirk to fix it.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
@@ -80,6 +80,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = { | ||
80 | 80 | .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, |
81 | 81 | }; |
82 | 82 | |
83 | +static const struct drm_dmi_panel_orientation_data etabpro_2018 = { | |
84 | + .width = 1200, | |
85 | + .height = 1920, | |
86 | + .orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP, | |
87 | +}; | |
88 | + | |
83 | 89 | static const struct dmi_system_id orientation_data[] = { |
84 | 90 | { /* Acer One 10 (S1003) */ |
85 | 91 | .matches = { |
@@ -154,6 +160,12 @@ static const struct dmi_system_id orientation_data[] = { | ||
154 | 160 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"), |
155 | 161 | }, |
156 | 162 | .driver_data = (void *)&lcd800x1280_rightside_up, |
163 | + }, { /* Microtech e-tab Pro */ | |
164 | + .matches = { | |
165 | + DMI_MATCH(DMI_SYS_VENDOR, "Microtech"), | |
166 | + DMI_MATCH(DMI_PRODUCT_NAME, "e-tab Pro") | |
167 | + }, | |
168 | + .driver_data = (void *)&etabpro_2018, | |
157 | 169 | }, |
158 | 170 | {} |
159 | 171 | }; |