MLK-17368-3: drm: imx: dcss: Add support for tiled formats
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 12 Jan 2018 13:18:51 +0000 (15:18 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:54 +0000 (14:52 -0500)
commitcb64fe271142ecf4a6690ec413c559126bf653a1
treef58998c0d0e372c3caa48960e607bce01ce769f7
parent8d939b9d70e5d993b07bc41884926bc0ee9a04ce
MLK-17368-3: drm: imx: dcss: Add support for tiled formats

This patch effectively enables DTRC module in DCSS to decode tiled
formats from VPU:
 * uncompressed G1;
 * uncompressed G2;
 * compressed G2;

Compressed G2 formats need to pass on the decompression table offsets,
by using the 'dtrc_dec_ofs' property. This is a 64 bit value like below:

64--------48----------32---------16---------0
|<- chroma table ofs ->|<- luma table ofs ->|

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c
drivers/gpu/drm/imx/dcss/dcss-plane.c
drivers/gpu/drm/imx/dcss/dcss-plane.h
drivers/gpu/imx/dcss/dcss-ctxld.c
drivers/gpu/imx/dcss/dcss-dpr.c
drivers/gpu/imx/dcss/dcss-dtrc.c
drivers/gpu/imx/dcss/dcss-prv.h
include/video/imx-dcss.h