All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: samsung: exynos7: Enable clocks for CMU_CCORE and CMU_FSYS0 blocks
@ 2016-04-12 11:07 ` Alim Akhtar
  0 siblings, 0 replies; 12+ messages in thread
From: Alim Akhtar @ 2016-04-12 11:07 UTC (permalink / raw)
  To: linux-arm-kernel, s.nawrocki
  Cc: thomas.ab, k.kozlowski, linux-kernel, linux-samsung-soc,
	linux-clk, sboyd, mturquette, tomasz.figa

This patch enables clocks for CMU_CCORE and CMU_FSYS0 blocks. This is
required before accessing registers of these blocks.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
 drivers/clk/samsung/clk-exynos7.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/clk/samsung/clk-exynos7.c b/drivers/clk/samsung/clk-exynos7.c
index ad68d46..7013aa7 100644
--- a/drivers/clk/samsung/clk-exynos7.c
+++ b/drivers/clk/samsung/clk-exynos7.c
@@ -8,6 +8,7 @@
  *
 */
 
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/of.h>
 
@@ -205,7 +206,11 @@ static struct samsung_cmu_info topc_cmu_info __initdata = {
 
 static void __init exynos7_clk_topc_init(struct device_node *np)
 {
+	struct clk *clk;
+
 	samsung_cmu_register_one(np, &topc_cmu_info);
+	clk = __clk_lookup("aclk_ccore_133");
+	clk_prepare_enable(clk);
 }
 
 CLK_OF_DECLARE(exynos7_clk_topc, "samsung,exynos7-clock-topc",
@@ -573,7 +578,11 @@ static struct samsung_cmu_info top1_cmu_info __initdata = {
 
 static void __init exynos7_clk_top1_init(struct device_node *np)
 {
+	struct clk *clk;
+
 	samsung_cmu_register_one(np, &top1_cmu_info);
+	clk = __clk_lookup("aclk_fsys0_200");
+	clk_prepare_enable(clk);
 }
 
 CLK_OF_DECLARE(exynos7_clk_top1, "samsung,exynos7-clock-top1",
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-04-13 11:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 11:07 [PATCH] clk: samsung: exynos7: Enable clocks for CMU_CCORE and CMU_FSYS0 blocks Alim Akhtar
2016-04-12 11:07 ` Alim Akhtar
2016-04-12 11:37 ` Sylwester Nawrocki
2016-04-12 11:37   ` Sylwester Nawrocki
2016-04-13  6:26 ` Tomasz Figa
2016-04-13  6:26   ` Tomasz Figa
2016-04-13 10:36   ` Sylwester Nawrocki
2016-04-13 10:36     ` Sylwester Nawrocki
2016-04-13 11:31     ` Tomasz Figa
2016-04-13 11:31       ` Tomasz Figa
2016-04-13 11:54       ` Alim Akhtar
2016-04-13 11:54         ` Alim Akhtar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.