Lines Matching +full:orientation +full:- +full:switch

1 /* SPDX-License-Identifier: MIT */
3 * drm_panel_orientation_quirks.c -- Quirks for non-normal panel orientation
30 int orientation; member
38 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
46 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
54 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
62 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
71 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
79 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
86 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
93 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
99 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
105 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
111 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
117 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
123 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
129 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
135 .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
141 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
151 }, { /* Acer Switch V 10 (SW5-017) */
154 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "SW5-017"),
203 /* Above matches are too generic, add bios-date match */
236 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1619-01"),
241 * it seems, devices with a board-vendor of "AMI Corporation"
242 * are quite rare, as are devices which have both board- *and*
243 * product-id set to "Default String"
279 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1618-03")
290 }, { /* KD Kurio Smart C15200 2-in-1 */
305 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
312 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
315 }, { /* Lenovo Ideapad D330-10IGM (HD) */
318 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
321 }, { /* Lenovo Ideapad D330-10IGM (FHD) */
324 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
327 }, { /* Lenovo Ideapad D330-10IGL (HD) */
330 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGL"),
349 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
355 DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
368 DMI_MATCH(DMI_BOARD_NAME, "BYT-T FFD8"),
377 DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"),
380 }, { /* Nanote UMPC-01 */
383 DMI_MATCH(DMI_PRODUCT_NAME, "UMPC-01"),
395 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."),
431 * drm_get_panel_orientation_quirk - Check for panel orientation quirks
437 * probed from the hard-/firm-ware. To avoid false-positive this function
439 * resolution expected by the quirk-table entry.
441 * Note this function is also used outside of the drm-subsys, by for example
443 * kernel-module when built as a module.
459 data = match->driver_data; in drm_get_panel_orientation_quirk()
461 if (data->width != width || in drm_get_panel_orientation_quirk()
462 data->height != height) in drm_get_panel_orientation_quirk()
465 if (!data->bios_dates) in drm_get_panel_orientation_quirk()
466 return data->orientation; in drm_get_panel_orientation_quirk()
472 i = match_string(data->bios_dates, -1, bios_date); in drm_get_panel_orientation_quirk()
474 return data->orientation; in drm_get_panel_orientation_quirk()