From: hwangjae lee Date: Thu, 21 Jun 2018 06:39:33 +0000 (+0900) Subject: fbdev: dpu: decon_reg_all_win_shadow_update_req() is added X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b9e1fe19d30f2df0a5aecd82ebaae5f0a090bc6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu: decon_reg_all_win_shadow_update_req() is added Change-Id: I7da5238360be2618c8a5e1ceeeb52a148ff76bef Signed-off-by: hwangjae lee --- diff --git a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h index a2ae8a51fff1..53a918657825 100644 --- a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h +++ b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h @@ -262,7 +262,9 @@ int decon_reg_stop(u32 id, u32 dsi_idx, struct decon_mode_info *psr, bool rst, u32 fps); /* DECON window control */ +void decon_reg_set_win_enable(u32 id, u32 win_idx, u32 en); void decon_reg_win_enable_and_update(u32 id, u32 win_idx, u32 en); +void decon_reg_all_win_shadow_update_req(u32 id); void decon_reg_set_window_control(u32 id, int win_idx, struct decon_window_regs *regs, u32 winmap_en); void decon_reg_update_req_window_mask(u32 id, u32 win_idx); diff --git a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c index e23988fec6e2..f6b251803ea4 100644 --- a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c +++ b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c @@ -1556,7 +1556,7 @@ static int decon_reg_stop_inst(u32 id, u32 dsi_idx, struct decon_mode_info *psr, } -static void decon_reg_set_win_enable(u32 id, u32 win_idx, u32 en) +void decon_reg_set_win_enable(u32 id, u32 win_idx, u32 en) { u32 val, mask; @@ -1844,6 +1844,15 @@ void decon_reg_win_enable_and_update(u32 id, u32 win_idx, u32 en) decon_reg_update_req_window(id, win_idx); } +void decon_reg_all_win_shadow_update_req(u32 id) +{ + u32 mask; + + mask = SHADOW_REG_UPDATE_REQ_FOR_DECON; + + decon_write_mask(id, SHADOW_REG_UPDATE_REQ, ~0, mask); +} + void decon_reg_set_window_control(u32 id, int win_idx, struct decon_window_regs *regs, u32 winmap_en) { @@ -1860,7 +1869,7 @@ void decon_reg_set_window_control(u32 id, int win_idx, } decon_reg_config_win_channel(id, win_idx, regs->type); - decon_reg_win_enable_and_update(id, win_idx, win_en); + decon_reg_set_win_enable(id, win_idx, win_en); decon_dbg("%s: regs->type(%d)\n", __func__, regs->type); }