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
07fee3d5
Commit
07fee3d5
authored
Apr 24, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50: store full dcb i2c entry from vbios
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
afa3b4c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+6
-2
drivers/gpu/drm/nouveau/nouveau_bios.h
drivers/gpu/drm/nouveau/nouveau_bios.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.c
View file @
07fee3d5
...
...
@@ -5141,8 +5141,12 @@ read_dcb_i2c_entry(struct drm_device *dev, int dcb_version, uint8_t *i2ctable, i
rdofs
=
wrofs
=
0
;
}
if
(
dcb_i2c_ver
>=
0x40
&&
port_type
!=
5
&&
port_type
!=
6
)
NV_WARN
(
dev
,
"DCB I2C table has port type %d
\n
"
,
port_type
);
if
(
dcb_i2c_ver
>=
0x40
)
{
if
(
port_type
!=
5
&&
port_type
!=
6
)
NV_WARN
(
dev
,
"DCB I2C table has port type %d
\n
"
,
port_type
);
i2c
->
entry
=
ROM32
(
i2ctable
[
headerlen
+
recordoffset
+
entry_len
*
index
]);
}
i2c
->
port_type
=
port_type
;
i2c
->
read
=
i2ctable
[
headerlen
+
recordoffset
+
rdofs
+
entry_len
*
index
];
...
...
drivers/gpu/drm/nouveau/nouveau_bios.h
View file @
07fee3d5
...
...
@@ -35,6 +35,7 @@
#define DCB_LOC_ON_CHIP 0
struct
dcb_i2c_entry
{
uint32_t
entry
;
uint8_t
port_type
;
uint8_t
read
,
write
;
struct
nouveau_i2c_chan
*
chan
;
...
...
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