mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09: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
@@ -40,6 +40,7 @@
|
||||
#include "drm.h"
|
||||
#include "hda.h"
|
||||
#include "sor.h"
|
||||
#include <trace/events/trace.h>
|
||||
|
||||
#define SOR_REKEY 0x38
|
||||
|
||||
@@ -495,12 +496,15 @@ static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned int offset)
|
||||
{
|
||||
u32 value = readl(sor->regs + (offset << 2));
|
||||
|
||||
trace_sor_readl(sor->dev, offset, value);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
static inline void tegra_sor_writel(struct tegra_sor *sor, u32 value,
|
||||
unsigned int offset)
|
||||
{
|
||||
trace_sor_writel(sor->dev, offset, value);
|
||||
writel(value, sor->regs + (offset << 2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user