Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
3b0f4ae3
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看板
提交
3b0f4ae3
编写于
3月 01, 2016
作者:
M
Michael Turquette
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clk-ti' into clk-next
Conflicts: drivers/clk/Kconfig
上级
811a498e
8a8b6eb7
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
1091 addition
and
1 deletion
+1091
-1
Documentation/devicetree/bindings/clock/ti/adpll.txt
Documentation/devicetree/bindings/clock/ti/adpll.txt
+41
-0
drivers/clk/Kconfig
drivers/clk/Kconfig
+1
-0
drivers/clk/Makefile
drivers/clk/Makefile
+1
-1
drivers/clk/ti/Kconfig
drivers/clk/ti/Kconfig
+6
-0
drivers/clk/ti/Makefile
drivers/clk/ti/Makefile
+6
-0
drivers/clk/ti/adpll.c
drivers/clk/ti/adpll.c
+983
-0
drivers/clk/ti/clk-814x.c
drivers/clk/ti/clk-814x.c
+53
-0
未找到文件。
Documentation/devicetree/bindings/clock/ti/adpll.txt
0 → 100644
浏览文件 @
3b0f4ae3
Binding for Texas Instruments ADPLL clock.
Binding status: Unstable - ABI compatibility may be broken in the future
This binding uses the common clock binding[1]. It assumes a
register-mapped ADPLL with two to three selectable input clocks
and three to four children.
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
Required properties:
- compatible : shall be one of "ti,dm814-adpll-s-clock" or
"ti,dm814-adpll-lj-clock" depending on the type of the ADPLL
- #clock-cells : from common clock binding; shall be set to 1.
- clocks : link phandles of parent clocks clkinp and clkinpulow, note
that the adpll-s-clock also has an optional clkinphif
- reg : address and length of the register set for controlling the ADPLL.
Examples:
adpll_mpu_ck: adpll@40 {
#clock-cells = <1>;
compatible = "ti,dm814-adpll-s-clock";
reg = <0x40 0x40>;
clocks = <&devosc_ck &devosc_ck &devosc_ck>;
clock-names = "clkinp", "clkinpulow", "clkinphif";
clock-output-names = "481c5040.adpll.dcoclkldo",
"481c5040.adpll.clkout",
"481c5040.adpll.clkoutx2",
"481c5040.adpll.clkouthif";
};
adpll_dsp_ck: adpll@80 {
#clock-cells = <1>;
compatible = "ti,dm814-adpll-lj-clock";
reg = <0x80 0x30>;
clocks = <&devosc_ck &devosc_ck>;
clock-names = "clkinp", "clkinpulow";
clock-output-names = "481c5080.adpll.dcoclkldo",
"481c5080.adpll.clkout",
"481c5080.adpll.clkoutldo";
};
drivers/clk/Kconfig
浏览文件 @
3b0f4ae3
...
@@ -203,5 +203,6 @@ source "drivers/clk/mvebu/Kconfig"
...
@@ -203,5 +203,6 @@ source "drivers/clk/mvebu/Kconfig"
source "drivers/clk/qcom/Kconfig"
source "drivers/clk/qcom/Kconfig"
source "drivers/clk/samsung/Kconfig"
source "drivers/clk/samsung/Kconfig"
source "drivers/clk/tegra/Kconfig"
source "drivers/clk/tegra/Kconfig"
source "drivers/clk/ti/Kconfig"
endmenu
endmenu
drivers/clk/Makefile
浏览文件 @
3b0f4ae3
...
@@ -77,7 +77,7 @@ obj-$(CONFIG_PLAT_SPEAR) += spear/
...
@@ -77,7 +77,7 @@ obj-$(CONFIG_PLAT_SPEAR) += spear/
obj-$(CONFIG_ARCH_STI)
+=
st/
obj-$(CONFIG_ARCH_STI)
+=
st/
obj-$(CONFIG_ARCH_SUNXI)
+=
sunxi/
obj-$(CONFIG_ARCH_SUNXI)
+=
sunxi/
obj-$(CONFIG_ARCH_TEGRA)
+=
tegra/
obj-$(CONFIG_ARCH_TEGRA)
+=
tegra/
obj-
$(CONFIG_ARCH_OMAP2PLUS)
+=
ti/
obj-
y
+=
ti/
obj-$(CONFIG_ARCH_U8500)
+=
ux500/
obj-$(CONFIG_ARCH_U8500)
+=
ux500/
obj-$(CONFIG_COMMON_CLK_VERSATILE)
+=
versatile/
obj-$(CONFIG_COMMON_CLK_VERSATILE)
+=
versatile/
obj-$(CONFIG_X86)
+=
x86/
obj-$(CONFIG_X86)
+=
x86/
...
...
drivers/clk/ti/Kconfig
0 → 100644
浏览文件 @
3b0f4ae3
config COMMON_CLK_TI_ADPLL
tristate "Clock driver for dm814x ADPLL"
depends on ARCH_OMAP2PLUS || COMPILE_TEST
default y if SOC_TI81XX
---help---
ADPLL clock driver for the dm814x SoC using common clock framework.
drivers/clk/ti/Makefile
浏览文件 @
3b0f4ae3
ifeq
($(CONFIG_ARCH_OMAP2PLUS), y)
obj-y
+=
clk.o autoidle.o clockdomain.o
obj-y
+=
clk.o autoidle.o clockdomain.o
clk-common
=
dpll.o composite.o divider.o gate.o
\
clk-common
=
dpll.o composite.o divider.o gate.o
\
fixed-factor.o mux.o apll.o
\
fixed-factor.o mux.o apll.o
\
...
@@ -18,3 +20,7 @@ obj-$(CONFIG_SOC_AM43XX) += $(clk-common) dpll3xxx.o clk-43xx.o
...
@@ -18,3 +20,7 @@ obj-$(CONFIG_SOC_AM43XX) += $(clk-common) dpll3xxx.o clk-43xx.o
ifdef
CONFIG_ATAGS
ifdef
CONFIG_ATAGS
obj-$(CONFIG_ARCH_OMAP3)
+=
clk-3xxx-legacy.o
obj-$(CONFIG_ARCH_OMAP3)
+=
clk-3xxx-legacy.o
endif
endif
endif
# CONFIG_ARCH_OMAP2PLUS
obj-$(CONFIG_COMMON_CLK_TI_ADPLL)
+=
adpll.o
drivers/clk/ti/adpll.c
0 → 100644
浏览文件 @
3b0f4ae3
此差异已折叠。
点击以展开。
drivers/clk/ti/clk-814x.c
浏览文件 @
3b0f4ae3
...
@@ -5,8 +5,10 @@
...
@@ -5,8 +5,10 @@
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/clk-provider.h>
#include <linux/clk/ti.h>
#include <linux/clk/ti.h>
#include <linux/of_platform.h>
#include "clock.h"
#include "clock.h"
...
@@ -27,11 +29,62 @@ static struct ti_dt_clk dm814_clks[] = {
...
@@ -27,11 +29,62 @@ static struct ti_dt_clk dm814_clks[] = {
{
.
node_name
=
NULL
},
{
.
node_name
=
NULL
},
};
};
static
bool
timer_clocks_initialized
;
static
int
__init
dm814x_adpll_early_init
(
void
)
{
struct
device_node
*
np
;
if
(
!
timer_clocks_initialized
)
return
-
ENODEV
;
np
=
of_find_node_by_name
(
NULL
,
"pllss"
);
if
(
!
np
)
{
pr_err
(
"Could not find node for plls
\n
"
);
return
-
ENODEV
;
}
of_platform_populate
(
np
,
NULL
,
NULL
,
NULL
);
return
0
;
}
core_initcall
(
dm814x_adpll_early_init
);
static
const
char
*
const
init_clocks
[]
=
{
"pll040clkout"
,
/* MPU 481c5040.adpll.clkout */
"pll290clkout"
,
/* DDR 481c5290.adpll.clkout */
};
static
int
__init
dm814x_adpll_enable_init_clocks
(
void
)
{
int
i
,
err
;
if
(
!
timer_clocks_initialized
)
return
-
ENODEV
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
init_clocks
);
i
++
)
{
struct
clk
*
clock
;
clock
=
clk_get
(
NULL
,
init_clocks
[
i
]);
if
(
WARN
(
IS_ERR
(
clock
),
"could not find init clock %s
\n
"
,
init_clocks
[
i
]))
continue
;
err
=
clk_prepare_enable
(
clock
);
if
(
WARN
(
err
,
"could not enable init clock %s
\n
"
,
init_clocks
[
i
]))
continue
;
}
return
0
;
}
postcore_initcall
(
dm814x_adpll_enable_init_clocks
);
int
__init
dm814x_dt_clk_init
(
void
)
int
__init
dm814x_dt_clk_init
(
void
)
{
{
ti_dt_clocks_register
(
dm814_clks
);
ti_dt_clocks_register
(
dm814_clks
);
omap2_clk_disable_autoidle_all
();
omap2_clk_disable_autoidle_all
();
omap2_clk_enable_init_clocks
(
NULL
,
0
);
omap2_clk_enable_init_clocks
(
NULL
,
0
);
timer_clocks_initialized
=
true
;
return
0
;
return
0
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录