Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
db544f1b
Commit
db544f1b
authored
Sep 16, 2015
by
Stephen Boyd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clk-next' into v4.3-rc1
parents
6ff33f39
e1595d89
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
+30
-5
drivers/clk/h8300/clk-h8s2678.c
drivers/clk/h8300/clk-h8s2678.c
+1
-0
drivers/clk/hisilicon/Kconfig
drivers/clk/hisilicon/Kconfig
+7
-1
drivers/clk/hisilicon/Makefile
drivers/clk/hisilicon/Makefile
+2
-1
drivers/clk/rockchip/clk-rk3188.c
drivers/clk/rockchip/clk-rk3188.c
+7
-2
drivers/clk/rockchip/clk-rk3368.c
drivers/clk/rockchip/clk-rk3368.c
+6
-0
drivers/clk/tegra/clk-dfll.c
drivers/clk/tegra/clk-dfll.c
+7
-1
No files found.
drivers/clk/h8300/clk-h8s2678.c
View file @
db544f1b
...
...
@@ -8,6 +8,7 @@
#include <linux/err.h>
#include <linux/device.h>
#include <linux/of_address.h>
#include <linux/slab.h>
static
DEFINE_SPINLOCK
(
clklock
);
...
...
drivers/clk/hisilicon/Kconfig
View file @
db544f1b
config COMMON_CLK_HI6220
bool "Hi6220 Clock Driver"
depends on
(ARCH_HISI || COMPILE_TEST) && MAILBOX
depends on
ARCH_HISI || COMPILE_TEST
default ARCH_HISI
help
Build the Hisilicon Hi6220 clock driver based on the common clock framework.
config STUB_CLK_HI6220
bool "Hi6220 Stub Clock Driver"
depends on COMMON_CLK_HI6220 && MAILBOX
help
Build the Hisilicon Hi6220 stub clock driver.
drivers/clk/hisilicon/Makefile
View file @
db544f1b
...
...
@@ -7,4 +7,5 @@ obj-y += clk.o clkgate-separated.o clkdivider-hi6220.o
obj-$(CONFIG_ARCH_HI3xxx)
+=
clk-hi3620.o
obj-$(CONFIG_ARCH_HIP04)
+=
clk-hip04.o
obj-$(CONFIG_ARCH_HIX5HD2)
+=
clk-hix5hd2.o
obj-$(CONFIG_COMMON_CLK_HI6220)
+=
clk-hi6220.o clk-hi6220-stub.o
obj-$(CONFIG_COMMON_CLK_HI6220)
+=
clk-hi6220.o
obj-$(CONFIG_STUB_CLK_HI6220)
+=
clk-hi6220-stub.o
drivers/clk/rockchip/clk-rk3188.c
View file @
db544f1b
...
...
@@ -716,6 +716,8 @@ static const char *const rk3188_critical_clocks[] __initconst = {
"aclk_cpu"
,
"aclk_peri"
,
"hclk_peri"
,
"pclk_cpu"
,
"pclk_peri"
,
};
static
void
__init
rk3188_common_clk_init
(
struct
device_node
*
np
)
...
...
@@ -744,8 +746,6 @@ static void __init rk3188_common_clk_init(struct device_node *np)
rockchip_clk_register_branches
(
common_clk_branches
,
ARRAY_SIZE
(
common_clk_branches
));
rockchip_clk_protect_critical
(
rk3188_critical_clocks
,
ARRAY_SIZE
(
rk3188_critical_clocks
));
rockchip_register_softrst
(
np
,
9
,
reg_base
+
RK2928_SOFTRST_CON
(
0
),
ROCKCHIP_SOFTRST_HIWORD_MASK
);
...
...
@@ -765,6 +765,8 @@ static void __init rk3066a_clk_init(struct device_node *np)
mux_armclk_p
,
ARRAY_SIZE
(
mux_armclk_p
),
&
rk3066_cpuclk_data
,
rk3066_cpuclk_rates
,
ARRAY_SIZE
(
rk3066_cpuclk_rates
));
rockchip_clk_protect_critical
(
rk3188_critical_clocks
,
ARRAY_SIZE
(
rk3188_critical_clocks
));
}
CLK_OF_DECLARE
(
rk3066a_cru
,
"rockchip,rk3066a-cru"
,
rk3066a_clk_init
);
...
...
@@ -801,6 +803,9 @@ static void __init rk3188a_clk_init(struct device_node *np)
pr_warn
(
"%s: missing clocks to reparent aclk_cpu_pre to gpll
\n
"
,
__func__
);
}
rockchip_clk_protect_critical
(
rk3188_critical_clocks
,
ARRAY_SIZE
(
rk3188_critical_clocks
));
}
CLK_OF_DECLARE
(
rk3188a_cru
,
"rockchip,rk3188a-cru"
,
rk3188a_clk_init
);
...
...
drivers/clk/rockchip/clk-rk3368.c
View file @
db544f1b
...
...
@@ -818,6 +818,10 @@ static struct rockchip_clk_branch rk3368_clk_branches[] __initdata = {
GATE
(
0
,
"sclk_timer00"
,
"xin24m"
,
CLK_IGNORE_UNUSED
,
RK3368_CLKGATE_CON
(
24
),
0
,
GFLAGS
),
};
static
const
char
*
const
rk3368_critical_clocks
[]
__initconst
=
{
"pclk_pd_pmu"
,
};
static
void
__init
rk3368_clk_init
(
struct
device_node
*
np
)
{
void
__iomem
*
reg_base
;
...
...
@@ -862,6 +866,8 @@ static void __init rk3368_clk_init(struct device_node *np)
RK3368_GRF_SOC_STATUS0
);
rockchip_clk_register_branches
(
rk3368_clk_branches
,
ARRAY_SIZE
(
rk3368_clk_branches
));
rockchip_clk_protect_critical
(
rk3368_critical_clocks
,
ARRAY_SIZE
(
rk3368_critical_clocks
));
rockchip_clk_register_armclk
(
ARMCLKB
,
"armclkb"
,
mux_armclkb_p
,
ARRAY_SIZE
(
mux_armclkb_p
),
...
...
drivers/clk/tegra/clk-dfll.c
View file @
db544f1b
...
...
@@ -682,11 +682,17 @@ static int find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate)
struct
dev_pm_opp
*
opp
;
int
i
,
uv
;
rcu_read_lock
();
opp
=
dev_pm_opp_find_freq_ceil
(
td
->
soc
->
dev
,
&
rate
);
if
(
IS_ERR
(
opp
))
if
(
IS_ERR
(
opp
))
{
rcu_read_unlock
();
return
PTR_ERR
(
opp
);
}
uv
=
dev_pm_opp_get_voltage
(
opp
);
rcu_read_unlock
();
for
(
i
=
0
;
i
<
td
->
i2c_lut_size
;
i
++
)
{
if
(
regulator_list_voltage
(
td
->
vdd_reg
,
td
->
i2c_lut
[
i
])
==
uv
)
return
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment