Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
5b34cebe
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5b34cebe
编写于
9月 24, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/i2c: segregate aux channel adapter indices from bit-banged i2c
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
309a5702
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
3 deletion
+15
-3
drivers/gpu/drm/nouveau/core/engine/disp/outp.c
drivers/gpu/drm/nouveau/core/engine/disp/outp.c
+4
-1
drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
+2
-0
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
+2
-0
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
+6
-2
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/core/engine/disp/outp.c
浏览文件 @
5b34cebe
...
...
@@ -85,7 +85,10 @@ nvkm_output_create_(struct nouveau_object *parent,
dcbE
->
sorconf
.
link
:
0
,
dcbE
->
connector
,
dcbE
->
i2c_index
,
dcbE
->
bus
,
dcbE
->
heads
);
outp
->
port
=
i2c
->
find
(
i2c
,
outp
->
info
.
i2c_index
);
if
(
outp
->
info
.
type
!=
DCB_OUTPUT_DP
)
outp
->
port
=
i2c
->
find
(
i2c
,
NV_I2C_PORT
(
outp
->
info
.
i2c_index
));
else
outp
->
port
=
i2c
->
find
(
i2c
,
NV_I2C_AUX
(
outp
->
info
.
i2c_index
));
outp
->
edid
=
outp
->
port
;
data
=
nvbios_connEp
(
bios
,
outp
->
info
.
connector
,
&
ver
,
&
hdr
,
&
connE
);
...
...
drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
浏览文件 @
5b34cebe
...
...
@@ -8,6 +8,8 @@
#include <subdev/bios/i2c.h>
#define NV_I2C_PORT(n) (0x00 + (n))
#define NV_I2C_AUX(n) (0x10 + (n))
#define NV_I2C_EXT(n) (0x20 + (n))
#define NV_I2C_DEFAULT(n) (0x80 + (n))
#define NV_I2C_TYPE_DCBI2C(n) (0x0000 | (n))
...
...
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
浏览文件 @
5b34cebe
...
...
@@ -255,6 +255,8 @@ init_i2c(struct nvbios_init *init, int index)
}
index
=
init
->
outp
->
i2c_index
;
if
(
init
->
outp
->
type
==
DCB_OUTPUT_DP
)
index
+=
NV_I2C_AUX
(
0
);
}
return
i2c
->
find
(
i2c
,
index
);
...
...
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
浏览文件 @
5b34cebe
...
...
@@ -549,8 +549,12 @@ nouveau_i2c_create_(struct nouveau_object *parent,
case
DCB_I2C_NV04_BIT
:
case
DCB_I2C_NV4E_BIT
:
case
DCB_I2C_NVIO_BIT
:
nouveau_i2c_create_port
(
i2c
,
NV_I2C_PORT
(
index
),
info
.
type
,
&
info
);
break
;
case
DCB_I2C_NVIO_AUX
:
nouveau_i2c_create_port
(
i2c
,
index
,
info
.
type
,
&
info
);
nouveau_i2c_create_port
(
i2c
,
NV_I2C_AUX
(
index
),
info
.
type
,
&
info
);
break
;
case
DCB_I2C_UNUSED
:
default:
...
...
@@ -562,7 +566,7 @@ nouveau_i2c_create_(struct nouveau_object *parent,
* may be ddc/aux channels hiding behind external tmds/dp/etc
* transmitters.
*/
index
=
((
index
+
0x0f
)
/
0x10
)
*
0x10
;
index
=
NV_I2C_EXT
(
0
)
;
i
=
-
1
;
while
((
data
=
dcb_outp_parse
(
bios
,
++
i
,
&
ver
,
&
hdr
,
&
outp
)))
{
if
(
!
outp
.
location
||
!
outp
.
extdev
)
...
...
drivers/gpu/drm/nouveau/nouveau_bios.c
浏览文件 @
5b34cebe
...
...
@@ -1493,6 +1493,7 @@ parse_dcb20_entry(struct drm_device *dev, struct dcb_table *dcb,
break
;
}
link
=
entry
->
dpconf
.
sor
.
link
;
entry
->
i2c_index
+=
NV_I2C_AUX
(
0
);
break
;
case
DCB_OUTPUT_TMDS
:
if
(
dcb
->
version
>=
0x40
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录