1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * TI OMAP3 ISP - CSI PHY module
7 * Copyright (C) 2010 Nokia Corporation
8 * Copyright (C) 2009 Texas Instruments, Inc.
10 * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11 * Sakari Ailus <sakari.ailus@iki.fi>
14 #ifndef OMAP3_ISP_CSI_PHY_H
15 #define OMAP3_ISP_CSI_PHY_H
19 struct isp_csi2_device
;
23 struct isp_device
*isp
;
24 struct mutex mutex
; /* serialize csiphy configuration */
25 struct isp_csi2_device
*csi2
;
26 struct regulator
*vdd
;
27 /* the entity that acquired the phy */
28 struct media_entity
*entity
;
30 /* mem resources - enums as defined in enum isp_mem_resources */
31 unsigned int cfg_regs
;
32 unsigned int phy_regs
;
34 u8 num_data_lanes
; /* number of CSI2 Data Lanes supported */
37 int omap3isp_csiphy_acquire(struct isp_csiphy
*phy
,
38 struct media_entity
*entity
);
39 void omap3isp_csiphy_release(struct isp_csiphy
*phy
);
40 int omap3isp_csiphy_init(struct isp_device
*isp
);
41 void omap3isp_csiphy_cleanup(struct isp_device
*isp
);
43 #endif /* OMAP3_ISP_CSI_PHY_H */