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
0f8067c7
Commit
0f8067c7
authored
Nov 10, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios: fold fixup_legacy_i2c
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f9f9f536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
23 deletions
+6
-23
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+6
-23
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.c
View file @
0f8067c7
...
...
@@ -34,9 +34,6 @@
#define NV_CIO_CRE_44_HEADA 0x0
#define NV_CIO_CRE_44_HEADB 0x3
#define FEATURE_MOBILE 0x10
/* also FEATURE_QUADRO for BMP */
#define LEGACY_I2C_CRT 0x80
#define LEGACY_I2C_PANEL 0x81
#define LEGACY_I2C_TV 0x82
#define EDID1_LEN 128
...
...
@@ -6433,15 +6430,18 @@ fabricate_dcb_encoder_table(struct drm_device *dev, struct nvbios *bios)
#endif
/* Make up some sane defaults */
fabricate_dcb_output
(
dcb
,
OUTPUT_ANALOG
,
LEGACY_I2C_CRT
,
1
,
1
);
fabricate_dcb_output
(
dcb
,
OUTPUT_ANALOG
,
bios
->
legacy
.
i2c_indices
.
crt
,
1
,
1
);
if
(
nv04_tv_identify
(
dev
,
bios
->
legacy
.
i2c_indices
.
tv
)
>=
0
)
fabricate_dcb_output
(
dcb
,
OUTPUT_TV
,
LEGACY_I2C_TV
,
fabricate_dcb_output
(
dcb
,
OUTPUT_TV
,
bios
->
legacy
.
i2c_indices
.
tv
,
all_heads
,
0
);
else
if
(
bios
->
tmds
.
output0_script_ptr
||
bios
->
tmds
.
output1_script_ptr
)
fabricate_dcb_output
(
dcb
,
OUTPUT_TMDS
,
LEGACY_I2C_PANEL
,
fabricate_dcb_output
(
dcb
,
OUTPUT_TMDS
,
bios
->
legacy
.
i2c_indices
.
panel
,
all_heads
,
1
);
}
...
...
@@ -6649,22 +6649,6 @@ fixup_legacy_connector(struct nvbios *bios)
}
}
static
void
fixup_legacy_i2c
(
struct
nvbios
*
bios
)
{
struct
dcb_table
*
dcb
=
&
bios
->
dcb
;
int
i
;
for
(
i
=
0
;
i
<
dcb
->
entries
;
i
++
)
{
if
(
dcb
->
entry
[
i
].
i2c_index
==
LEGACY_I2C_CRT
)
dcb
->
entry
[
i
].
i2c_index
=
bios
->
legacy
.
i2c_indices
.
crt
;
if
(
dcb
->
entry
[
i
].
i2c_index
==
LEGACY_I2C_PANEL
)
dcb
->
entry
[
i
].
i2c_index
=
bios
->
legacy
.
i2c_indices
.
panel
;
if
(
dcb
->
entry
[
i
].
i2c_index
==
LEGACY_I2C_TV
)
dcb
->
entry
[
i
].
i2c_index
=
bios
->
legacy
.
i2c_indices
.
tv
;
}
}
static
int
load_nv17_hwsq_ucode_entry
(
struct
drm_device
*
dev
,
struct
nvbios
*
bios
,
uint16_t
hwsq_offset
,
int
entry
)
{
/*
...
...
@@ -6934,7 +6918,6 @@ nouveau_bios_init(struct drm_device *dev)
if
(
ret
)
return
ret
;
fixup_legacy_i2c
(
bios
);
fixup_legacy_connector
(
bios
);
if
(
!
bios
->
major_version
)
/* we don't run version 0 bios */
...
...
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