4 * TI OMAP3 ISP - CCP2 module
6 * Copyright (C) 2010 Nokia Corporation
7 * Copyright (C) 2010 Texas Instruments, Inc.
9 * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
10 * Sakari Ailus <sakari.ailus@iki.fi>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
17 #ifndef OMAP3_ISP_CCP2_H
18 #define OMAP3_ISP_CCP2_H
20 #include <linux/videodev2.h>
25 /* Sink and source ccp2 pads */
26 #define CCP2_PAD_SINK 0
27 #define CCP2_PAD_SOURCE 1
28 #define CCP2_PADS_NUM 2
30 /* CCP2 input media entity */
31 enum ccp2_input_entity
{
37 /* CCP2 output media entity */
38 enum ccp2_output_entity
{
45 /* Logical channel configuration */
46 struct isp_interface_lcx_config
{
53 /* Memory channel configuration */
54 struct isp_interface_mem_config
{
63 struct isp_ccp2_device
{
64 struct v4l2_subdev subdev
;
65 struct v4l2_mbus_framefmt formats
[CCP2_PADS_NUM
];
66 struct media_pad pads
[CCP2_PADS_NUM
];
68 enum ccp2_input_entity input
;
69 enum ccp2_output_entity output
;
70 struct isp_interface_lcx_config if_cfg
;
71 struct isp_interface_mem_config mem_cfg
;
72 struct isp_video video_in
;
73 struct isp_csiphy
*phy
;
74 struct regulator
*vdds_csib
;
75 enum isp_pipeline_stream_state state
;
76 wait_queue_head_t wait
;
80 /* Function declarations */
81 int omap3isp_ccp2_init(struct isp_device
*isp
);
82 void omap3isp_ccp2_cleanup(struct isp_device
*isp
);
83 int omap3isp_ccp2_register_entities(struct isp_ccp2_device
*ccp2
,
84 struct v4l2_device
*vdev
);
85 void omap3isp_ccp2_unregister_entities(struct isp_ccp2_device
*ccp2
);
86 void omap3isp_ccp2_isr(struct isp_ccp2_device
*ccp2
);
88 #endif /* OMAP3_ISP_CCP2_H */