disp: msm: sde: demura backlight adaptation change

Demura backlight value will be updated based on the backlight event
in the driver. Make HFC gains programmable based on backlight value.

Signed-off-by: Mitika Dodiya <quic_mdodiya@quicinc.com>
Change-Id: I74e9aa2c274eedb473095c5eafef194d6a6f1d94
This commit is contained in:
Mitika Dodiya
2023-03-15 13:06:25 +05:30
committed by Gerrit - the friendly Code Review server
szülő 68e4c1a426
commit b573201f7c
9 fájl változott, egészen pontosan 182 új sor hozzáadva és 98 régi sor törölve

Fájl megtekintése

@@ -377,6 +377,9 @@ enum sde_crtc_hw_fence_flags {
* used to slow-down creation of output hw-fences for debugging purposes.
* @input_fence_status : input fence status, negative if the fence has been completed with error.
* @hanle_fence_error_bw_update: bool to indicate if it is fence error and need to avoid bw vote.
* @back_light: backlight value
* @back_light_max: max backlight value
* @back_light_pending: flag to indicate if backlight update is pending
*/
struct sde_crtc {
struct drm_crtc base;
@@ -493,6 +496,10 @@ struct sde_crtc {
u32 hwfence_out_fences_skip;
int input_fence_status;
bool handle_fence_error_bw_update;
u32 back_light;
u32 back_light_max;
u32 back_light_pending;
};
enum sde_crtc_dirty_flags {
@@ -1201,4 +1208,12 @@ bool sde_crtc_is_line_insertion_supported(struct drm_crtc *crtc);
void sde_crtc_calc_vpadding_param(struct drm_crtc_state *state, u32 crtc_y, u32 crtc_h,
u32 *padding_y, u32 *padding_start, u32 *padding_height);
/**
* sde_crtc_backlight_notify - notify backlight
* @crtc: Pointer to drm_crtc.
* @bl_val: Backlight value.
* @bl_max: Max backlight value.
*/
void sde_crtc_backlight_notify(struct drm_crtc *crtc, u32 bl_val, u32 bl_max);
#endif /* _SDE_CRTC_H_ */