Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
01875d56
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
01875d56
编写于
9月 17, 2009
作者:
B
Ben Dooks
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'next-s3c64xx-fixes' into next-s3c-fixes
上级
d23b3517
b93011e7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
7 deletion
+9
-7
arch/arm/plat-s3c64xx/dma.c
arch/arm/plat-s3c64xx/dma.c
+3
-3
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
+1
-1
arch/arm/plat-s3c64xx/s3c6400-clock.c
arch/arm/plat-s3c64xx/s3c6400-clock.c
+5
-3
未找到文件。
arch/arm/plat-s3c64xx/dma.c
浏览文件 @
01875d56
...
@@ -345,13 +345,13 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
...
@@ -345,13 +345,13 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
if
(
!
chan
)
if
(
!
chan
)
return
-
EINVAL
;
return
-
EINVAL
;
buff
=
kzalloc
(
sizeof
(
struct
s3c64xx_dma_buff
),
GFP_
KERNEL
);
buff
=
kzalloc
(
sizeof
(
struct
s3c64xx_dma_buff
),
GFP_
ATOMIC
);
if
(
!
buff
)
{
if
(
!
buff
)
{
printk
(
KERN_ERR
"%s: no memory for buffer
\n
"
,
__func__
);
printk
(
KERN_ERR
"%s: no memory for buffer
\n
"
,
__func__
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
lli
=
dma_pool_alloc
(
dma_pool
,
GFP_
KERNEL
,
&
buff
->
lli_dma
);
lli
=
dma_pool_alloc
(
dma_pool
,
GFP_
ATOMIC
,
&
buff
->
lli_dma
);
if
(
!
lli
)
{
if
(
!
lli
)
{
printk
(
KERN_ERR
"%s: no memory for lli
\n
"
,
__func__
);
printk
(
KERN_ERR
"%s: no memory for lli
\n
"
,
__func__
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
...
@@ -697,7 +697,7 @@ static int __init s3c64xx_dma_init(void)
...
@@ -697,7 +697,7 @@ static int __init s3c64xx_dma_init(void)
printk
(
KERN_INFO
"%s: Registering DMA channels
\n
"
,
__func__
);
printk
(
KERN_INFO
"%s: Registering DMA channels
\n
"
,
__func__
);
dma_pool
=
dma_pool_create
(
"DMA-LLI"
,
NULL
,
32
,
16
,
0
);
dma_pool
=
dma_pool_create
(
"DMA-LLI"
,
NULL
,
sizeof
(
struct
pl080s_lli
)
,
16
,
0
);
if
(
!
dma_pool
)
{
if
(
!
dma_pool
)
{
printk
(
KERN_ERR
"%s: failed to create pool
\n
"
,
__func__
);
printk
(
KERN_ERR
"%s: failed to create pool
\n
"
,
__func__
);
return
-
ENOMEM
;
return
-
ENOMEM
;
...
...
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
浏览文件 @
01875d56
...
@@ -26,7 +26,7 @@ struct s3c64xx_dma_buff {
...
@@ -26,7 +26,7 @@ struct s3c64xx_dma_buff {
struct
s3c64xx_dma_buff
*
next
;
struct
s3c64xx_dma_buff
*
next
;
void
*
pw
;
void
*
pw
;
struct
pl080_lli
*
lli
;
struct
pl080
s
_lli
*
lli
;
dma_addr_t
lli_dma
;
dma_addr_t
lli_dma
;
};
};
...
...
arch/arm/plat-s3c64xx/s3c6400-clock.c
浏览文件 @
01875d56
...
@@ -302,8 +302,8 @@ static int s3c64xx_setrate_clksrc(struct clk *clk, unsigned long rate)
...
@@ -302,8 +302,8 @@ static int s3c64xx_setrate_clksrc(struct clk *clk, unsigned long rate)
return
-
EINVAL
;
return
-
EINVAL
;
val
=
__raw_readl
(
reg
);
val
=
__raw_readl
(
reg
);
val
&=
~
(
0xf
<<
sclk
->
shift
);
val
&=
~
(
0xf
<<
sclk
->
divider_
shift
);
val
|=
(
div
-
1
)
<<
sclk
->
shift
;
val
|=
(
div
-
1
)
<<
sclk
->
divider_
shift
;
__raw_writel
(
val
,
reg
);
__raw_writel
(
val
,
reg
);
return
0
;
return
0
;
...
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent)
...
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent)
clksrc
|=
src_nr
<<
sclk
->
shift
;
clksrc
|=
src_nr
<<
sclk
->
shift
;
__raw_writel
(
clksrc
,
S3C_CLK_SRC
);
__raw_writel
(
clksrc
,
S3C_CLK_SRC
);
clk
->
parent
=
parent
;
return
0
;
return
0
;
}
}
...
@@ -343,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
...
@@ -343,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
if
(
rate
>
parent_rate
)
if
(
rate
>
parent_rate
)
rate
=
parent_rate
;
rate
=
parent_rate
;
else
{
else
{
div
=
rate
/
parent_
rate
;
div
=
parent_rate
/
rate
;
if
(
div
==
0
)
if
(
div
==
0
)
div
=
1
;
div
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录