2 * Copyright (C) 2013 NVIDIA Corporation
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.
9 #ifndef DRM_TEGRA_MIPI_PHY_H
10 #define DRM_TEGRA_MIPI_PHY_H
13 * D-PHY timing parameters
15 * A detailed description of these parameters can be found in the MIPI
16 * Alliance Specification for D-PHY, Section 5.9 "Global Operation Timing
19 * All parameters are specified in nanoseconds.
21 struct mipi_dphy_timing {
25 unsigned int clkprepare;
26 unsigned int clksettle;
27 unsigned int clktermen;
28 unsigned int clktrail;
33 unsigned int hsprepare;
35 unsigned int hssettle;
46 int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
47 unsigned long period);
48 int mipi_dphy_timing_validate(struct mipi_dphy_timing *timing,
49 unsigned long period);