drm: xilinx: plane: Fix the definition of xilinx_drm_plane_check_format()

Fix the wrong prototype definition of xilinx_drm_plane_check_format()
function.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: drv: Add bpp to xilinx_video_format_desc

Add bpp(bits per pixel) information to xilinx_video_format_desc.
This information can be used when an initial framebuffer is created.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: drv: Add xilinx_drm_format_bpp()

Add xilinx_drm_format_bpp() which returns bpp of the given format.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Change the default format of plane

When there's no IP other than VDMA, the format needs to be YUV422
since the current encoder's default format is set to YUV422 format.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Propagate the manager's format when no plane format is found

Propate the manager's format to the plane when no plane format is found.
This happens when there's no format conversion IPs in the pipeline,
and the plane needs to be set to the manager's format.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Add xilinx_drm_plane_get_format()

Add xilinx_drm_plane_get_format(). This functions returns the format of given
plane.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: crtc: Add xilinx_drm_crtc_get_format()

Add xilinx_drm_crtc_get_format() which returns the format of
the CRTC(private plane).

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: drv: Use the returned bpp to initialize the cma fbdev

The bits per pixel  information is returned by crtc, and it is used to
initialize the cma fbdev and allocate the framebuffer in right format.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: Removed unnecessary cache flush/invalidate operations

This improves the performance of the APF DMA

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>