Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6ca1f62f
Commit
6ca1f62f
authored
Apr 01, 2015
by
Thierry Reding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/tegra: dc: Implement CRC debugfs interface
Signed-off-by:
Thierry Reding
<
treding@nvidia.com
>
parent
5b4f516f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dc.c
+22
-0
drivers/gpu/drm/tegra/dc.h
drivers/gpu/drm/tegra/dc.h
+5
-0
No files found.
drivers/gpu/drm/tegra/dc.c
View file @
6ca1f62f
...
...
@@ -1571,8 +1571,30 @@ static int tegra_dc_show_regs(struct seq_file *s, void *data)
return
0
;
}
static
int
tegra_dc_show_crc
(
struct
seq_file
*
s
,
void
*
data
)
{
struct
drm_info_node
*
node
=
s
->
private
;
struct
tegra_dc
*
dc
=
node
->
info_ent
->
data
;
u32
value
;
value
=
DC_COM_CRC_CONTROL_ACTIVE_DATA
|
DC_COM_CRC_CONTROL_ENABLE
;
tegra_dc_writel
(
dc
,
value
,
DC_COM_CRC_CONTROL
);
tegra_dc_commit
(
dc
);
drm_crtc_wait_one_vblank
(
&
dc
->
base
);
drm_crtc_wait_one_vblank
(
&
dc
->
base
);
value
=
tegra_dc_readl
(
dc
,
DC_COM_CRC_CHECKSUM
);
seq_printf
(
s
,
"%08x
\n
"
,
value
);
tegra_dc_writel
(
dc
,
0
,
DC_COM_CRC_CONTROL
);
return
0
;
}
static
struct
drm_info_list
debugfs_files
[]
=
{
{
"regs"
,
tegra_dc_show_regs
,
0
,
NULL
},
{
"crc"
,
tegra_dc_show_crc
,
0
,
NULL
},
};
static
int
tegra_dc_debugfs_init
(
struct
tegra_dc
*
dc
,
struct
drm_minor
*
minor
)
...
...
drivers/gpu/drm/tegra/dc.h
View file @
6ca1f62f
...
...
@@ -86,6 +86,11 @@
#define DC_CMD_REG_ACT_CONTROL 0x043
#define DC_COM_CRC_CONTROL 0x300
#define DC_COM_CRC_CONTROL_ALWAYS (1 << 3)
#define DC_COM_CRC_CONTROL_FULL_FRAME (0 << 2)
#define DC_COM_CRC_CONTROL_ACTIVE_DATA (1 << 2)
#define DC_COM_CRC_CONTROL_WAIT (1 << 1)
#define DC_COM_CRC_CONTROL_ENABLE (1 << 0)
#define DC_COM_CRC_CHECKSUM 0x301
#define DC_COM_PIN_OUTPUT_ENABLE(x) (0x302 + (x))
#define DC_COM_PIN_OUTPUT_POLARITY(x) (0x306 + (x))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment