aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos4/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos4/clock.c')
-rw-r--r--arch/arm/mach-exynos4/clock.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos4/clock.c b/arch/arm/mach-exynos4/clock.c
index 1561b036a9bf..ff55b31eb51f 100644
--- a/arch/arm/mach-exynos4/clock.c
+++ b/arch/arm/mach-exynos4/clock.c
@@ -43,6 +43,11 @@ static struct clk clk_sclk_usbphy1 = {
43 .name = "sclk_usbphy1", 43 .name = "sclk_usbphy1",
44}; 44};
45 45
46static struct clk dummy_apb_pclk = {
47 .name = "apb_pclk",
48 .id = -1,
49};
50
46static int exynos4_clksrc_mask_top_ctrl(struct clk *clk, int enable) 51static int exynos4_clksrc_mask_top_ctrl(struct clk *clk, int enable)
47{ 52{
48 return s5p_gatectrl(S5P_CLKSRC_MASK_TOP, clk, enable); 53 return s5p_gatectrl(S5P_CLKSRC_MASK_TOP, clk, enable);
@@ -454,12 +459,12 @@ static struct clk init_clocks_off[] = {
454 .enable = exynos4_clk_ip_fsys_ctrl, 459 .enable = exynos4_clk_ip_fsys_ctrl,
455 .ctrlbit = (1 << 10), 460 .ctrlbit = (1 << 10),
456 }, { 461 }, {
457 .name = "pdma", 462 .name = "dma",
458 .devname = "s3c-pl330.0", 463 .devname = "s3c-pl330.0",
459 .enable = exynos4_clk_ip_fsys_ctrl, 464 .enable = exynos4_clk_ip_fsys_ctrl,
460 .ctrlbit = (1 << 0), 465 .ctrlbit = (1 << 0),
461 }, { 466 }, {
462 .name = "pdma", 467 .name = "dma",
463 .devname = "s3c-pl330.1", 468 .devname = "s3c-pl330.1",
464 .enable = exynos4_clk_ip_fsys_ctrl, 469 .enable = exynos4_clk_ip_fsys_ctrl,
465 .ctrlbit = (1 << 1), 470 .ctrlbit = (1 << 1),
@@ -1210,5 +1215,7 @@ void __init exynos4_register_clocks(void)
1210 s3c_register_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off)); 1215 s3c_register_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off));
1211 s3c_disable_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off)); 1216 s3c_disable_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off));
1212 1217
1218 s3c24xx_register_clock(&dummy_apb_pclk);
1219
1213 s3c_pwmclk_init(); 1220 s3c_pwmclk_init();
1214} 1221}