hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2019 Cadence Design Systems Inc.
 */
 
#ifndef __PHY_DP_H_
#define __PHY_DP_H_
 
/**
 * struct phy_configure_opts_dp - DisplayPort PHY configuration set
 *
 * This structure is used to represent the configuration state of a
 * DisplayPort phy.
 */
struct phy_configure_opts_dp {
   /**
    * @link_rate:
    *
    * Link Rate, in Mb/s, of the main link.
    *
    * Allowed values: 1620, 2160, 2430, 2700, 3240, 4320, 5400, 8100 Mb/s
    */
   unsigned int link_rate;
 
   /**
    * @lanes:
    *
    * Number of active, consecutive, data lanes, starting from
    * lane 0, used for the transmissions on main link.
    *
    * Allowed values: 1, 2, 4
    */
   unsigned int lanes;
 
   /**
    * @voltage:
    *
    * Voltage swing levels, as specified by DisplayPort specification,
    * to be used by particular lanes. One value per lane.
    * voltage[0] is for lane 0, voltage[1] is for lane 1, etc.
    *
    * Maximum value: 3
    */
   unsigned int voltage[4];
 
   /**
    * @pre:
    *
    * Pre-emphasis levels, as specified by DisplayPort specification, to be
    * used by particular lanes. One value per lane.
    *
    * Maximum value: 3
    */
   unsigned int pre[4];
 
   /**
    * @ssc:
    *
    * Flag indicating, whether or not to enable spread-spectrum clocking.
    *
    */
   u8 ssc : 1;
 
   /**
    * @set_rate:
    *
    * Flag indicating, whether or not reconfigure link rate and SSC to
    * requested values.
    *
    */
   u8 set_rate : 1;
 
   /**
    * @set_lanes:
    *
    * Flag indicating, whether or not reconfigure lane count to
    * requested value.
    *
    */
   u8 set_lanes : 1;
 
   /**
    * @set_voltages:
    *
    * Flag indicating, whether or not reconfigure voltage swing
    * and pre-emphasis to requested values. Only lanes specified
    * by "lanes" parameter will be affected.
    *
    */
   u8 set_voltages : 1;
};
 
#endif /* __PHY_DP_H_ */