mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add the upstream tegra-drm driver with the 'Host1x/Tegra UAPI' series [0] applied. This driver will be built as an external module for testing and development with upstream Linux kernels. The following modifications have been made to the series posted upstream 1. Update the Makefile to always build the driver as a module 2. Always enable the tegra_drm_ioctl_xxx in the tegra_drm_ioctls and remove the dependency on CONFIG_DRM_TEGRA_STAGING. 3. Rename the include/uapi/drm/tegra_drm.h to include/uapi/drm/tegra_drm_next.h to avoid conflicts with upstream headers when building as an external module. 5. Rename the module that is built to be tegra-drm-next.ko instead of tegra-drm.ko to avoid any depmod conflicts with the upstream driver. [0] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=215770 Bug 3156385 Change-Id: I19206f989325c9c6ff3c2b9301d964140d52234f Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2435802 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2013 NVIDIA Corporation
|
|
*/
|
|
|
|
#ifndef DRM_TEGRA_MIPI_PHY_H
|
|
#define DRM_TEGRA_MIPI_PHY_H
|
|
|
|
/*
|
|
* D-PHY timing parameters
|
|
*
|
|
* A detailed description of these parameters can be found in the MIPI
|
|
* Alliance Specification for D-PHY, Section 5.9 "Global Operation Timing
|
|
* Parameters".
|
|
*
|
|
* All parameters are specified in nanoseconds.
|
|
*/
|
|
struct mipi_dphy_timing {
|
|
unsigned int clkmiss;
|
|
unsigned int clkpost;
|
|
unsigned int clkpre;
|
|
unsigned int clkprepare;
|
|
unsigned int clksettle;
|
|
unsigned int clktermen;
|
|
unsigned int clktrail;
|
|
unsigned int clkzero;
|
|
unsigned int dtermen;
|
|
unsigned int eot;
|
|
unsigned int hsexit;
|
|
unsigned int hsprepare;
|
|
unsigned int hszero;
|
|
unsigned int hssettle;
|
|
unsigned int hsskip;
|
|
unsigned int hstrail;
|
|
unsigned int init;
|
|
unsigned int lpx;
|
|
unsigned int taget;
|
|
unsigned int tago;
|
|
unsigned int tasure;
|
|
unsigned int wakeup;
|
|
};
|
|
|
|
int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
|
|
unsigned long period);
|
|
int mipi_dphy_timing_validate(struct mipi_dphy_timing *timing,
|
|
unsigned long period);
|
|
|
|
#endif
|