xref: /linux/drivers/gpu/drm/i915/display/intel_quirks.h (revision fbf5df34a4dbcd09d433dd4f0916bf9b2ddb16de)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_QUIRKS_H__
7 #define __INTEL_QUIRKS_H__
8 
9 #include <linux/types.h>
10 
11 struct intel_display;
12 struct intel_dp;
13 struct drm_dp_dpcd_ident;
14 
15 enum intel_quirk_id {
16 	QUIRK_BACKLIGHT_PRESENT,
17 	QUIRK_INCREASE_DDI_DISABLED_TIME,
18 	QUIRK_INCREASE_T12_DELAY,
19 	QUIRK_INVERT_BRIGHTNESS,
20 	QUIRK_LVDS_SSC_DISABLE,
21 	QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK,
22 	QUIRK_FW_SYNC_LEN,
23 	QUIRK_EDP_LIMIT_RATE_HBR2,
24 	QUIRK_DISABLE_EDP_PANEL_REPLAY,
25 };
26 
27 void intel_init_quirks(struct intel_display *display);
28 void intel_init_dpcd_quirks(struct intel_dp *intel_dp,
29 			    const struct drm_dp_dpcd_ident *ident);
30 bool intel_has_quirk(struct intel_display *display, enum intel_quirk_id quirk);
31 bool intel_has_dpcd_quirk(struct intel_dp *intel_dp, enum intel_quirk_id quirk);
32 
33 #endif /* __INTEL_QUIRKS_H__ */
34