Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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