MLK-15110-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_set_burstlength()
authorLiu Ying <victor.liu@nxp.com>
Mon, 7 Aug 2017 05:19:35 +0000 (13:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:51 +0000 (14:50 -0500)
commit279f9b931adc3d99886e1ec9442139cf96cbb4d3
tree1d1cdc0ba619ad29c041c2211a632077adff09f5
parent32b73fa71cadaa29671ba33fb0f62d83c2bb1cb4
MLK-15110-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_set_burstlength()

This patch adds helper fetchdecode_set_burstlength() so that
the burst length of fetchdecode can be set to appropriate value.
When we don't use prefetch engine, the burst length is set to
the maximal value - 16.  When we use prefetch engine, the burst
length should make the buffer base address align to burst size
but not greater than 16.  This alignment operation can address
the issue recorded by TKT343664.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/imx/dpu/dpu-fetchdecode.c
drivers/gpu/imx/dpu/dpu-prv.h
include/video/dpu.h