Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1d14de08
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看板
提交
1d14de08
编写于
1月 19, 2009
作者:
R
Russell King
提交者:
Russell King
2月 08, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ARM] omap: i2c: use short connection ids
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
b820ce4e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
16 deletion
+16
-16
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.c
+2
-2
arch/arm/mach-omap2/clock24xx.c
arch/arm/mach-omap2/clock24xx.c
+6
-6
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.c
+6
-6
drivers/i2c/busses/i2c-omap.c
drivers/i2c/busses/i2c-omap.c
+2
-2
未找到文件。
arch/arm/mach-omap1/clock.c
浏览文件 @
1d14de08
...
...
@@ -130,8 +130,8 @@ static struct omap_clk omap_clks[] = {
CLK
(
"mmci-omap.1"
,
"ick"
,
&
armper_ck
.
clk
,
CK_16XX
),
/* Virtual clocks */
CLK
(
NULL
,
"mpu"
,
&
virtual_ck_mpu
,
CK_16XX
|
CK_1510
|
CK_310
),
CLK
(
"i2c_omap.1"
,
"
i2c_
fck"
,
&
i2c_fck
,
CK_16XX
|
CK_1510
|
CK_310
),
CLK
(
"i2c_omap.1"
,
"i
2c_i
ck"
,
&
i2c_ick
,
CK_16XX
),
CLK
(
"i2c_omap.1"
,
"fck"
,
&
i2c_fck
,
CK_16XX
|
CK_1510
|
CK_310
),
CLK
(
"i2c_omap.1"
,
"ick"
,
&
i2c_ick
,
CK_16XX
),
CLK
(
"omap-mcbsp.1"
,
"ick"
,
&
dspper_ck
,
CK_16XX
),
CLK
(
"omap-mcbsp.1"
,
"ick"
,
&
dummy_ck
,
CK_1510
|
CK_310
),
CLK
(
"omap-mcbsp.2"
,
"ick"
,
&
armper_ck
.
clk
,
CK_16XX
),
...
...
arch/arm/mach-omap2/clock24xx.c
浏览文件 @
1d14de08
...
...
@@ -186,12 +186,12 @@ static struct omap_clk omap24xx_clks[] = {
CLK
(
NULL
,
"eac_fck"
,
&
eac_fck
,
CK_242X
),
CLK
(
NULL
,
"hdq_ick"
,
&
hdq_ick
,
CK_243X
|
CK_242X
),
CLK
(
NULL
,
"hdq_fck"
,
&
hdq_fck
,
CK_243X
|
CK_242X
),
CLK
(
"i2c_omap.1"
,
"i
2c_i
ck"
,
&
i2c1_ick
,
CK_243X
|
CK_242X
),
CLK
(
"i2c_omap.1"
,
"
i2c_
fck"
,
&
i2c1_fck
,
CK_242X
),
CLK
(
"i2c_omap.1"
,
"
i2c_
fck"
,
&
i2chs1_fck
,
CK_243X
),
CLK
(
"i2c_omap.2"
,
"i
2c_i
ck"
,
&
i2c2_ick
,
CK_243X
|
CK_242X
),
CLK
(
"i2c_omap.2"
,
"
i2c_
fck"
,
&
i2c2_fck
,
CK_242X
),
CLK
(
"i2c_omap.2"
,
"
i2c_
fck"
,
&
i2chs2_fck
,
CK_243X
),
CLK
(
"i2c_omap.1"
,
"ick"
,
&
i2c1_ick
,
CK_243X
|
CK_242X
),
CLK
(
"i2c_omap.1"
,
"fck"
,
&
i2c1_fck
,
CK_242X
),
CLK
(
"i2c_omap.1"
,
"fck"
,
&
i2chs1_fck
,
CK_243X
),
CLK
(
"i2c_omap.2"
,
"ick"
,
&
i2c2_ick
,
CK_243X
|
CK_242X
),
CLK
(
"i2c_omap.2"
,
"fck"
,
&
i2c2_fck
,
CK_242X
),
CLK
(
"i2c_omap.2"
,
"fck"
,
&
i2chs2_fck
,
CK_243X
),
CLK
(
NULL
,
"gpmc_fck"
,
&
gpmc_fck
,
CK_243X
|
CK_242X
),
CLK
(
NULL
,
"sdma_fck"
,
&
sdma_fck
,
CK_243X
|
CK_242X
),
CLK
(
NULL
,
"sdma_ick"
,
&
sdma_ick
,
CK_243X
|
CK_242X
),
...
...
arch/arm/mach-omap2/clock34xx.c
浏览文件 @
1d14de08
...
...
@@ -141,9 +141,9 @@ static struct omap_clk omap34xx_clks[] = {
CLK
(
"mmci-omap-hs.1"
,
"mmchs_fck"
,
&
mmchs2_fck
,
CK_343X
),
CLK
(
NULL
,
"mspro_fck"
,
&
mspro_fck
,
CK_343X
),
CLK
(
"mmci-omap-hs.0"
,
"mmchs_fck"
,
&
mmchs1_fck
,
CK_343X
),
CLK
(
"i2c_omap.3"
,
"
i2c_
fck"
,
&
i2c3_fck
,
CK_343X
),
CLK
(
"i2c_omap.2"
,
"
i2c_
fck"
,
&
i2c2_fck
,
CK_343X
),
CLK
(
"i2c_omap.1"
,
"
i2c_
fck"
,
&
i2c1_fck
,
CK_343X
),
CLK
(
"i2c_omap.3"
,
"fck"
,
&
i2c3_fck
,
CK_343X
),
CLK
(
"i2c_omap.2"
,
"fck"
,
&
i2c2_fck
,
CK_343X
),
CLK
(
"i2c_omap.1"
,
"fck"
,
&
i2c1_fck
,
CK_343X
),
CLK
(
"omap-mcbsp.5"
,
"fck"
,
&
mcbsp5_fck
,
CK_343X
),
CLK
(
"omap-mcbsp.1"
,
"fck"
,
&
mcbsp1_fck
,
CK_343X
),
CLK
(
NULL
,
"core_48m_fck"
,
&
core_48m_fck
,
CK_343X
),
...
...
@@ -179,9 +179,9 @@ static struct omap_clk omap34xx_clks[] = {
CLK
(
"omap2_mcspi.3"
,
"ick"
,
&
mcspi3_ick
,
CK_343X
),
CLK
(
"omap2_mcspi.2"
,
"ick"
,
&
mcspi2_ick
,
CK_343X
),
CLK
(
"omap2_mcspi.1"
,
"ick"
,
&
mcspi1_ick
,
CK_343X
),
CLK
(
"i2c_omap.3"
,
"i
2c_i
ck"
,
&
i2c3_ick
,
CK_343X
),
CLK
(
"i2c_omap.2"
,
"i
2c_i
ck"
,
&
i2c2_ick
,
CK_343X
),
CLK
(
"i2c_omap.1"
,
"i
2c_i
ck"
,
&
i2c1_ick
,
CK_343X
),
CLK
(
"i2c_omap.3"
,
"ick"
,
&
i2c3_ick
,
CK_343X
),
CLK
(
"i2c_omap.2"
,
"ick"
,
&
i2c2_ick
,
CK_343X
),
CLK
(
"i2c_omap.1"
,
"ick"
,
&
i2c1_ick
,
CK_343X
),
CLK
(
NULL
,
"uart2_ick"
,
&
uart2_ick
,
CK_343X
),
CLK
(
NULL
,
"uart1_ick"
,
&
uart1_ick
,
CK_343X
),
CLK
(
NULL
,
"gpt11_ick"
,
&
gpt11_ick
,
CK_343X
),
...
...
drivers/i2c/busses/i2c-omap.c
浏览文件 @
1d14de08
...
...
@@ -194,14 +194,14 @@ static inline u16 omap_i2c_read_reg(struct omap_i2c_dev *i2c_dev, int reg)
static
int
__init
omap_i2c_get_clocks
(
struct
omap_i2c_dev
*
dev
)
{
if
(
cpu_is_omap16xx
()
||
cpu_class_is_omap2
())
{
dev
->
iclk
=
clk_get
(
dev
->
dev
,
"i
2c_i
ck"
);
dev
->
iclk
=
clk_get
(
dev
->
dev
,
"ick"
);
if
(
IS_ERR
(
dev
->
iclk
))
{
dev
->
iclk
=
NULL
;
return
-
ENODEV
;
}
}
dev
->
fclk
=
clk_get
(
dev
->
dev
,
"
i2c_
fck"
);
dev
->
fclk
=
clk_get
(
dev
->
dev
,
"fck"
);
if
(
IS_ERR
(
dev
->
fclk
))
{
if
(
dev
->
iclk
!=
NULL
)
{
clk_put
(
dev
->
iclk
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录