aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung
diff options
context:
space:
mode:
authorShaik Ameer Basha <shaik.ameer@samsung.com>2014-05-08 07:27:58 -0400
committerTomasz Figa <t.figa@samsung.com>2014-05-14 13:40:21 -0400
commit6575fa76c394d6f6c0ed3f35475324c8846984af (patch)
tree0f85ec394787c9720559b6f82f29f2cd98ba8f67 /drivers/clk/samsung
parent0a22c3065333d3138475ff1d25851633e8dae722 (diff)
clk: samsung: exynos5420: update clocks for WCORE block
This patch adds missing clocks for WCORE block. Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com> Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com> Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/clk/samsung')
-rw-r--r--drivers/clk/samsung/clk-exynos5420.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
index 41af467719dc..a6c87d35c46d 100644
--- a/drivers/clk/samsung/clk-exynos5420.c
+++ b/drivers/clk/samsung/clk-exynos5420.c
@@ -89,6 +89,7 @@
89#define GATE_BUS_PERIC1 0x10754 89#define GATE_BUS_PERIC1 0x10754
90#define GATE_BUS_PERIS0 0x10760 90#define GATE_BUS_PERIS0 0x10760
91#define GATE_BUS_PERIS1 0x10764 91#define GATE_BUS_PERIS1 0x10764
92#define GATE_BUS_NOC 0x10770
92#define GATE_TOP_SCLK_ISP 0x10870 93#define GATE_TOP_SCLK_ISP 0x10870
93#define GATE_IP_GSCL0 0x10910 94#define GATE_IP_GSCL0 0x10910
94#define GATE_IP_GSCL1 0x10920 95#define GATE_IP_GSCL1 0x10920
@@ -180,6 +181,7 @@ static unsigned long exynos5420_clk_regs[] __initdata = {
180 GATE_BUS_PERIC1, 181 GATE_BUS_PERIC1,
181 GATE_BUS_PERIS0, 182 GATE_BUS_PERIS0,
182 GATE_BUS_PERIS1, 183 GATE_BUS_PERIS1,
184 GATE_BUS_NOC,
183 GATE_TOP_SCLK_ISP, 185 GATE_TOP_SCLK_ISP,
184 GATE_IP_GSCL0, 186 GATE_IP_GSCL0,
185 GATE_IP_GSCL1, 187 GATE_IP_GSCL1,
@@ -271,6 +273,13 @@ PNAME(mout_user_aclk200_fsys_p) = {"fin_pll", "mout_sw_aclk200_fsys"};
271 273
272PNAME(mout_sw_aclk200_fsys2_p) = {"dout_aclk200_fsys2", "mout_sclk_spll"}; 274PNAME(mout_sw_aclk200_fsys2_p) = {"dout_aclk200_fsys2", "mout_sclk_spll"};
273PNAME(mout_user_aclk200_fsys2_p) = {"fin_pll", "mout_sw_aclk200_fsys2"}; 275PNAME(mout_user_aclk200_fsys2_p) = {"fin_pll", "mout_sw_aclk200_fsys2"};
276PNAME(mout_sw_aclk100_noc_p) = {"dout_aclk100_noc", "mout_sclk_spll"};
277PNAME(mout_user_aclk100_noc_p) = {"fin_pll", "mout_sw_aclk100_noc"};
278
279PNAME(mout_sw_aclk400_wcore_p) = {"dout_aclk400_wcore", "mout_sclk_spll"};
280PNAME(mout_aclk400_wcore_bpll_p) = {"mout_aclk400_wcore", "sclk_bpll"};
281PNAME(mout_user_aclk400_wcore_p) = {"fin_pll", "mout_sw_aclk400_wcore"};
282
274PNAME(mout_sw_aclk400_isp_p) = {"dout_aclk400_isp", "mout_sclk_spll"}; 283PNAME(mout_sw_aclk400_isp_p) = {"dout_aclk400_isp", "mout_sclk_spll"};
275PNAME(mout_user_aclk400_isp_p) = {"fin_pll", "mout_sw_aclk400_isp"}; 284PNAME(mout_user_aclk400_isp_p) = {"fin_pll", "mout_sw_aclk400_isp"};
276 285
@@ -370,6 +379,8 @@ static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
370 SRC_TOP0, 4, 2, "aclk400_mscl"), 379 SRC_TOP0, 4, 2, "aclk400_mscl"),
371 MUX(0, "mout_aclk200", mout_group1_p, SRC_TOP0, 8, 2), 380 MUX(0, "mout_aclk200", mout_group1_p, SRC_TOP0, 8, 2),
372 MUX(0, "mout_aclk200_fsys2", mout_group1_p, SRC_TOP0, 12, 2), 381 MUX(0, "mout_aclk200_fsys2", mout_group1_p, SRC_TOP0, 12, 2),
382 MUX(0, "mout_aclk400_wcore", mout_group1_p, SRC_TOP0, 16, 2),
383 MUX(0, "mout_aclk100_noc", mout_group1_p, SRC_TOP0, 20, 2),
373 MUX(0, "mout_aclk200_fsys", mout_group1_p, SRC_TOP0, 28, 2), 384 MUX(0, "mout_aclk200_fsys", mout_group1_p, SRC_TOP0, 28, 2),
374 385
375 MUX(0, "mout_aclk333_432_gscl", mout_group4_p, SRC_TOP1, 0, 2), 386 MUX(0, "mout_aclk333_432_gscl", mout_group4_p, SRC_TOP1, 0, 2),
@@ -397,6 +408,10 @@ static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
397 SRC_TOP3, 8, 1), 408 SRC_TOP3, 8, 1),
398 MUX(0, "mout_user_aclk200_fsys2", mout_user_aclk200_fsys2_p, 409 MUX(0, "mout_user_aclk200_fsys2", mout_user_aclk200_fsys2_p,
399 SRC_TOP3, 12, 1), 410 SRC_TOP3, 12, 1),
411 MUX(0, "mout_user_aclk400_wcore", mout_user_aclk400_wcore_p,
412 SRC_TOP3, 16, 1),
413 MUX(0, "mout_user_aclk100_noc", mout_user_aclk100_noc_p,
414 SRC_TOP3, 20, 1),
400 MUX(0, "mout_user_aclk200_fsys", mout_user_aclk200_fsys_p, 415 MUX(0, "mout_user_aclk200_fsys", mout_user_aclk200_fsys_p,
401 SRC_TOP3, 28, 1), 416 SRC_TOP3, 28, 1),
402 417
@@ -447,6 +462,10 @@ static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
447 MUX(0, "mout_sw_aclk200", mout_sw_aclk200_p, SRC_TOP10, 8, 1), 462 MUX(0, "mout_sw_aclk200", mout_sw_aclk200_p, SRC_TOP10, 8, 1),
448 MUX(0, "mout_sw_aclk200_fsys2", mout_sw_aclk200_fsys2_p, 463 MUX(0, "mout_sw_aclk200_fsys2", mout_sw_aclk200_fsys2_p,
449 SRC_TOP10, 12, 1), 464 SRC_TOP10, 12, 1),
465 MUX(0, "mout_sw_aclk400_wcore", mout_sw_aclk400_wcore_p,
466 SRC_TOP10, 16, 1),
467 MUX(0, "mout_sw_aclk100_noc", mout_sw_aclk100_noc_p,
468 SRC_TOP10, 20, 1),
450 MUX(0, "mout_sw_aclk200_fsys", mout_sw_aclk200_fsys_p, 469 MUX(0, "mout_sw_aclk200_fsys", mout_sw_aclk200_fsys_p,
451 SRC_TOP10, 28, 1), 470 SRC_TOP10, 28, 1),
452 471
@@ -482,6 +501,9 @@ static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
482 MUX(0, "mout_pixel", mout_group2_p, SRC_DISP10, 24, 3), 501 MUX(0, "mout_pixel", mout_group2_p, SRC_DISP10, 24, 3),
483 MUX(CLK_MOUT_HDMI, "mout_hdmi", mout_hdmi_p, SRC_DISP10, 28, 1), 502 MUX(CLK_MOUT_HDMI, "mout_hdmi", mout_hdmi_p, SRC_DISP10, 28, 1),
484 MUX(0, "mout_fimd1_opt", mout_group2_p, SRC_DISP10, 8, 3), 503 MUX(0, "mout_fimd1_opt", mout_group2_p, SRC_DISP10, 8, 3),
504
505 MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
506 TOP_SPARE2, 4, 1),
485 MUX(0, "mout_fimd1_final", mout_fimd1_final_p, TOP_SPARE2, 8, 1), 507 MUX(0, "mout_fimd1_final", mout_fimd1_final_p, TOP_SPARE2, 8, 1),
486 508
487 /* MAU Block */ 509 /* MAU Block */
@@ -528,6 +550,9 @@ static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
528 DIV(0, "dout_aclk400_mscl", "mout_aclk400_mscl", DIV_TOP0, 4, 3), 550 DIV(0, "dout_aclk400_mscl", "mout_aclk400_mscl", DIV_TOP0, 4, 3),
529 DIV(0, "dout_aclk200", "mout_aclk200", DIV_TOP0, 8, 3), 551 DIV(0, "dout_aclk200", "mout_aclk200", DIV_TOP0, 8, 3),
530 DIV(0, "dout_aclk200_fsys2", "mout_aclk200_fsys2", DIV_TOP0, 12, 3), 552 DIV(0, "dout_aclk200_fsys2", "mout_aclk200_fsys2", DIV_TOP0, 12, 3),
553 DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
554 DIV_TOP0, 16, 3),
555 DIV(0, "dout_aclk100_noc", "mout_aclk100_noc", DIV_TOP0, 20, 3),
531 DIV(0, "dout_pclk200_fsys", "mout_pclk200_fsys", DIV_TOP0, 24, 3), 556 DIV(0, "dout_pclk200_fsys", "mout_pclk200_fsys", DIV_TOP0, 24, 3),
532 DIV(0, "dout_aclk200_fsys", "mout_aclk200_fsys", DIV_TOP0, 28, 3), 557 DIV(0, "dout_aclk200_fsys", "mout_aclk200_fsys", DIV_TOP0, 28, 3),
533 558