Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c0b90a31
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看板
提交
c0b90a31
编写于
1月 15, 2009
作者:
S
Sascha Hauer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
imxfb: add platform specific init/exit functions
Signed-off-by:
N
Sascha Hauer
<
s.hauer@pengutronix.de
>
上级
879fea1b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
0 deletion
+17
-0
arch/arm/plat-mxc/include/mach/imxfb.h
arch/arm/plat-mxc/include/mach/imxfb.h
+3
-0
drivers/video/imxfb.c
drivers/video/imxfb.c
+14
-0
未找到文件。
arch/arm/plat-mxc/include/mach/imxfb.h
浏览文件 @
c0b90a31
...
@@ -76,6 +76,9 @@ struct imx_fb_platform_data {
...
@@ -76,6 +76,9 @@ struct imx_fb_platform_data {
u_char
*
fixed_screen_cpu
;
u_char
*
fixed_screen_cpu
;
dma_addr_t
fixed_screen_dma
;
dma_addr_t
fixed_screen_dma
;
int
(
*
init
)(
struct
platform_device
*
);
int
(
*
exit
)(
struct
platform_device
*
);
void
(
*
lcd_power
)(
int
);
void
(
*
lcd_power
)(
int
);
void
(
*
backlight_power
)(
int
);
void
(
*
backlight_power
)(
int
);
};
};
...
...
drivers/video/imxfb.c
浏览文件 @
c0b90a31
...
@@ -650,6 +650,12 @@ static int __init imxfb_probe(struct platform_device *pdev)
...
@@ -650,6 +650,12 @@ static int __init imxfb_probe(struct platform_device *pdev)
info
->
fix
.
smem_start
=
fbi
->
screen_dma
;
info
->
fix
.
smem_start
=
fbi
->
screen_dma
;
}
}
if
(
pdata
->
init
)
{
ret
=
pdata
->
init
(
fbi
->
pdev
);
if
(
ret
)
goto
failed_platform_init
;
}
/*
/*
* This makes sure that our colour bitfield
* This makes sure that our colour bitfield
* descriptors are correctly initialised.
* descriptors are correctly initialised.
...
@@ -674,6 +680,9 @@ static int __init imxfb_probe(struct platform_device *pdev)
...
@@ -674,6 +680,9 @@ static int __init imxfb_probe(struct platform_device *pdev)
failed_register:
failed_register:
fb_dealloc_cmap
(
&
info
->
cmap
);
fb_dealloc_cmap
(
&
info
->
cmap
);
failed_cmap:
failed_cmap:
if
(
pdata
->
exit
)
pdata
->
exit
(
fbi
->
pdev
);
failed_platform_init:
if
(
!
pdata
->
fixed_screen_cpu
)
if
(
!
pdata
->
fixed_screen_cpu
)
dma_free_writecombine
(
&
pdev
->
dev
,
fbi
->
map_size
,
fbi
->
map_cpu
,
dma_free_writecombine
(
&
pdev
->
dev
,
fbi
->
map_size
,
fbi
->
map_cpu
,
fbi
->
map_dma
);
fbi
->
map_dma
);
...
@@ -691,6 +700,7 @@ static int __init imxfb_probe(struct platform_device *pdev)
...
@@ -691,6 +700,7 @@ static int __init imxfb_probe(struct platform_device *pdev)
static
int
__devexit
imxfb_remove
(
struct
platform_device
*
pdev
)
static
int
__devexit
imxfb_remove
(
struct
platform_device
*
pdev
)
{
{
struct
imx_fb_platform_data
*
pdata
;
struct
fb_info
*
info
=
platform_get_drvdata
(
pdev
);
struct
fb_info
*
info
=
platform_get_drvdata
(
pdev
);
struct
imxfb_info
*
fbi
=
info
->
par
;
struct
imxfb_info
*
fbi
=
info
->
par
;
struct
resource
*
res
;
struct
resource
*
res
;
...
@@ -701,6 +711,10 @@ static int __devexit imxfb_remove(struct platform_device *pdev)
...
@@ -701,6 +711,10 @@ static int __devexit imxfb_remove(struct platform_device *pdev)
unregister_framebuffer
(
info
);
unregister_framebuffer
(
info
);
pdata
=
pdev
->
dev
.
platform_data
;
if
(
pdata
->
exit
)
pdata
->
exit
(
fbi
->
pdev
);
fb_dealloc_cmap
(
&
info
->
cmap
);
fb_dealloc_cmap
(
&
info
->
cmap
);
kfree
(
info
->
pseudo_palette
);
kfree
(
info
->
pseudo_palette
);
framebuffer_release
(
info
);
framebuffer_release
(
info
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录