xref: /linux/include/media/cadence/cdns-csi2rx.h (revision 07fdad3a93756b872da7b53647715c48d0f4a2d0)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 #ifndef _CDNS_CSI2RX_H
3 #define _CDNS_CSI2RX_H
4 
5 #include <media/v4l2-subdev.h>
6 
7 /**
8  * cdns_csi2rx_negotiate_ppc - Negotiate pixel-per-clock on output interface
9  *
10  * @subdev: point to &struct v4l2_subdev
11  * @pad: pad number of the source pad
12  * @ppc: pointer to requested pixel-per-clock value
13  *
14  * Returns 0 on success, negative error code otherwise.
15  */
16 int cdns_csi2rx_negotiate_ppc(struct v4l2_subdev *subdev, unsigned int pad,
17 			      u8 *ppc);
18 
19 #endif
20