summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc/s5p_mfc.c
diff options
context:
space:
mode:
authorKiran AVND2014-05-19 14:33:05 +0200
committerMauro Carvalho Chehab2014-05-23 20:30:38 +0200
commit6a9c6f681257985468e4835bf9f911ec56482f02 (patch)
treea4a56ee741e6e4e77715f97e579620e36778af10 /drivers/media/platform/s5p-mfc/s5p_mfc.c
parent[media] s5p-mfc: Move INIT_BUFFER_OPTIONS from v7 to v6 (diff)
downloadkernel-qcow2-linux-6a9c6f681257985468e4835bf9f911ec56482f02.tar.gz
kernel-qcow2-linux-6a9c6f681257985468e4835bf9f911ec56482f02.tar.xz
kernel-qcow2-linux-6a9c6f681257985468e4835bf9f911ec56482f02.zip
[media] s5p-mfc: Add variants to access mfc registers
This patch is needed in preparation to add MFC V8 where the register offsets are changed w.r.t MFC V6/V7. This patch adds variants of MFC V6 and V7 while accessing MFC registers. Registers are kept in mfc context and are initialized to a particular MFC variant during probe, which is used instead of macros. This avoids duplication of the code for MFC variants V6 & V7, and reduces the if_else checks while accessing registers of different MFC variants. Signed-off-by: Kiran AVND <avnd.kiran@samsung.com> Signed-off-by: Pawel Osciak <posciak@chromium.org> Signed-off-by: Arun Kumar K <arun.kk@samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc/s5p_mfc.c')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 297d6819741e..2ab90dda1629 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -1193,6 +1193,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
/* Initialize HW ops and commands based on MFC version */
s5p_mfc_init_hw_ops(dev);
s5p_mfc_init_hw_cmds(dev);
+ s5p_mfc_init_regs(dev);
pr_debug("%s--\n", __func__);
return 0;