Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
19519943
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看板
提交
19519943
编写于
3月 11, 2014
作者:
P
Patrik Jakobsson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/gma500: Unify encoder mode fixup
Signed-off-by:
N
Patrik Jakobsson
<
patrik.r.jakobsson@gmail.com
>
上级
f35257a3
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
13 addition
and
24 deletion
+13
-24
drivers/gpu/drm/gma500/cdv_intel_crt.c
drivers/gpu/drm/gma500/cdv_intel_crt.c
+1
-8
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
+1
-8
drivers/gpu/drm/gma500/gma_display.c
drivers/gpu/drm/gma500/gma_display.c
+7
-0
drivers/gpu/drm/gma500/gma_display.h
drivers/gpu/drm/gma500/gma_display.h
+3
-0
drivers/gpu/drm/gma500/oaktrail_hdmi.c
drivers/gpu/drm/gma500/oaktrail_hdmi.c
+1
-8
未找到文件。
drivers/gpu/drm/gma500/cdv_intel_crt.c
浏览文件 @
19519943
...
...
@@ -81,13 +81,6 @@ static int cdv_intel_crt_mode_valid(struct drm_connector *connector,
return
MODE_OK
;
}
static
bool
cdv_intel_crt_mode_fixup
(
struct
drm_encoder
*
encoder
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
{
return
true
;
}
static
void
cdv_intel_crt_mode_set
(
struct
drm_encoder
*
encoder
,
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
...
...
@@ -224,7 +217,7 @@ static int cdv_intel_crt_set_property(struct drm_connector *connector,
static
const
struct
drm_encoder_helper_funcs
cdv_intel_crt_helper_funcs
=
{
.
dpms
=
cdv_intel_crt_dpms
,
.
mode_fixup
=
cdv_intel_crt
_mode_fixup
,
.
mode_fixup
=
gma_encoder
_mode_fixup
,
.
prepare
=
gma_encoder_prepare
,
.
commit
=
gma_encoder_commit
,
.
mode_set
=
cdv_intel_crt_mode_set
,
...
...
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
浏览文件 @
19519943
...
...
@@ -89,13 +89,6 @@ static void cdv_hdmi_mode_set(struct drm_encoder *encoder,
REG_READ
(
hdmi_priv
->
hdmi_reg
);
}
static
bool
cdv_hdmi_mode_fixup
(
struct
drm_encoder
*
encoder
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
{
return
true
;
}
static
void
cdv_hdmi_dpms
(
struct
drm_encoder
*
encoder
,
int
mode
)
{
struct
drm_device
*
dev
=
encoder
->
dev
;
...
...
@@ -262,7 +255,7 @@ static void cdv_hdmi_destroy(struct drm_connector *connector)
static
const
struct
drm_encoder_helper_funcs
cdv_hdmi_helper_funcs
=
{
.
dpms
=
cdv_hdmi_dpms
,
.
mode_fixup
=
cdv_hdmi
_mode_fixup
,
.
mode_fixup
=
gma_encoder
_mode_fixup
,
.
prepare
=
gma_encoder_prepare
,
.
mode_set
=
cdv_hdmi_mode_set
,
.
commit
=
gma_encoder_commit
,
...
...
drivers/gpu/drm/gma500/gma_display.c
浏览文件 @
19519943
...
...
@@ -485,6 +485,13 @@ int gma_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
return
0
;
}
bool
gma_encoder_mode_fixup
(
struct
drm_encoder
*
encoder
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
{
return
true
;
}
bool
gma_crtc_mode_fixup
(
struct
drm_crtc
*
crtc
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
...
...
drivers/gpu/drm/gma500/gma_display.h
浏览文件 @
19519943
...
...
@@ -90,6 +90,9 @@ extern void gma_crtc_restore(struct drm_crtc *crtc);
extern
void
gma_encoder_prepare
(
struct
drm_encoder
*
encoder
);
extern
void
gma_encoder_commit
(
struct
drm_encoder
*
encoder
);
extern
void
gma_encoder_destroy
(
struct
drm_encoder
*
encoder
);
extern
bool
gma_encoder_mode_fixup
(
struct
drm_encoder
*
encoder
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
);
/* Common clock related functions */
extern
const
struct
gma_limit_t
*
gma_limit
(
struct
drm_crtc
*
crtc
,
int
refclk
);
...
...
drivers/gpu/drm/gma500/oaktrail_hdmi.c
浏览文件 @
19519943
...
...
@@ -523,13 +523,6 @@ static int oaktrail_hdmi_mode_valid(struct drm_connector *connector,
return
MODE_OK
;
}
static
bool
oaktrail_hdmi_mode_fixup
(
struct
drm_encoder
*
encoder
,
const
struct
drm_display_mode
*
mode
,
struct
drm_display_mode
*
adjusted_mode
)
{
return
true
;
}
static
enum
drm_connector_status
oaktrail_hdmi_detect
(
struct
drm_connector
*
connector
,
bool
force
)
{
...
...
@@ -608,7 +601,7 @@ static void oaktrail_hdmi_destroy(struct drm_connector *connector)
static
const
struct
drm_encoder_helper_funcs
oaktrail_hdmi_helper_funcs
=
{
.
dpms
=
oaktrail_hdmi_dpms
,
.
mode_fixup
=
oaktrail_hdmi
_mode_fixup
,
.
mode_fixup
=
gma_encoder
_mode_fixup
,
.
prepare
=
gma_encoder_prepare
,
.
mode_set
=
oaktrail_hdmi_mode_set
,
.
commit
=
gma_encoder_commit
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录