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
Kirill Smelkov
linux
Commits
46f9564a
Commit
46f9564a
authored
Apr 12, 2013
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon/evergreen: add indirect register accessors for CG registers
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
ff82bbc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
drivers/gpu/drm/radeon/evergreen_reg.h
drivers/gpu/drm/radeon/evergreen_reg.h
+3
-0
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon.h
+17
-0
No files found.
drivers/gpu/drm/radeon/evergreen_reg.h
View file @
46f9564a
...
...
@@ -44,6 +44,9 @@
#define EVERGREEN_AUDIO_PLL1_DIV 0x5b4
#define EVERGREEN_AUDIO_PLL1_UNK 0x5bc
#define EVERGREEN_CG_IND_ADDR 0x8f8
#define EVERGREEN_CG_IND_DATA 0x8fc
#define EVERGREEN_AUDIO_ENABLE 0x5e78
#define EVERGREEN_AUDIO_VENDOR_ID 0x5ec0
...
...
drivers/gpu/drm/radeon/radeon.h
View file @
46f9564a
...
...
@@ -1852,6 +1852,8 @@ void cik_mm_wdoorbell(struct radeon_device *rdev, u32 offset, u32 v);
#define WREG32_SMC(reg, v) tn_smc_wreg(rdev, (reg), (v))
#define RREG32_RCU(reg) r600_rcu_rreg(rdev, (reg))
#define WREG32_RCU(reg, v) r600_rcu_wreg(rdev, (reg), (v))
#define RREG32_CG(reg) eg_cg_rreg(rdev, (reg))
#define WREG32_CG(reg, v) eg_cg_wreg(rdev, (reg), (v))
#define WREG32_P(reg, val, mask) \
do { \
uint32_t tmp_ = RREG32(reg); \
...
...
@@ -1923,6 +1925,21 @@ static inline void r600_rcu_wreg(struct radeon_device *rdev, u32 reg, u32 v)
WREG32
(
R600_RCU_DATA
,
(
v
));
}
static
inline
u32
eg_cg_rreg
(
struct
radeon_device
*
rdev
,
u32
reg
)
{
u32
r
;
WREG32
(
EVERGREEN_CG_IND_ADDR
,
((
reg
)
&
0xffff
));
r
=
RREG32
(
EVERGREEN_CG_IND_DATA
);
return
r
;
}
static
inline
void
eg_cg_wreg
(
struct
radeon_device
*
rdev
,
u32
reg
,
u32
v
)
{
WREG32
(
EVERGREEN_CG_IND_ADDR
,
((
reg
)
&
0xffff
));
WREG32
(
EVERGREEN_CG_IND_DATA
,
(
v
));
}
void
r100_pll_errata_after_index
(
struct
radeon_device
*
rdev
);
...
...
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