media: v4l: vsp1: Fix video output on R8A77970
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 18 Jan 2018 14:05:51 +0000 (09:05 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 15:27:28 +0000 (10:27 -0500)
commit7f43ff953f4009655a8b19a6f2fd1f665f4d7c2e
tree0833cefc04a9d823e72bf5a8406c9a824ba7abb8
parent06227008670afddd5eb66cc6a85c27fd5e72f41e
media: v4l: vsp1: Fix video output on R8A77970

Commit d455b45f8393 ("v4l: vsp1: Add support for new VSP2-BS, VSP2-DL,
and VSP2-D instances") added support for the VSP2-D found in the R-Car
V3M (R8A77970) but the video output that VSP2-D sends to DU has a greenish
garbage-like line repeated every 8 screen rows. It turns out that R-Car
V3M has the LIF0 buffer attribute register that you need to set to a non-
default value in order to get rid of the output artifacts.

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Fixes: d455b45f8393 ("v4l: vsp1: Add support for new VSP2-BS, VSP2-DL and VSP2-D instances")
[Removed braces, added VI6_IP_VERSION_MASK to improve readabiliy]

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_lif.c
drivers/media/platform/vsp1/vsp1_regs.h