Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e7cc51c5
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看板
提交
e7cc51c5
编写于
2月 24, 2010
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: reorganise bios header, add dcb connector type enums
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
04a39c57
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
63 addition
and
44 deletion
+63
-44
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+2
-0
drivers/gpu/drm/nouveau/nouveau_bios.h
drivers/gpu/drm/nouveau/nouveau_bios.h
+58
-44
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_connector.c
+3
-0
未找到文件。
drivers/gpu/drm/nouveau/nouveau_bios.c
浏览文件 @
e7cc51c5
...
...
@@ -5388,6 +5388,8 @@ parse_dcb20_entry(struct drm_device *dev, struct dcb_table *dcb,
/* weird g80 mobile type that "nv" treats as a terminator */
dcb
->
entries
--
;
return
false
;
default:
break
;
}
/* unsure what DCB version introduces this, 3.0? */
...
...
drivers/gpu/drm/nouveau/nouveau_bios.h
浏览文件 @
e7cc51c5
...
...
@@ -34,9 +34,66 @@
#define DCB_LOC_ON_CHIP 0
struct
dcb_i2c_entry
{
uint8_t
port_type
;
uint8_t
read
,
write
;
struct
nouveau_i2c_chan
*
chan
;
};
enum
dcb_gpio_tag
{
DCB_GPIO_TVDAC0
=
0xc
,
DCB_GPIO_TVDAC1
=
0x2d
,
};
struct
dcb_gpio_entry
{
enum
dcb_gpio_tag
tag
;
int
line
;
bool
invert
;
};
struct
dcb_gpio_table
{
int
entries
;
struct
dcb_gpio_entry
entry
[
DCB_MAX_NUM_GPIO_ENTRIES
];
};
enum
dcb_connector_type
{
DCB_CONNECTOR_VGA
=
0x00
,
DCB_CONNECTOR_TV_0
=
0x10
,
DCB_CONNECTOR_TV_1
=
0x11
,
DCB_CONNECTOR_TV_3
=
0x13
,
DCB_CONNECTOR_DVI_I
=
0x30
,
DCB_CONNECTOR_DVI_D
=
0x31
,
DCB_CONNECTOR_LVDS
=
0x40
,
DCB_CONNECTOR_DP
=
0x46
,
DCB_CONNECTOR_eDP
=
0x47
,
DCB_CONNECTOR_HDMI_0
=
0x60
,
DCB_CONNECTOR_HDMI_1
=
0x61
,
};
struct
dcb_connector_table_entry
{
uint32_t
entry
;
enum
dcb_connector_type
type
;
uint8_t
index
;
uint8_t
gpio_tag
;
};
struct
dcb_connector_table
{
int
entries
;
struct
dcb_connector_table_entry
entry
[
DCB_MAX_NUM_CONNECTOR_ENTRIES
];
};
enum
dcb_type
{
OUTPUT_ANALOG
=
0
,
OUTPUT_TV
=
1
,
OUTPUT_TMDS
=
2
,
OUTPUT_LVDS
=
3
,
OUTPUT_DP
=
6
,
OUTPUT_ANY
=
-
1
};
struct
dcb_entry
{
int
index
;
/* may not be raw dcb index if merging has happened */
uint8_t
type
;
enum
dcb_type
type
;
uint8_t
i2c_index
;
uint8_t
heads
;
uint8_t
connector
;
...
...
@@ -71,40 +128,6 @@ struct dcb_entry {
bool
i2c_upper_default
;
};
struct
dcb_i2c_entry
{
uint8_t
port_type
;
uint8_t
read
,
write
;
struct
nouveau_i2c_chan
*
chan
;
};
enum
dcb_gpio_tag
{
DCB_GPIO_TVDAC0
=
0xc
,
DCB_GPIO_TVDAC1
=
0x2d
,
};
struct
dcb_gpio_entry
{
enum
dcb_gpio_tag
tag
;
int
line
;
bool
invert
;
};
struct
dcb_gpio_table
{
int
entries
;
struct
dcb_gpio_entry
entry
[
DCB_MAX_NUM_GPIO_ENTRIES
];
};
struct
dcb_connector_table_entry
{
uint32_t
entry
;
uint8_t
type
;
uint8_t
index
;
uint8_t
gpio_tag
;
};
struct
dcb_connector_table
{
int
entries
;
struct
dcb_connector_table_entry
entry
[
DCB_MAX_NUM_CONNECTOR_ENTRIES
];
};
struct
dcb_table
{
uint8_t
version
;
...
...
@@ -121,15 +144,6 @@ struct dcb_table {
struct
dcb_connector_table
connector
;
};
enum
nouveau_encoder_type
{
OUTPUT_ANALOG
=
0
,
OUTPUT_TV
=
1
,
OUTPUT_TMDS
=
2
,
OUTPUT_LVDS
=
3
,
OUTPUT_DP
=
6
,
OUTPUT_ANY
=
-
1
};
enum
nouveau_or
{
OUTPUT_A
=
(
1
<<
0
),
OUTPUT_B
=
(
1
<<
1
),
...
...
drivers/gpu/drm/nouveau/nouveau_connector.c
浏览文件 @
e7cc51c5
...
...
@@ -613,6 +613,9 @@ nouveau_connector_mode_valid(struct drm_connector *connector,
clock
*=
3
;
break
;
default:
BUG_ON
(
1
);
return
MODE_BAD
;
}
if
(
clock
<
min_clock
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录