xref: /linux/drivers/gpu/drm/i915/display/intel_quirks.h (revision 1a371190a375f98c9b106f758ea41558c3f92556)
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 };
24 
25 void intel_init_quirks(struct intel_display *display);
26 void intel_init_dpcd_quirks(struct intel_dp *intel_dp,
27 			    const struct drm_dp_dpcd_ident *ident);
28 bool intel_has_quirk(struct intel_display *display, enum intel_quirk_id quirk);
29 bool intel_has_dpcd_quirk(struct intel_dp *intel_dp, enum intel_quirk_id quirk);
30 
31 #endif /* __INTEL_QUIRKS_H__ */
32