From 2d71a9989ac3a14c8f3426a812089f39e91eada4 Mon Sep 17 00:00:00 2001 From: Yong Gan Date: Sat, 30 Jun 2018 07:15:19 +0800 Subject: MGS-3560-1 [#imx-913] Enable DRM compression for mscale board Addd the API dcss_dec400d_fast_clear_config. Date: June 29, 2018 Signed-off-by: Yong Gan (cherry picked from commit 508110b51b9d9186ebb85d2d7bcaae415e2476f6) --- drivers/gpu/imx/dcss/dcss-dec400d.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/imx') diff --git a/drivers/gpu/imx/dcss/dcss-dec400d.c b/drivers/gpu/imx/dcss/dcss-dec400d.c index 9318e11f2595..24fa04461407 100644 --- a/drivers/gpu/imx/dcss/dcss-dec400d.c +++ b/drivers/gpu/imx/dcss/dcss-dec400d.c @@ -289,6 +289,16 @@ config: } EXPORT_SYMBOL(dcss_dec400d_read_config); +void dcss_dec400d_fast_clear_config(struct dcss_soc *dcss, + uint32_t fc_value, + bool enable) +{ + struct dcss_dec400d_priv *dec400d = dcss->dec400d_priv; + + dcss_dec400d_write(dec400d, fc_value, DEC400D_CLEAR); +} +EXPORT_SYMBOL(dcss_dec400d_fast_clear_config); + void dcss_dec400d_enable(struct dcss_soc *dcss) { uint32_t control; -- cgit v1.2.3