Skip to content

Commit

Permalink
Merge branch 'clk-exynos-cpu-clk' into clk-next
Browse files Browse the repository at this point in the history
Folded into this merge commit is a build error fix: s/clk/core in
clk_change_rate due to the new struct clk_core
  • Loading branch information
mturquette committed Jun 20, 2015
2 parents ddfb157 + 8eb92ab commit 85e88fa
Show file tree
Hide file tree
Showing 12 changed files with 471 additions and 212 deletions.
21 changes: 20 additions & 1 deletion arch/arm/mach-exynos/exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,25 @@ static void __init exynos_init_irq(void)
exynos_map_pmu();
}

static const struct of_device_id exynos_cpufreq_matches[] = {
{ .compatible = "samsung,exynos4210", .data = "cpufreq-dt" },
{ /* sentinel */ }
};

static void __init exynos_cpufreq_init(void)
{
struct device_node *root = of_find_node_by_path("/");
const struct of_device_id *match;

match = of_match_node(exynos_cpufreq_matches, root);
if (!match) {
platform_device_register_simple("exynos-cpufreq", -1, NULL, 0);
return;
}

platform_device_register_simple(match->data, -1, NULL, 0);
}

static void __init exynos_dt_machine_init(void)
{
/*
Expand All @@ -245,7 +264,7 @@ static void __init exynos_dt_machine_init(void)
of_machine_is_compatible("samsung,exynos5250"))
platform_device_register(&exynos_cpuidle);

platform_device_register_simple("exynos-cpufreq", -1, NULL, 0);
exynos_cpufreq_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
Expand Down
3 changes: 3 additions & 0 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,9 @@ static void clk_change_rate(struct clk_core *core)
if (core->notifier_count && old_rate != core->rate)
__clk_notify(core, POST_RATE_CHANGE, old_rate, core->rate);

if (core->flags & CLK_RECALC_NEW_RATES)
(void)clk_calc_new_rates(core, core->new_rate);

/*
* Use safe iteration, as change_rate can actually swap parents
* for certain clock types.
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/samsung/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Samsung Clock specific Makefile
#

obj-$(CONFIG_COMMON_CLK) += clk.o clk-pll.o
obj-$(CONFIG_COMMON_CLK) += clk.o clk-pll.o clk-cpu.o
obj-$(CONFIG_SOC_EXYNOS3250) += clk-exynos3250.o
obj-$(CONFIG_ARCH_EXYNOS4) += clk-exynos4.o
obj-$(CONFIG_SOC_EXYNOS4415) += clk-exynos4415.o
Expand Down
Loading

0 comments on commit 85e88fa

Please sign in to comment.