drm/msm/dpu: simplify DPU_SSPP features checks
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 1 Dec 2021 22:51:39 +0000 (01:51 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 7 Dec 2021 23:51:08 +0000 (02:51 +0300)
commit1e35e3fc3f714045078a6b4fcb4f0fe61df9e328
tree14af86a1c49b80fea87a8d4c8a62266a7d58db56
parenta67f2cc6f912dd8f8128bf4193e25c10b7ae64b8
drm/msm/dpu: simplify DPU_SSPP features checks

Add DPU_SSPP_CSC_ANY denoting any CSC block. As we are at it, rewrite
DPU_SSPP_SCALER (any scaler) to use BIT(x) instead of hand-coded
bitshifts.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Link: https://lore.kernel.org/r/20211201225140.2481577-4-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c