ispcsiphy.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * ispcsiphy.h
  3. *
  4. * TI OMAP3 ISP - CSI PHY module
  5. *
  6. * Copyright (C) 2010 Nokia Corporation
  7. * Copyright (C) 2009 Texas Instruments, Inc.
  8. *
  9. * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  10. * Sakari Ailus <sakari.ailus@iki.fi>
  11. *
  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.
  15. */
  16. #ifndef OMAP3_ISP_CSI_PHY_H
  17. #define OMAP3_ISP_CSI_PHY_H
  18. #include "omap3isp.h"
  19. struct isp_csi2_device;
  20. struct regulator;
  21. struct isp_csiphy {
  22. struct isp_device *isp;
  23. struct mutex mutex; /* serialize csiphy configuration */
  24. u8 phy_in_use;
  25. struct isp_csi2_device *csi2;
  26. struct regulator *vdd;
  27. /* mem resources - enums as defined in enum isp_mem_resources */
  28. unsigned int cfg_regs;
  29. unsigned int phy_regs;
  30. u8 num_data_lanes; /* number of CSI2 Data Lanes supported */
  31. };
  32. int omap3isp_csiphy_acquire(struct isp_csiphy *phy);
  33. void omap3isp_csiphy_release(struct isp_csiphy *phy);
  34. int omap3isp_csiphy_init(struct isp_device *isp);
  35. #endif /* OMAP3_ISP_CSI_PHY_H */