aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-10-15 13:41:16 -0400
committerTomasz Figa <t.figa@samsung.com>2013-12-30 12:15:47 -0500
commit38ee37540f5a9dd946a9eaca3d48d178c72dbe15 (patch)
treed0f7cf52e8031c66bfa2846e31597c70260cd244 /drivers/clk/samsung
parent2786c9622e9031ff03b6d54d8b5d2d28e9fd2579 (diff)
clk: samsung: exynos5250: Make names of mux and div clocks consistent
This patch renames all mux clocks to start with mout_ prefix and all div clocks to start with div_ prefix for consistency with other clocks already defined this way. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Tested-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/clk/samsung')
-rw-r--r--drivers/clk/samsung/clk-exynos5250.c245
1 files changed, 123 insertions, 122 deletions
diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c
index 84dd55fc0fc0..35aabd37a340 100644
--- a/drivers/clk/samsung/clk-exynos5250.c
+++ b/drivers/clk/samsung/clk-exynos5250.c
@@ -182,7 +182,7 @@ static unsigned long exynos5250_clk_regs[] __initdata = {
182 182
183/* list of all parent clock list */ 183/* list of all parent clock list */
184PNAME(mout_apll_p) = { "fin_pll", "fout_apll", }; 184PNAME(mout_apll_p) = { "fin_pll", "fout_apll", };
185PNAME(mout_cpu_p) = { "mout_apll", "sclk_mpll", }; 185PNAME(mout_cpu_p) = { "mout_apll", "mout_mpll", };
186PNAME(mout_mpll_fout_p) = { "fout_mplldiv2", "fout_mpll" }; 186PNAME(mout_mpll_fout_p) = { "fout_mplldiv2", "fout_mpll" };
187PNAME(mout_mpll_p) = { "fin_pll", "mout_mpll_fout" }; 187PNAME(mout_mpll_p) = { "fin_pll", "mout_mpll_fout" };
188PNAME(mout_bpll_fout_p) = { "fout_bplldiv2", "fout_bpll" }; 188PNAME(mout_bpll_fout_p) = { "fout_bplldiv2", "fout_bpll" };
@@ -191,28 +191,28 @@ PNAME(mout_vpllsrc_p) = { "fin_pll", "sclk_hdmi27m" };
191PNAME(mout_vpll_p) = { "mout_vpllsrc", "fout_vpll" }; 191PNAME(mout_vpll_p) = { "mout_vpllsrc", "fout_vpll" };
192PNAME(mout_cpll_p) = { "fin_pll", "fout_cpll" }; 192PNAME(mout_cpll_p) = { "fin_pll", "fout_cpll" };
193PNAME(mout_epll_p) = { "fin_pll", "fout_epll" }; 193PNAME(mout_epll_p) = { "fin_pll", "fout_epll" };
194PNAME(mout_mpll_user_p) = { "fin_pll", "sclk_mpll" }; 194PNAME(mout_mpll_user_p) = { "fin_pll", "mout_mpll" };
195PNAME(mout_bpll_user_p) = { "fin_pll", "sclk_bpll" }; 195PNAME(mout_bpll_user_p) = { "fin_pll", "mout_bpll" };
196PNAME(mout_aclk166_p) = { "sclk_cpll", "sclk_mpll_user" }; 196PNAME(mout_aclk166_p) = { "mout_cpll", "mout_mpll_user" };
197PNAME(mout_aclk200_p) = { "sclk_mpll_user", "sclk_bpll_user" }; 197PNAME(mout_aclk200_p) = { "mout_mpll_user", "mout_bpll_user" };
198PNAME(mout_hdmi_p) = { "div_hdmi_pixel", "sclk_hdmiphy" }; 198PNAME(mout_hdmi_p) = { "div_hdmi_pixel", "sclk_hdmiphy" };
199PNAME(mout_usb3_p) = { "sclk_mpll_user", "sclk_cpll" }; 199PNAME(mout_usb3_p) = { "mout_mpll_user", "mout_cpll" };
200PNAME(mout_group1_p) = { "fin_pll", "fin_pll", "sclk_hdmi27m", 200PNAME(mout_group1_p) = { "fin_pll", "fin_pll", "sclk_hdmi27m",
201 "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy", 201 "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy",
202 "sclk_mpll_user", "sclk_epll", "sclk_vpll", 202 "mout_mpll_user", "mout_epll", "mout_vpll",
203 "sclk_cpll" }; 203 "mout_cpll" };
204PNAME(mout_audio0_p) = { "cdclk0", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", 204PNAME(mout_audio0_p) = { "cdclk0", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy",
205 "sclk_uhostphy", "sclk_hdmiphy", 205 "sclk_uhostphy", "sclk_hdmiphy",
206 "sclk_mpll_user", "sclk_epll", "sclk_vpll", 206 "mout_mpll_user", "mout_epll", "mout_vpll",
207 "sclk_cpll" }; 207 "mout_cpll" };
208PNAME(mout_audio1_p) = { "cdclk1", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", 208PNAME(mout_audio1_p) = { "cdclk1", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy",
209 "sclk_uhostphy", "sclk_hdmiphy", 209 "sclk_uhostphy", "sclk_hdmiphy",
210 "sclk_mpll_user", "sclk_epll", "sclk_vpll", 210 "mout_mpll_user", "mout_epll", "mout_vpll",
211 "sclk_cpll" }; 211 "mout_cpll" };
212PNAME(mout_audio2_p) = { "cdclk2", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", 212PNAME(mout_audio2_p) = { "cdclk2", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy",
213 "sclk_uhostphy", "sclk_hdmiphy", 213 "sclk_uhostphy", "sclk_hdmiphy",
214 "sclk_mpll_user", "sclk_epll", "sclk_vpll", 214 "mout_mpll_user", "mout_epll", "mout_vpll",
215 "sclk_cpll" }; 215 "mout_cpll" };
216PNAME(mout_spdif_p) = { "sclk_audio0", "sclk_audio1", "sclk_audio2", 216PNAME(mout_spdif_p) = { "sclk_audio0", "sclk_audio1", "sclk_audio2",
217 "spdif_extclk" }; 217 "spdif_extclk" };
218 218
@@ -255,7 +255,7 @@ static struct samsung_mux_clock exynos5250_mux_clks[] __initdata = {
255 /* 255 /*
256 * CMU_CORE 256 * CMU_CORE
257 */ 257 */
258 MUX_A(none, "sclk_mpll", mout_mpll_p, SRC_CORE1, 8, 1, "mout_mpll"), 258 MUX_A(none, "mout_mpll", mout_mpll_p, SRC_CORE1, 8, 1, "mout_mpll"),
259 259
260 /* 260 /*
261 * CMU_TOP 261 * CMU_TOP
@@ -264,11 +264,11 @@ static struct samsung_mux_clock exynos5250_mux_clks[] __initdata = {
264 MUX(none, "mout_aclk200", mout_aclk200_p, SRC_TOP0, 12, 1), 264 MUX(none, "mout_aclk200", mout_aclk200_p, SRC_TOP0, 12, 1),
265 MUX(none, "mout_aclk333", mout_aclk166_p, SRC_TOP0, 16, 1), 265 MUX(none, "mout_aclk333", mout_aclk166_p, SRC_TOP0, 16, 1),
266 266
267 MUX(none, "sclk_cpll", mout_cpll_p, SRC_TOP2, 8, 1), 267 MUX(none, "mout_cpll", mout_cpll_p, SRC_TOP2, 8, 1),
268 MUX(none, "sclk_epll", mout_epll_p, SRC_TOP2, 12, 1), 268 MUX(none, "mout_epll", mout_epll_p, SRC_TOP2, 12, 1),
269 MUX(none, "sclk_vpll", mout_vpll_p, SRC_TOP2, 16, 1), 269 MUX(none, "mout_vpll", mout_vpll_p, SRC_TOP2, 16, 1),
270 MUX(none, "sclk_mpll_user", mout_mpll_user_p, SRC_TOP2, 20, 1), 270 MUX(none, "mout_mpll_user", mout_mpll_user_p, SRC_TOP2, 20, 1),
271 MUX(none, "sclk_bpll_user", mout_bpll_user_p, SRC_TOP2, 24, 1), 271 MUX(none, "mout_bpll_user", mout_bpll_user_p, SRC_TOP2, 24, 1),
272 272
273 MUX(none, "mout_cam_bayer", mout_group1_p, SRC_GSCL, 12, 4), 273 MUX(none, "mout_cam_bayer", mout_group1_p, SRC_GSCL, 12, 4),
274 MUX(none, "mout_cam0", mout_group1_p, SRC_GSCL, 16, 4), 274 MUX(none, "mout_cam0", mout_group1_p, SRC_GSCL, 16, 4),
@@ -308,7 +308,7 @@ static struct samsung_mux_clock exynos5250_mux_clks[] __initdata = {
308 /* 308 /*
309 * CMU_CDREX 309 * CMU_CDREX
310 */ 310 */
311 MUX(none, "sclk_bpll", mout_bpll_p, SRC_CDREX, 0, 1), 311 MUX(none, "mout_bpll", mout_bpll_p, SRC_CDREX, 0, 1),
312 312
313 MUX(none, "mout_mpll_fout", mout_mpll_fout_p, PLL_DIV2_SEL, 4, 1), 313 MUX(none, "mout_mpll_fout", mout_mpll_fout_p, PLL_DIV2_SEL, 4, 1),
314 MUX(none, "mout_bpll_fout", mout_bpll_fout_p, PLL_DIV2_SEL, 0, 1), 314 MUX(none, "mout_bpll_fout", mout_bpll_fout_p, PLL_DIV2_SEL, 0, 1),
@@ -326,19 +326,19 @@ static struct samsung_div_clock exynos5250_div_clks[] __initdata = {
326 * CMU_CPU 326 * CMU_CPU
327 */ 327 */
328 DIV(none, "div_arm", "mout_cpu", DIV_CPU0, 0, 3), 328 DIV(none, "div_arm", "mout_cpu", DIV_CPU0, 0, 3),
329 DIV(none, "sclk_apll", "mout_apll", DIV_CPU0, 24, 3), 329 DIV(none, "div_apll", "mout_apll", DIV_CPU0, 24, 3),
330 DIV_A(none, "armclk", "div_arm", DIV_CPU0, 28, 3, "armclk"), 330 DIV_A(none, "div_arm2", "div_arm", DIV_CPU0, 28, 3, "armclk"),
331 331
332 /* 332 /*
333 * CMU_TOP 333 * CMU_TOP
334 */ 334 */
335 DIV(none, "aclk66", "aclk66_pre", DIV_TOP0, 0, 3), 335 DIV(none, "div_aclk66", "div_aclk66_pre", DIV_TOP0, 0, 3),
336 DIV(none, "aclk166", "mout_aclk166", DIV_TOP0, 8, 3), 336 DIV(none, "div_aclk166", "mout_aclk166", DIV_TOP0, 8, 3),
337 DIV(none, "aclk200", "mout_aclk200", DIV_TOP0, 12, 3), 337 DIV(none, "div_aclk200", "mout_aclk200", DIV_TOP0, 12, 3),
338 DIV(none, "aclk266", "sclk_mpll_user", DIV_TOP0, 16, 3), 338 DIV(none, "div_aclk266", "mout_mpll_user", DIV_TOP0, 16, 3),
339 DIV(none, "aclk333", "mout_aclk333", DIV_TOP0, 20, 3), 339 DIV(none, "div_aclk333", "mout_aclk333", DIV_TOP0, 20, 3),
340 340
341 DIV(none, "aclk66_pre", "sclk_mpll_user", DIV_TOP1, 24, 3), 341 DIV(none, "div_aclk66_pre", "mout_mpll_user", DIV_TOP1, 24, 3),
342 342
343 DIV(none, "div_cam_bayer", "mout_cam_bayer", DIV_GSCL, 12, 4), 343 DIV(none, "div_cam_bayer", "mout_cam_bayer", DIV_GSCL, 12, 4),
344 DIV(none, "div_cam0", "mout_cam0", DIV_GSCL, 16, 4), 344 DIV(none, "div_cam0", "mout_cam0", DIV_GSCL, 16, 4),
@@ -351,7 +351,7 @@ static struct samsung_div_clock exynos5250_div_clks[] __initdata = {
351 DIV_F(none, "div_mipi1_pre", "div_mipi1", 351 DIV_F(none, "div_mipi1_pre", "div_mipi1",
352 DIV_DISP1_0, 20, 4, CLK_SET_RATE_PARENT, 0), 352 DIV_DISP1_0, 20, 4, CLK_SET_RATE_PARENT, 0),
353 DIV(none, "div_dp", "mout_dp", DIV_DISP1_0, 24, 4), 353 DIV(none, "div_dp", "mout_dp", DIV_DISP1_0, 24, 4),
354 DIV(sclk_pixel, "div_hdmi_pixel", "sclk_vpll", DIV_DISP1_0, 28, 4), 354 DIV(sclk_pixel, "div_hdmi_pixel", "mout_vpll", DIV_DISP1_0, 28, 4),
355 355
356 DIV(none, "div_jpeg", "mout_jpeg", DIV_GEN, 4, 4), 356 DIV(none, "div_jpeg", "mout_jpeg", DIV_GEN, 4, 4),
357 357
@@ -413,9 +413,9 @@ static struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {
413 /* 413 /*
414 * CMU_ACP 414 * CMU_ACP
415 */ 415 */
416 GATE(mdma0, "mdma0", "aclk266", GATE_IP_ACP, 1, 0, 0), 416 GATE(mdma0, "mdma0", "div_aclk266", GATE_IP_ACP, 1, 0, 0),
417 GATE(g2d, "g2d", "aclk200", GATE_IP_ACP, 3, 0, 0), 417 GATE(g2d, "g2d", "div_aclk200", GATE_IP_ACP, 3, 0, 0),
418 GATE(smmu_mdma0, "smmu_mdma0", "aclk266", GATE_IP_ACP, 5, 0, 0), 418 GATE(smmu_mdma0, "smmu_mdma0", "div_aclk266", GATE_IP_ACP, 5, 0, 0),
419 419
420 /* 420 /*
421 * CMU_TOP 421 * CMU_TOP
@@ -485,103 +485,104 @@ static struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {
485 485
486 GATE(gscl0, "gscl0", "none", GATE_IP_GSCL, 0, 0, 0), 486 GATE(gscl0, "gscl0", "none", GATE_IP_GSCL, 0, 0, 0),
487 GATE(gscl1, "gscl1", "none", GATE_IP_GSCL, 1, 0, 0), 487 GATE(gscl1, "gscl1", "none", GATE_IP_GSCL, 1, 0, 0),
488 GATE(gscl2, "gscl2", "aclk266", GATE_IP_GSCL, 2, 0, 0), 488 GATE(gscl2, "gscl2", "div_aclk266", GATE_IP_GSCL, 2, 0, 0),
489 GATE(gscl3, "gscl3", "aclk266", GATE_IP_GSCL, 3, 0, 0), 489 GATE(gscl3, "gscl3", "div_aclk266", GATE_IP_GSCL, 3, 0, 0),
490 GATE(gscl_wa, "gscl_wa", "div_gscl_wa", GATE_IP_GSCL, 5, 0, 0), 490 GATE(gscl_wa, "gscl_wa", "div_gscl_wa", GATE_IP_GSCL, 5, 0, 0),
491 GATE(gscl_wb, "gscl_wb", "div_gscl_wb", GATE_IP_GSCL, 6, 0, 0), 491 GATE(gscl_wb, "gscl_wb", "div_gscl_wb", GATE_IP_GSCL, 6, 0, 0),
492 GATE(smmu_gscl0, "smmu_gscl0", "aclk266", GATE_IP_GSCL, 7, 0, 0), 492 GATE(smmu_gscl0, "smmu_gscl0", "div_aclk266", GATE_IP_GSCL, 7, 0, 0),
493 GATE(smmu_gscl1, "smmu_gscl1", "aclk266", GATE_IP_GSCL, 8, 0, 0), 493 GATE(smmu_gscl1, "smmu_gscl1", "div_aclk266", GATE_IP_GSCL, 8, 0, 0),
494 GATE(smmu_gscl2, "smmu_gscl2", "aclk266", GATE_IP_GSCL, 9, 0, 0), 494 GATE(smmu_gscl2, "smmu_gscl2", "div_aclk266", GATE_IP_GSCL, 9, 0, 0),
495 GATE(smmu_gscl3, "smmu_gscl3", "aclk266", GATE_IP_GSCL, 10, 0, 0), 495 GATE(smmu_gscl3, "smmu_gscl3", "div_aclk266", GATE_IP_GSCL, 10, 0, 0),
496 496
497 GATE(fimd1, "fimd1", "aclk200", GATE_IP_DISP1, 0, 0, 0), 497 GATE(fimd1, "fimd1", "div_aclk200", GATE_IP_DISP1, 0, 0, 0),
498 GATE(mie1, "mie1", "aclk200", GATE_IP_DISP1, 1, 0, 0), 498 GATE(mie1, "mie1", "div_aclk200", GATE_IP_DISP1, 1, 0, 0),
499 GATE(dsim0, "dsim0", "aclk200", GATE_IP_DISP1, 3, 0, 0), 499 GATE(dsim0, "dsim0", "div_aclk200", GATE_IP_DISP1, 3, 0, 0),
500 GATE(dp, "dp", "aclk200", GATE_IP_DISP1, 4, 0, 0), 500 GATE(dp, "dp", "div_aclk200", GATE_IP_DISP1, 4, 0, 0),
501 GATE(mixer, "mixer", "mout_aclk200_disp1", GATE_IP_DISP1, 5, 0, 0), 501 GATE(mixer, "mixer", "mout_aclk200_disp1", GATE_IP_DISP1, 5, 0, 0),
502 GATE(hdmi, "hdmi", "mout_aclk200_disp1", GATE_IP_DISP1, 6, 0, 0), 502 GATE(hdmi, "hdmi", "mout_aclk200_disp1", GATE_IP_DISP1, 6, 0, 0),
503 503
504 GATE(mfc, "mfc", "aclk333", GATE_IP_MFC, 0, 0, 0), 504 GATE(mfc, "mfc", "div_aclk333", GATE_IP_MFC, 0, 0, 0),
505 GATE(smmu_mfcr, "smmu_mfcr", "aclk333", GATE_IP_MFC, 1, 0, 0), 505 GATE(smmu_mfcr, "smmu_mfcr", "div_aclk333", GATE_IP_MFC, 1, 0, 0),
506 GATE(smmu_mfcl, "smmu_mfcl", "aclk333", GATE_IP_MFC, 2, 0, 0), 506 GATE(smmu_mfcl, "smmu_mfcl", "div_aclk333", GATE_IP_MFC, 2, 0, 0),
507 507
508 GATE(rotator, "rotator", "aclk266", GATE_IP_GEN, 1, 0, 0), 508 GATE(rotator, "rotator", "div_aclk266", GATE_IP_GEN, 1, 0, 0),
509 GATE(jpeg, "jpeg", "aclk166", GATE_IP_GEN, 2, 0, 0), 509 GATE(jpeg, "jpeg", "div_aclk166", GATE_IP_GEN, 2, 0, 0),
510 GATE(mdma1, "mdma1", "aclk266", GATE_IP_GEN, 4, 0, 0), 510 GATE(mdma1, "mdma1", "div_aclk266", GATE_IP_GEN, 4, 0, 0),
511 GATE(smmu_rotator, "smmu_rotator", "aclk266", GATE_IP_GEN, 6, 0, 0), 511 GATE(smmu_rotator, "smmu_rotator", "div_aclk266", GATE_IP_GEN, 6, 0, 0),
512 GATE(smmu_jpeg, "smmu_jpeg", "aclk166", GATE_IP_GEN, 7, 0, 0), 512 GATE(smmu_jpeg, "smmu_jpeg", "div_aclk166", GATE_IP_GEN, 7, 0, 0),
513 GATE(smmu_mdma1, "smmu_mdma1", "aclk266", GATE_IP_GEN, 9, 0, 0), 513 GATE(smmu_mdma1, "smmu_mdma1", "div_aclk266", GATE_IP_GEN, 9, 0, 0),
514 514
515 GATE(pdma0, "pdma0", "aclk200", GATE_IP_FSYS, 1, 0, 0), 515 GATE(pdma0, "pdma0", "div_aclk200", GATE_IP_FSYS, 1, 0, 0),
516 GATE(pdma1, "pdma1", "aclk200", GATE_IP_FSYS, 2, 0, 0), 516 GATE(pdma1, "pdma1", "div_aclk200", GATE_IP_FSYS, 2, 0, 0),
517 GATE(sata, "sata", "aclk200", GATE_IP_FSYS, 6, 0, 0), 517 GATE(sata, "sata", "div_aclk200", GATE_IP_FSYS, 6, 0, 0),
518 GATE(usbotg, "usbotg", "aclk200", GATE_IP_FSYS, 7, 0, 0), 518 GATE(usbotg, "usbotg", "div_aclk200", GATE_IP_FSYS, 7, 0, 0),
519 GATE(mipi_hsi, "mipi_hsi", "aclk200", GATE_IP_FSYS, 8, 0, 0), 519 GATE(mipi_hsi, "mipi_hsi", "div_aclk200", GATE_IP_FSYS, 8, 0, 0),
520 GATE(sdmmc0, "sdmmc0", "aclk200", GATE_IP_FSYS, 12, 0, 0), 520 GATE(sdmmc0, "sdmmc0", "div_aclk200", GATE_IP_FSYS, 12, 0, 0),
521 GATE(sdmmc1, "sdmmc1", "aclk200", GATE_IP_FSYS, 13, 0, 0), 521 GATE(sdmmc1, "sdmmc1", "div_aclk200", GATE_IP_FSYS, 13, 0, 0),
522 GATE(sdmmc2, "sdmmc2", "aclk200", GATE_IP_FSYS, 14, 0, 0), 522 GATE(sdmmc2, "sdmmc2", "div_aclk200", GATE_IP_FSYS, 14, 0, 0),
523 GATE(sdmmc3, "sdmmc3", "aclk200", GATE_IP_FSYS, 15, 0, 0), 523 GATE(sdmmc3, "sdmmc3", "div_aclk200", GATE_IP_FSYS, 15, 0, 0),
524 GATE(sromc, "sromc", "aclk200", GATE_IP_FSYS, 17, 0, 0), 524 GATE(sromc, "sromc", "div_aclk200", GATE_IP_FSYS, 17, 0, 0),
525 GATE(usb2, "usb2", "aclk200", GATE_IP_FSYS, 18, 0, 0), 525 GATE(usb2, "usb2", "div_aclk200", GATE_IP_FSYS, 18, 0, 0),
526 GATE(usb3, "usb3", "aclk200", GATE_IP_FSYS, 19, 0, 0), 526 GATE(usb3, "usb3", "div_aclk200", GATE_IP_FSYS, 19, 0, 0),
527 GATE(sata_phyctrl, "sata_phyctrl", "aclk200", GATE_IP_FSYS, 24, 0, 0), 527 GATE(sata_phyctrl, "sata_phyctrl", "div_aclk200",
528 GATE(sata_phyi2c, "sata_phyi2c", "aclk200", GATE_IP_FSYS, 25, 0, 0), 528 GATE_IP_FSYS, 24, 0, 0),
529 529 GATE(sata_phyi2c, "sata_phyi2c", "div_aclk200", GATE_IP_FSYS, 25, 0, 0),
530 GATE(uart0, "uart0", "aclk66", GATE_IP_PERIC, 0, 0, 0), 530
531 GATE(uart1, "uart1", "aclk66", GATE_IP_PERIC, 1, 0, 0), 531 GATE(uart0, "uart0", "div_aclk66", GATE_IP_PERIC, 0, 0, 0),
532 GATE(uart2, "uart2", "aclk66", GATE_IP_PERIC, 2, 0, 0), 532 GATE(uart1, "uart1", "div_aclk66", GATE_IP_PERIC, 1, 0, 0),
533 GATE(uart3, "uart3", "aclk66", GATE_IP_PERIC, 3, 0, 0), 533 GATE(uart2, "uart2", "div_aclk66", GATE_IP_PERIC, 2, 0, 0),
534 GATE(uart4, "uart4", "aclk66", GATE_IP_PERIC, 4, 0, 0), 534 GATE(uart3, "uart3", "div_aclk66", GATE_IP_PERIC, 3, 0, 0),
535 GATE(i2c0, "i2c0", "aclk66", GATE_IP_PERIC, 6, 0, 0), 535 GATE(uart4, "uart4", "div_aclk66", GATE_IP_PERIC, 4, 0, 0),
536 GATE(i2c1, "i2c1", "aclk66", GATE_IP_PERIC, 7, 0, 0), 536 GATE(i2c0, "i2c0", "div_aclk66", GATE_IP_PERIC, 6, 0, 0),
537 GATE(i2c2, "i2c2", "aclk66", GATE_IP_PERIC, 8, 0, 0), 537 GATE(i2c1, "i2c1", "div_aclk66", GATE_IP_PERIC, 7, 0, 0),
538 GATE(i2c3, "i2c3", "aclk66", GATE_IP_PERIC, 9, 0, 0), 538 GATE(i2c2, "i2c2", "div_aclk66", GATE_IP_PERIC, 8, 0, 0),
539 GATE(i2c4, "i2c4", "aclk66", GATE_IP_PERIC, 10, 0, 0), 539 GATE(i2c3, "i2c3", "div_aclk66", GATE_IP_PERIC, 9, 0, 0),
540 GATE(i2c5, "i2c5", "aclk66", GATE_IP_PERIC, 11, 0, 0), 540 GATE(i2c4, "i2c4", "div_aclk66", GATE_IP_PERIC, 10, 0, 0),
541 GATE(i2c6, "i2c6", "aclk66", GATE_IP_PERIC, 12, 0, 0), 541 GATE(i2c5, "i2c5", "div_aclk66", GATE_IP_PERIC, 11, 0, 0),
542 GATE(i2c7, "i2c7", "aclk66", GATE_IP_PERIC, 13, 0, 0), 542 GATE(i2c6, "i2c6", "div_aclk66", GATE_IP_PERIC, 12, 0, 0),
543 GATE(i2c_hdmi, "i2c_hdmi", "aclk66", GATE_IP_PERIC, 14, 0, 0), 543 GATE(i2c7, "i2c7", "div_aclk66", GATE_IP_PERIC, 13, 0, 0),
544 GATE(adc, "adc", "aclk66", GATE_IP_PERIC, 15, 0, 0), 544 GATE(i2c_hdmi, "i2c_hdmi", "div_aclk66", GATE_IP_PERIC, 14, 0, 0),
545 GATE(spi0, "spi0", "aclk66", GATE_IP_PERIC, 16, 0, 0), 545 GATE(adc, "adc", "div_aclk66", GATE_IP_PERIC, 15, 0, 0),
546 GATE(spi1, "spi1", "aclk66", GATE_IP_PERIC, 17, 0, 0), 546 GATE(spi0, "spi0", "div_aclk66", GATE_IP_PERIC, 16, 0, 0),
547 GATE(spi2, "spi2", "aclk66", GATE_IP_PERIC, 18, 0, 0), 547 GATE(spi1, "spi1", "div_aclk66", GATE_IP_PERIC, 17, 0, 0),
548 GATE(i2s1, "i2s1", "aclk66", GATE_IP_PERIC, 20, 0, 0), 548 GATE(spi2, "spi2", "div_aclk66", GATE_IP_PERIC, 18, 0, 0),
549 GATE(i2s2, "i2s2", "aclk66", GATE_IP_PERIC, 21, 0, 0), 549 GATE(i2s1, "i2s1", "div_aclk66", GATE_IP_PERIC, 20, 0, 0),
550 GATE(pcm1, "pcm1", "aclk66", GATE_IP_PERIC, 22, 0, 0), 550 GATE(i2s2, "i2s2", "div_aclk66", GATE_IP_PERIC, 21, 0, 0),
551 GATE(pcm2, "pcm2", "aclk66", GATE_IP_PERIC, 23, 0, 0), 551 GATE(pcm1, "pcm1", "div_aclk66", GATE_IP_PERIC, 22, 0, 0),
552 GATE(pwm, "pwm", "aclk66", GATE_IP_PERIC, 24, 0, 0), 552 GATE(pcm2, "pcm2", "div_aclk66", GATE_IP_PERIC, 23, 0, 0),
553 GATE(spdif, "spdif", "aclk66", GATE_IP_PERIC, 26, 0, 0), 553 GATE(pwm, "pwm", "div_aclk66", GATE_IP_PERIC, 24, 0, 0),
554 GATE(ac97, "ac97", "aclk66", GATE_IP_PERIC, 27, 0, 0), 554 GATE(spdif, "spdif", "div_aclk66", GATE_IP_PERIC, 26, 0, 0),
555 GATE(hsi2c0, "hsi2c0", "aclk66", GATE_IP_PERIC, 28, 0, 0), 555 GATE(ac97, "ac97", "div_aclk66", GATE_IP_PERIC, 27, 0, 0),
556 GATE(hsi2c1, "hsi2c1", "aclk66", GATE_IP_PERIC, 29, 0, 0), 556 GATE(hsi2c0, "hsi2c0", "div_aclk66", GATE_IP_PERIC, 28, 0, 0),
557 GATE(hsi2c2, "hsi2c2", "aclk66", GATE_IP_PERIC, 30, 0, 0), 557 GATE(hsi2c1, "hsi2c1", "div_aclk66", GATE_IP_PERIC, 29, 0, 0),
558 GATE(hsi2c3, "hsi2c3", "aclk66", GATE_IP_PERIC, 31, 0, 0), 558 GATE(hsi2c2, "hsi2c2", "div_aclk66", GATE_IP_PERIC, 30, 0, 0),
559 559 GATE(hsi2c3, "hsi2c3", "div_aclk66", GATE_IP_PERIC, 31, 0, 0),
560 GATE(chipid, "chipid", "aclk66", GATE_IP_PERIS, 0, 0, 0), 560
561 GATE(sysreg, "sysreg", "aclk66", 561 GATE(chipid, "chipid", "div_aclk66", GATE_IP_PERIS, 0, 0, 0),
562 GATE(sysreg, "sysreg", "div_aclk66",
562 GATE_IP_PERIS, 1, CLK_IGNORE_UNUSED, 0), 563 GATE_IP_PERIS, 1, CLK_IGNORE_UNUSED, 0),
563 GATE(pmu, "pmu", "aclk66", GATE_IP_PERIS, 2, CLK_IGNORE_UNUSED, 0), 564 GATE(pmu, "pmu", "div_aclk66", GATE_IP_PERIS, 2, CLK_IGNORE_UNUSED, 0),
564 GATE(cmu_top, "cmu_top", "aclk66", 565 GATE(cmu_top, "cmu_top", "div_aclk66",
565 GATE_IP_PERIS, 3, CLK_IGNORE_UNUSED, 0), 566 GATE_IP_PERIS, 3, CLK_IGNORE_UNUSED, 0),
566 GATE(cmu_core, "cmu_core", "aclk66", 567 GATE(cmu_core, "cmu_core", "div_aclk66",
567 GATE_IP_PERIS, 4, CLK_IGNORE_UNUSED, 0), 568 GATE_IP_PERIS, 4, CLK_IGNORE_UNUSED, 0),
568 GATE(cmu_mem, "cmu_mem", "aclk66", 569 GATE(cmu_mem, "cmu_mem", "div_aclk66",
569 GATE_IP_PERIS, 5, CLK_IGNORE_UNUSED, 0), 570 GATE_IP_PERIS, 5, CLK_IGNORE_UNUSED, 0),
570 GATE(tzpc0, "tzpc0", "aclk66", GATE_IP_PERIS, 6, 0, 0), 571 GATE(tzpc0, "tzpc0", "div_aclk66", GATE_IP_PERIS, 6, 0, 0),
571 GATE(tzpc1, "tzpc1", "aclk66", GATE_IP_PERIS, 7, 0, 0), 572 GATE(tzpc1, "tzpc1", "div_aclk66", GATE_IP_PERIS, 7, 0, 0),
572 GATE(tzpc2, "tzpc2", "aclk66", GATE_IP_PERIS, 8, 0, 0), 573 GATE(tzpc2, "tzpc2", "div_aclk66", GATE_IP_PERIS, 8, 0, 0),
573 GATE(tzpc3, "tzpc3", "aclk66", GATE_IP_PERIS, 9, 0, 0), 574 GATE(tzpc3, "tzpc3", "div_aclk66", GATE_IP_PERIS, 9, 0, 0),
574 GATE(tzpc4, "tzpc4", "aclk66", GATE_IP_PERIS, 10, 0, 0), 575 GATE(tzpc4, "tzpc4", "div_aclk66", GATE_IP_PERIS, 10, 0, 0),
575 GATE(tzpc5, "tzpc5", "aclk66", GATE_IP_PERIS, 11, 0, 0), 576 GATE(tzpc5, "tzpc5", "div_aclk66", GATE_IP_PERIS, 11, 0, 0),
576 GATE(tzpc6, "tzpc6", "aclk66", GATE_IP_PERIS, 12, 0, 0), 577 GATE(tzpc6, "tzpc6", "div_aclk66", GATE_IP_PERIS, 12, 0, 0),
577 GATE(tzpc7, "tzpc7", "aclk66", GATE_IP_PERIS, 13, 0, 0), 578 GATE(tzpc7, "tzpc7", "div_aclk66", GATE_IP_PERIS, 13, 0, 0),
578 GATE(tzpc8, "tzpc8", "aclk66", GATE_IP_PERIS, 14, 0, 0), 579 GATE(tzpc8, "tzpc8", "div_aclk66", GATE_IP_PERIS, 14, 0, 0),
579 GATE(tzpc9, "tzpc9", "aclk66", GATE_IP_PERIS, 15, 0, 0), 580 GATE(tzpc9, "tzpc9", "div_aclk66", GATE_IP_PERIS, 15, 0, 0),
580 GATE(hdmi_cec, "hdmi_cec", "aclk66", GATE_IP_PERIS, 16, 0, 0), 581 GATE(hdmi_cec, "hdmi_cec", "div_aclk66", GATE_IP_PERIS, 16, 0, 0),
581 GATE(mct, "mct", "aclk66", GATE_IP_PERIS, 18, 0, 0), 582 GATE(mct, "mct", "div_aclk66", GATE_IP_PERIS, 18, 0, 0),
582 GATE(wdt, "wdt", "aclk66", GATE_IP_PERIS, 19, 0, 0), 583 GATE(wdt, "wdt", "div_aclk66", GATE_IP_PERIS, 19, 0, 0),
583 GATE(rtc, "rtc", "aclk66", GATE_IP_PERIS, 20, 0, 0), 584 GATE(rtc, "rtc", "div_aclk66", GATE_IP_PERIS, 20, 0, 0),
584 GATE(tmu, "tmu", "aclk66", GATE_IP_PERIS, 21, 0, 0), 585 GATE(tmu, "tmu", "div_aclk66", GATE_IP_PERIS, 21, 0, 0),
585}; 586};
586 587
587static struct samsung_pll_rate_table vpll_24mhz_tbl[] __initdata = { 588static struct samsung_pll_rate_table vpll_24mhz_tbl[] __initdata = {
@@ -671,6 +672,6 @@ static void __init exynos5250_clk_init(struct device_node *np)
671 ARRAY_SIZE(exynos5250_gate_clks)); 672 ARRAY_SIZE(exynos5250_gate_clks));
672 673
673 pr_info("Exynos5250: clock setup completed, armclk=%ld\n", 674 pr_info("Exynos5250: clock setup completed, armclk=%ld\n",
674 _get_rate("armclk")); 675 _get_rate("div_arm2"));
675} 676}
676CLK_OF_DECLARE(exynos5250_clk, "samsung,exynos5250-clock", exynos5250_clk_init); 677CLK_OF_DECLARE(exynos5250_clk, "samsung,exynos5250-clock", exynos5250_clk_init);