mipi-phy.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2013 NVIDIA Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef DRM_TEGRA_MIPI_PHY_H
  9. #define DRM_TEGRA_MIPI_PHY_H
  10. /*
  11. * D-PHY timing parameters
  12. *
  13. * A detailed description of these parameters can be found in the MIPI
  14. * Alliance Specification for D-PHY, Section 5.9 "Global Operation Timing
  15. * Parameters".
  16. *
  17. * All parameters are specified in nanoseconds.
  18. */
  19. struct mipi_dphy_timing {
  20. unsigned int clkmiss;
  21. unsigned int clkpost;
  22. unsigned int clkpre;
  23. unsigned int clkprepare;
  24. unsigned int clksettle;
  25. unsigned int clktermen;
  26. unsigned int clktrail;
  27. unsigned int clkzero;
  28. unsigned int dtermen;
  29. unsigned int eot;
  30. unsigned int hsexit;
  31. unsigned int hsprepare;
  32. unsigned int hszero;
  33. unsigned int hssettle;
  34. unsigned int hsskip;
  35. unsigned int hstrail;
  36. unsigned int init;
  37. unsigned int lpx;
  38. unsigned int taget;
  39. unsigned int tago;
  40. unsigned int tasure;
  41. unsigned int wakeup;
  42. };
  43. int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
  44. unsigned long period);
  45. int mipi_dphy_timing_validate(struct mipi_dphy_timing *timing,
  46. unsigned long period);
  47. #endif