Merge tag 'drm/tegra/for-4.14-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next
drm/tegra: Changes for v4.14-rc1 This contains a couple of fixes and improvements for host1x, with some preparatory work for Tegra186 support. The remainder is cleanup and minor bugfixes for Tegra DRM along with enhancements to debuggability. There have also been some enhancements to the kernel interfaces for host1x job submissions and support for mmap'ing PRIME buffers directly, all of which get the interfaces very close to ready for serious work. * tag 'drm/tegra/for-4.14-rc1' of git://anongit.freedesktop.org/tegra/linux: (21 commits) drm/tegra: Prevent BOs from being freed during job submission drm/tegra: gem: Implement mmap() for PRIME buffers drm/tegra: Support render node drm/tegra: sor: Trace register accesses drm/tegra: dpaux: Trace register accesses drm/tegra: dsi: Trace register accesses drm/tegra: hdmi: Trace register accesses drm/tegra: dc: Trace register accesses drm/tegra: sor: Use unsigned int for register offsets drm/tegra: hdmi: Use unsigned int for register offsets drm/tegra: dsi: Use unsigned int for register offsets drm/tegra: dpaux: Use unsigned int for register offsets drm/tegra: dc: Use unsigned int for register offsets drm/tegra: Fix NULL deref in debugfs/iova drm/tegra: switch to drm_*_get(), drm_*_put() helpers drm/tegra: Set MODULE_FIRMWARE for the VIC drm/tegra: Add CONFIG_OF dependency gpu: host1x: Support sub-devices recursively gpu: host1x: fix error return code in host1x_probe() gpu: host1x: Fix bitshift/mask multipliers ...
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "dc.h"
|
||||
#include "drm.h"
|
||||
#include "sor.h"
|
||||
#include "trace.h"
|
||||
|
||||
#define SOR_REKEY 0x38
|
||||
|
||||
@@ -232,14 +233,19 @@ static inline struct tegra_sor *to_sor(struct tegra_output *output)
|
||||
return container_of(output, struct tegra_sor, output);
|
||||
}
|
||||
|
||||
static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned long offset)
|
||||
static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned int offset)
|
||||
{
|
||||
return readl(sor->regs + (offset << 2));
|
||||
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 long offset)
|
||||
unsigned int offset)
|
||||
{
|
||||
trace_sor_writel(sor->dev, offset, value);
|
||||
writel(value, sor->regs + (offset << 2));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user