mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
drm/tegra: Add trace support
Add trace support for the Tegra DRM driver by pulling in the relevant changes from the upstream Tegra DRM driver. Bug 3724727 Change-Id: Id34df005df76a27120282790a53c09c71361cec2 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2739540 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
1980c277ea
commit
38c4f3bbd5
@@ -28,6 +28,7 @@
|
||||
#include "drm.h"
|
||||
#include "dsi.h"
|
||||
#include "mipi-phy.h"
|
||||
#include <trace/events/trace.h>
|
||||
|
||||
struct tegra_dsi_state {
|
||||
struct drm_connector_state base;
|
||||
@@ -107,12 +108,15 @@ static inline u32 tegra_dsi_readl(struct tegra_dsi *dsi, unsigned int offset)
|
||||
{
|
||||
u32 value = readl(dsi->regs + (offset << 2));
|
||||
|
||||
trace_dsi_readl(dsi->dev, offset, value);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
static inline void tegra_dsi_writel(struct tegra_dsi *dsi, u32 value,
|
||||
unsigned int offset)
|
||||
{
|
||||
trace_dsi_writel(dsi->dev, offset, value);
|
||||
writel(value, dsi->regs + (offset << 2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user