Loading...
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
9#ifndef DRM_TEGRA_MIPI_PHY_H
10#define DRM_TEGRA_MIPI_PHY_H
11
12/*
13 * D-PHY timing parameters
14 *
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
17 * Parameters".
18 *
19 * All parameters are specified in nanoseconds.
20 */
21struct mipi_dphy_timing {
22 unsigned int clkmiss;
23 unsigned int clkpost;
24 unsigned int clkpre;
25 unsigned int clkprepare;
26 unsigned int clksettle;
27 unsigned int clktermen;
28 unsigned int clktrail;
29 unsigned int clkzero;
30 unsigned int dtermen;
31 unsigned int eot;
32 unsigned int hsexit;
33 unsigned int hsprepare;
34 unsigned int hszero;
35 unsigned int hssettle;
36 unsigned int hsskip;
37 unsigned int hstrail;
38 unsigned int init;
39 unsigned int lpx;
40 unsigned int taget;
41 unsigned int tago;
42 unsigned int tasure;
43 unsigned int wakeup;
44};
45
46int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
47 unsigned long period);
48int mipi_dphy_timing_validate(struct mipi_dphy_timing *timing,
49 unsigned long period);
50
51#endif
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2013 NVIDIA Corporation
4 */
5
6#ifndef DRM_TEGRA_MIPI_PHY_H
7#define DRM_TEGRA_MIPI_PHY_H
8
9/*
10 * D-PHY timing parameters
11 *
12 * A detailed description of these parameters can be found in the MIPI
13 * Alliance Specification for D-PHY, Section 5.9 "Global Operation Timing
14 * Parameters".
15 *
16 * All parameters are specified in nanoseconds.
17 */
18struct mipi_dphy_timing {
19 unsigned int clkmiss;
20 unsigned int clkpost;
21 unsigned int clkpre;
22 unsigned int clkprepare;
23 unsigned int clksettle;
24 unsigned int clktermen;
25 unsigned int clktrail;
26 unsigned int clkzero;
27 unsigned int dtermen;
28 unsigned int eot;
29 unsigned int hsexit;
30 unsigned int hsprepare;
31 unsigned int hszero;
32 unsigned int hssettle;
33 unsigned int hsskip;
34 unsigned int hstrail;
35 unsigned int init;
36 unsigned int lpx;
37 unsigned int taget;
38 unsigned int tago;
39 unsigned int tasure;
40 unsigned int wakeup;
41};
42
43int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
44 unsigned long period);
45int mipi_dphy_timing_validate(struct mipi_dphy_timing *timing,
46 unsigned long period);
47
48#endif