summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/ti-vpe/Makefile
diff options
context:
space:
mode:
authorArchit Taneja2013-12-12 09:35:57 +0100
committerMauro Carvalho Chehab2014-01-07 09:53:21 +0100
commit44687b2e81165164d3b921e383592cc0f5e062a0 (patch)
tree0a20f95197f01bd6f3a3968bebbce77519ac6fdf /drivers/media/platform/ti-vpe/Makefile
parent[media] v4l2: move tracepoints to video_usercopy (diff)
downloadkernel-qcow2-linux-44687b2e81165164d3b921e383592cc0f5e062a0.tar.gz
kernel-qcow2-linux-44687b2e81165164d3b921e383592cc0f5e062a0.tar.xz
kernel-qcow2-linux-44687b2e81165164d3b921e383592cc0f5e062a0.zip
[media] v4l: ti-vpe: create a scaler block library
VPE and VIP IPs in DAR7x contain a scaler(SC) sub block. Create a library which will perform scaler block related configurations and hold SC register definitions. The functions provided by this library will be called by the vpe and vip drivers using a sc_data handle. The vpe_dev holds the sc_data handle. The handle represents an instance of the SC hardware, and the vpe driver uses it to access the scaler register offsets or helper functions to configure these registers. We move the SC register definitions to sc.h so that they aren't specific to VPE anymore. The register offsets are now relative to the sub-block, and not the VPE IP as a whole. In order for VPDMA to configure registers, it requires it's offset from the top level VPE module. A macro called GET_OFFSET_TOP is added to return the offset of the register relative to the VPE IP. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/ti-vpe/Makefile')
-rw-r--r--drivers/media/platform/ti-vpe/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/Makefile b/drivers/media/platform/ti-vpe/Makefile
index cbf0a806ba1d..54c30b31c4cb 100644
--- a/drivers/media/platform/ti-vpe/Makefile
+++ b/drivers/media/platform/ti-vpe/Makefile
@@ -1,5 +1,5 @@
obj-$(CONFIG_VIDEO_TI_VPE) += ti-vpe.o
-ti-vpe-y := vpe.o vpdma.o
+ti-vpe-y := vpe.o sc.o vpdma.o
ccflags-$(CONFIG_VIDEO_TI_VPE_DEBUG) += -DDEBUG