Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d22527fe
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
156
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d22527fe
编写于
7月 21, 2016
作者:
M
Michael Turquette
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clk-fixes' into clk-next
上级
b328d2c1
f96423f4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
6 deletion
+5
-6
drivers/clk/at91/clk-programmable.c
drivers/clk/at91/clk-programmable.c
+1
-1
drivers/clk/sunxi/clk-sun4i-display.c
drivers/clk/sunxi/clk-sun4i-display.c
+4
-1
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
+0
-4
未找到文件。
drivers/clk/at91/clk-programmable.c
浏览文件 @
d22527fe
...
...
@@ -99,7 +99,7 @@ static int clk_programmable_set_parent(struct clk_hw *hw, u8 index)
struct
clk_programmable
*
prog
=
to_clk_programmable
(
hw
);
const
struct
clk_programmable_layout
*
layout
=
prog
->
layout
;
unsigned
int
mask
=
layout
->
css_mask
;
unsigned
int
pckr
=
0
;
unsigned
int
pckr
=
index
;
if
(
layout
->
have_slck_mck
)
mask
|=
AT91_PMC_CSSMCK_MCK
;
...
...
drivers/clk/sunxi/clk-sun4i-display.c
浏览文件 @
d22527fe
...
...
@@ -33,6 +33,8 @@ struct sun4i_a10_display_clk_data {
u8
width_div
;
u8
width_mux
;
u32
flags
;
};
struct
reset_data
{
...
...
@@ -166,7 +168,7 @@ static void __init sun4i_a10_display_init(struct device_node *node,
data
->
has_div
?
&
div
->
hw
:
NULL
,
data
->
has_div
?
&
clk_divider_ops
:
NULL
,
&
gate
->
hw
,
&
clk_gate_ops
,
0
);
data
->
flags
);
if
(
IS_ERR
(
clk
))
{
pr_err
(
"%s: Couldn't register the clock
\n
"
,
clk_name
);
goto
free_div
;
...
...
@@ -232,6 +234,7 @@ static const struct sun4i_a10_display_clk_data sun4i_a10_tcon_ch0_data __initcon
.
offset_rst
=
29
,
.
offset_mux
=
24
,
.
width_mux
=
2
,
.
flags
=
CLK_SET_RATE_PARENT
,
};
static
void
__init
sun4i_a10_tcon_ch0_setup
(
struct
device_node
*
node
)
...
...
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
浏览文件 @
d22527fe
...
...
@@ -79,15 +79,11 @@ static int tcon_ch1_is_enabled(struct clk_hw *hw)
static
u8
tcon_ch1_get_parent
(
struct
clk_hw
*
hw
)
{
struct
tcon_ch1_clk
*
tclk
=
hw_to_tclk
(
hw
);
int
num_parents
=
clk_hw_get_num_parents
(
hw
);
u32
reg
;
reg
=
readl
(
tclk
->
reg
)
>>
TCON_CH1_SCLK2_MUX_SHIFT
;
reg
&=
reg
>>
TCON_CH1_SCLK2_MUX_MASK
;
if
(
reg
>=
num_parents
)
return
-
EINVAL
;
return
reg
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录