hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/phy/phy-mipi-dphy.h
....@@ -6,8 +6,6 @@
66 #ifndef __PHY_MIPI_DPHY_H_
77 #define __PHY_MIPI_DPHY_H_
88
9
-#include <video/videomode.h>
10
-
119 /**
1210 * struct phy_configure_opts_mipi_dphy - MIPI D-PHY configuration set
1311 *
....@@ -192,10 +190,10 @@
192190 /**
193191 * @init:
194192 *
195
- * Time, in picoseconds for the initialization period to
193
+ * Time, in microseconds for the initialization period to
196194 * complete.
197195 *
198
- * Minimum value: 100000000 ps
196
+ * Minimum value: 100 us
199197 */
200198 unsigned int init;
201199
....@@ -246,11 +244,11 @@
246244 /**
247245 * @wakeup:
248246 *
249
- * Time, in picoseconds, that a transmitter drives a Mark-1
247
+ * Time, in microseconds, that a transmitter drives a Mark-1
250248 * state prior to a Stop state in order to initiate an exit
251249 * from ULPS.
252250 *
253
- * Minimum value: 1000000000 ps
251
+ * Minimum value: 1000 us
254252 */
255253 unsigned int wakeup;
256254
....@@ -271,9 +269,16 @@
271269 /**
272270 * @lanes:
273271 *
274
- * Number of active data lanes used for the transmissions.
272
+ * Number of active, consecutive, data lanes, starting from
273
+ * lane 0, used for the transmissions.
275274 */
276275 unsigned char lanes;
277276 };
278277
278
+int phy_mipi_dphy_get_default_config(unsigned long pixel_clock,
279
+ unsigned int bpp,
280
+ unsigned int lanes,
281
+ struct phy_configure_opts_mipi_dphy *cfg);
282
+int phy_mipi_dphy_config_validate(struct phy_configure_opts_mipi_dphy *cfg);
283
+
279284 #endif /* __PHY_MIPI_DPHY_H_ */