summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Turquette <mturquette@baylibre.com>2015-06-20 12:18:03 -0700
committerMichael Turquette <mturquette@baylibre.com>2015-06-20 13:26:40 -0700
commit85e88fab134d8896cf4d8be0aac10cc54018ee63 (patch)
treecc0a6dab17bfc06837c8f6f1e1763f9490dec60e /arch
parentddfb157444e3cdb6da18ea759730b4b4af65d3d9 (diff)
parent8eb92ab68f961bb9045d8d7882cceb2d6be0659d (diff)
downloadlinux-85e88fab134d8896cf4d8be0aac10cc54018ee63.tar.gz
linux-85e88fab134d8896cf4d8be0aac10cc54018ee63.tar.bz2
linux-85e88fab134d8896cf4d8be0aac10cc54018ee63.zip
Merge branch 'clk-exynos-cpu-clk' into clk-next
Folded into this merge commit is a build error fix: s/clk/core in clk_change_rate due to the new struct clk_core
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/exynos.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
index 5917a30eee33..9cb17ff1e152 100644
--- a/arch/arm/mach-exynos/exynos.c
+++ b/arch/arm/mach-exynos/exynos.c
@@ -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)
{
/*
@@ -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);
}