Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ermine
R128
Commits
c79965d8
Commit
c79965d8
authored
10 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nouveau/bios: support for opcodes 0x47/0x48
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
17187c81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
+36
-0
36 additions, 0 deletions
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
with
36 additions
and
0 deletions
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
+
36
−
0
View file @
c79965d8
...
...
@@ -843,6 +843,40 @@ init_io_or(struct nvbios_init *init)
init_wrvgai
(
init
,
0x03d4
,
index
,
data
|
(
1
<<
or
));
}
/**
* INIT_ANDN_REG - opcode 0x47
*
*/
static
void
init_andn_reg
(
struct
nvbios_init
*
init
)
{
struct
nouveau_bios
*
bios
=
init
->
bios
;
u32
reg
=
nv_ro32
(
bios
,
init
->
offset
+
1
);
u32
mask
=
nv_ro32
(
bios
,
init
->
offset
+
5
);
trace
(
"ANDN_REG
\t
R[0x%06x] &= ~0x%08x
\n
"
,
reg
,
mask
);
init
->
offset
+=
9
;
init_mask
(
init
,
reg
,
mask
,
0
);
}
/**
* INIT_OR_REG - opcode 0x48
*
*/
static
void
init_or_reg
(
struct
nvbios_init
*
init
)
{
struct
nouveau_bios
*
bios
=
init
->
bios
;
u32
reg
=
nv_ro32
(
bios
,
init
->
offset
+
1
);
u32
mask
=
nv_ro32
(
bios
,
init
->
offset
+
5
);
trace
(
"OR_REG
\t
R[0x%06x] |= 0x%08x
\n
"
,
reg
,
mask
);
init
->
offset
+=
9
;
init_mask
(
init
,
reg
,
0
,
mask
);
}
/**
* INIT_INDEX_ADDRESS_LATCHED - opcode 0x49
*
...
...
@@ -2074,6 +2108,8 @@ static struct nvbios_init_opcode {
[
0x3a
]
=
{
init_dp_condition
},
[
0x3b
]
=
{
init_io_mask_or
},
[
0x3c
]
=
{
init_io_or
},
[
0x47
]
=
{
init_andn_reg
},
[
0x48
]
=
{
init_or_reg
},
[
0x49
]
=
{
init_idx_addr_latched
},
[
0x4a
]
=
{
init_io_restrict_pll2
},
[
0x4b
]
=
{
init_pll2
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment