Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
ea4718d1
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ea4718d1
编写于
7月 06, 2010
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: move DP script invocation to nouveau_dp.c
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
87c0e0e5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
33 deletion
+23
-33
drivers/gpu/drm/nouveau/nouveau_dp.c
drivers/gpu/drm/nouveau/nouveau_dp.c
+22
-2
drivers/gpu/drm/nouveau/nv50_sor.c
drivers/gpu/drm/nouveau/nv50_sor.c
+1
-31
未找到文件。
drivers/gpu/drm/nouveau/nouveau_dp.c
浏览文件 @
ea4718d1
...
...
@@ -271,12 +271,26 @@ nouveau_dp_link_train(struct drm_encoder *encoder)
{
struct
drm_device
*
dev
=
encoder
->
dev
;
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
uint8_t
config
[
4
];
uint8_t
status
[
3
];
struct
bit_displayport_encoder_table
*
dpe
;
int
dpe_headerlen
;
uint8_t
config
[
4
],
status
[
3
];
bool
cr_done
,
cr_max_vs
,
eq_done
;
int
ret
=
0
,
i
,
tries
,
voltage
;
NV_DEBUG_KMS
(
dev
,
"link training!!
\n
"
);
dpe
=
nouveau_bios_dp_table
(
dev
,
nv_encoder
->
dcb
,
&
dpe_headerlen
);
if
(
!
dpe
)
{
NV_ERROR
(
dev
,
"SOR-%d: no DP encoder table!
\n
"
,
nv_encoder
->
or
);
return
false
;
}
if
(
dpe
->
script0
)
{
NV_DEBUG_KMS
(
dev
,
"SOR-%d: running DP script 0
\n
"
,
nv_encoder
->
or
);
nouveau_bios_run_init_table
(
dev
,
le16_to_cpu
(
dpe
->
script0
),
nv_encoder
->
dcb
);
}
train:
cr_done
=
eq_done
=
false
;
...
...
@@ -403,6 +417,12 @@ nouveau_dp_link_train(struct drm_encoder *encoder)
}
}
if
(
dpe
->
script1
)
{
NV_DEBUG_KMS
(
dev
,
"SOR-%d: running DP script 1
\n
"
,
nv_encoder
->
or
);
nouveau_bios_run_init_table
(
dev
,
le16_to_cpu
(
dpe
->
script1
),
nv_encoder
->
dcb
);
}
return
eq_done
;
}
...
...
drivers/gpu/drm/nouveau/nv50_sor.c
浏览文件 @
ea4718d1
...
...
@@ -65,36 +65,6 @@ nv50_sor_disconnect(struct drm_encoder *encoder)
nv_encoder
->
last_dpms
=
DRM_MODE_DPMS_OFF
;
}
static
void
nv50_sor_dp_link_train
(
struct
drm_encoder
*
encoder
)
{
struct
drm_device
*
dev
=
encoder
->
dev
;
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
struct
bit_displayport_encoder_table
*
dpe
;
int
dpe_headerlen
;
dpe
=
nouveau_bios_dp_table
(
dev
,
nv_encoder
->
dcb
,
&
dpe_headerlen
);
if
(
!
dpe
)
{
NV_ERROR
(
dev
,
"SOR-%d: no DP encoder table!
\n
"
,
nv_encoder
->
or
);
return
;
}
if
(
dpe
->
script0
)
{
NV_DEBUG_KMS
(
dev
,
"SOR-%d: running DP script 0
\n
"
,
nv_encoder
->
or
);
nouveau_bios_run_init_table
(
dev
,
le16_to_cpu
(
dpe
->
script0
),
nv_encoder
->
dcb
);
}
if
(
!
nouveau_dp_link_train
(
encoder
))
NV_ERROR
(
dev
,
"SOR-%d: link training failed
\n
"
,
nv_encoder
->
or
);
if
(
dpe
->
script1
)
{
NV_DEBUG_KMS
(
dev
,
"SOR-%d: running DP script 1
\n
"
,
nv_encoder
->
or
);
nouveau_bios_run_init_table
(
dev
,
le16_to_cpu
(
dpe
->
script1
),
nv_encoder
->
dcb
);
}
}
static
void
nv50_sor_dpms
(
struct
drm_encoder
*
encoder
,
int
mode
)
{
...
...
@@ -146,7 +116,7 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode)
}
if
(
nv_encoder
->
dcb
->
type
==
OUTPUT_DP
&&
mode
==
DRM_MODE_DPMS_ON
)
n
v50_sor
_dp_link_train
(
encoder
);
n
ouveau
_dp_link_train
(
encoder
);
}
static
void
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录