From 93aa675d04cef24ef3c0dbc84ac734fbf9ddc245 Mon Sep 17 00:00:00 2001 From: ChiHun Won Date: Sat, 9 Jun 2018 10:47:43 +0900 Subject: [PATCH] [9610] fbdev: dpu20: add win config global wise HW constraint check Change-Id: I4baa8b450c01699952b63fd23947240de67d80b2 Signed-off-by: ChiHun Won --- .../video/fbdev/exynos/dpu20/cal_9610/decon_cal.h | 6 ++++++ .../video/fbdev/exynos/dpu20/cal_9610/decon_reg.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) 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 f46bdf7c098f..6559d20dabfa 100644 --- a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h +++ b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_cal.h @@ -299,6 +299,12 @@ void decon_reg_set_start_crc(u32 id, u32 en); void decon_reg_set_select_crc_bits(u32 id, u32 bit_sel); void decon_reg_get_crc_data(u32 id, u32 *w0_data, u32 *w1_data); +/* DPU hw limitation check */ +struct decon_device; +struct decon_win_config; +int decon_check_global_limitation(struct decon_device *decon, + struct decon_win_config *config); + /* TODO: this will be removed later */ void decon_reg_update_req_global(u32 id); /*********************************************************************/ 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 3d1061f0cadb..34f9f2bf2d7a 100644 --- a/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c +++ b/drivers/video/fbdev/exynos/dpu20/cal_9610/decon_reg.c @@ -2257,3 +2257,15 @@ void __decon_dump(u32 id, void __iomem *regs, void __iomem *base_regs, bool dsc_ } } +/* Ramen (9610) chip dependent HW limitation + * : returns 0 if no error + * : otherwise returns -EPERM for HW-wise not permitted + */ +int decon_check_global_limitation(struct decon_device *decon, + struct decon_win_config *config) +{ + int ret = 0; + + return ret; +} + -- 2.20.1