upstream: [media] v4l: ti-vpe: create a color space converter block library
authorArchit Taneja <archit@ti.com>
Thu, 12 Dec 2013 08:36:01 +0000 (05:36 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:52 +0000 (14:26 +0900)
commit7cde3f87ed66adcd9a4b3f8e4e6d2117319e8c96
tree4baad7f5344480cc6dd0cf52fecca51a958be6b0
parentff5d93ead0c82fcf8d853d793e1a780b230a6a68
upstream: [media] v4l: ti-vpe: create a color space converter block library

VPE and VIP IPs in DAR7x contain a color space converter(CSC) sub block. Create
a library which will perform CSC related configurations and hold CSC register
definitions. The functions provided by this library will be called by the vpe
and vip drivers using a csc_data handle.

The vpe_dev holds the csc_data handle. The handle represents an instance of the
CSC hardware, and the vpe driver uses it to access the CSC register offsets or
helper functions to configure these registers.

The CSC register offsets are now relative to the CSC block itself, so we need
to use the macro GET_OFFSET_TOP to get the CSC register offset relative to the
VPE IP in the vpe driver.

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>
drivers/media/platform/ti-vpe/Makefile
drivers/media/platform/ti-vpe/csc.c [new file with mode: 0644]
drivers/media/platform/ti-vpe/csc.h [new file with mode: 0644]
drivers/media/platform/ti-vpe/vpe.c
drivers/media/platform/ti-vpe/vpe_regs.h