Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / platform / omap3isp / ispcsiphy.h
blobed9b8d221e3f58e4c78f646f41e4c4467758053a
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * ispcsiphy.h
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
17 #include "omap3isp.h"
19 struct isp_csi2_device;
20 struct regulator;
22 struct isp_csiphy {
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 */