Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
15545026
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
15545026
编写于
1月 21, 2012
作者:
K
Kukjin Kim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: S5P64X0: use static declaration when it is not used in other files
Signed-off-by:
N
Kukjin Kim
<
kgene.kim@samsung.com
>
上级
5086c6c8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
17 deletion
+11
-17
arch/arm/mach-s5p64x0/clock.c
arch/arm/mach-s5p64x0/clock.c
+6
-5
arch/arm/mach-s5p64x0/dma.c
arch/arm/mach-s5p64x0/dma.c
+5
-5
arch/arm/mach-s5p64x0/include/mach/s5p64x0-clock.h
arch/arm/mach-s5p64x0/include/mach/s5p64x0-clock.h
+0
-7
未找到文件。
arch/arm/mach-s5p64x0/clock.c
浏览文件 @
15545026
...
...
@@ -73,7 +73,7 @@ static const u32 clock_table[][3] = {
{
L2
*
1000
,
(
3
<<
ARM_DIV_RATIO_SHIFT
),
(
0
<<
S5P64X0_CLKDIV0_HCLK_SHIFT
)},
};
unsigned
long
s5p64x0_armclk_get_rate
(
struct
clk
*
clk
)
static
unsigned
long
s5p64x0_armclk_get_rate
(
struct
clk
*
clk
)
{
unsigned
long
rate
=
clk_get_rate
(
clk
->
parent
);
u32
clkdiv
;
...
...
@@ -84,7 +84,8 @@ unsigned long s5p64x0_armclk_get_rate(struct clk *clk)
return
rate
/
(
clkdiv
+
1
);
}
unsigned
long
s5p64x0_armclk_round_rate
(
struct
clk
*
clk
,
unsigned
long
rate
)
static
unsigned
long
s5p64x0_armclk_round_rate
(
struct
clk
*
clk
,
unsigned
long
rate
)
{
u32
iter
;
...
...
@@ -96,7 +97,7 @@ unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate)
return
clock_table
[
ARRAY_SIZE
(
clock_table
)
-
1
][
0
];
}
int
s5p64x0_armclk_set_rate
(
struct
clk
*
clk
,
unsigned
long
rate
)
static
int
s5p64x0_armclk_set_rate
(
struct
clk
*
clk
,
unsigned
long
rate
)
{
u32
round_tmp
;
u32
iter
;
...
...
@@ -148,7 +149,7 @@ int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate)
return
0
;
}
struct
clk_ops
s5p64x0_clkarm_ops
=
{
st
atic
st
ruct
clk_ops
s5p64x0_clkarm_ops
=
{
.
get_rate
=
s5p64x0_armclk_get_rate
,
.
set_rate
=
s5p64x0_armclk_set_rate
,
.
round_rate
=
s5p64x0_armclk_round_rate
,
...
...
@@ -173,7 +174,7 @@ struct clksrc_clk clk_dout_mpll = {
.
reg_div
=
{
.
reg
=
S5P64X0_CLK_DIV0
,
.
shift
=
4
,
.
size
=
1
},
};
struct
clk
*
clkset_hclk_low_list
[]
=
{
st
atic
st
ruct
clk
*
clkset_hclk_low_list
[]
=
{
&
clk_mout_apll
.
clk
,
&
clk_mout_mpll
.
clk
,
};
...
...
arch/arm/mach-s5p64x0/dma.c
浏览文件 @
15545026
...
...
@@ -38,7 +38,7 @@
static
u64
dma_dmamask
=
DMA_BIT_MASK
(
32
);
u8
s5p6440_pdma_peri
[]
=
{
static
u8
s5p6440_pdma_peri
[]
=
{
DMACH_UART0_RX
,
DMACH_UART0_TX
,
DMACH_UART1_RX
,
...
...
@@ -63,12 +63,12 @@ u8 s5p6440_pdma_peri[] = {
DMACH_SPI1_RX
,
};
struct
dma_pl330_platdata
s5p6440_pdma_pdata
=
{
st
atic
st
ruct
dma_pl330_platdata
s5p6440_pdma_pdata
=
{
.
nr_valid_peri
=
ARRAY_SIZE
(
s5p6440_pdma_peri
),
.
peri_id
=
s5p6440_pdma_peri
,
};
u8
s5p6450_pdma_peri
[]
=
{
static
u8
s5p6450_pdma_peri
[]
=
{
DMACH_UART0_RX
,
DMACH_UART0_TX
,
DMACH_UART1_RX
,
...
...
@@ -103,12 +103,12 @@ u8 s5p6450_pdma_peri[] = {
DMACH_UART5_TX
,
};
struct
dma_pl330_platdata
s5p6450_pdma_pdata
=
{
st
atic
st
ruct
dma_pl330_platdata
s5p6450_pdma_pdata
=
{
.
nr_valid_peri
=
ARRAY_SIZE
(
s5p6450_pdma_peri
),
.
peri_id
=
s5p6450_pdma_peri
,
};
struct
amba_device
s5p64x0_device_pdma
=
{
st
atic
st
ruct
amba_device
s5p64x0_device_pdma
=
{
.
dev
=
{
.
init_name
=
"dma-pl330"
,
.
dma_mask
=
&
dma_dmamask
,
...
...
arch/arm/mach-s5p64x0/include/mach/s5p64x0-clock.h
浏览文件 @
15545026
...
...
@@ -22,16 +22,9 @@ extern struct clksrc_clk clk_mout_epll;
extern
int
s5p64x0_epll_enable
(
struct
clk
*
clk
,
int
enable
);
extern
unsigned
long
s5p64x0_epll_get_rate
(
struct
clk
*
clk
);
extern
unsigned
long
s5p64x0_armclk_get_rate
(
struct
clk
*
clk
);
extern
unsigned
long
s5p64x0_armclk_round_rate
(
struct
clk
*
clk
,
unsigned
long
rate
);
extern
int
s5p64x0_armclk_set_rate
(
struct
clk
*
clk
,
unsigned
long
rate
);
extern
struct
clk_ops
s5p64x0_clkarm_ops
;
extern
struct
clksrc_clk
clk_armclk
;
extern
struct
clksrc_clk
clk_dout_mpll
;
extern
struct
clk
*
clkset_hclk_low_list
[];
extern
struct
clksrc_sources
clkset_hclk_low
;
extern
int
s5p64x0_pclk_ctrl
(
struct
clk
*
clk
,
int
enable
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录