Skip to content

Commit

Permalink
ARM: S5P: Add EPLL rate change warning
Browse files Browse the repository at this point in the history
This patch adds warning about changing EPLL rate to notice that other
driver that controls H/W, which is using EPLL, will has unknown effects
by this EPLL rate change.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Seungwhan Youn authored and Kukjin Kim committed Oct 25, 2010
1 parent c9fa7a0 commit 9616674
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-s5p64x0/clock-s5p6440.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ static int s5p6440_epll_set_rate(struct clk *clk, unsigned long rate)
__raw_writel(epll_con, S5P64X0_EPLL_CON);
__raw_writel(epll_con_k, S5P64X0_EPLL_CON_K);

printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
clk->rate, rate);

clk->rate = rate;

return 0;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-s5p64x0/clock-s5p6450.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ static int s5p6450_epll_set_rate(struct clk *clk, unsigned long rate)
__raw_writel(epll_con, S5P64X0_EPLL_CON);
__raw_writel(epll_con_k, S5P64X0_EPLL_CON_K);

printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
clk->rate, rate);

clk->rate = rate;

return 0;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-s5pc100/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ static int s5pc100_epll_set_rate(struct clk *clk, unsigned long rate)

__raw_writel(epll_con, S5P_EPLL_CON);

printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
clk->rate, rate);

clk->rate = rate;

return 0;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-s5pv210/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,9 @@ static int s5pv210_epll_set_rate(struct clk *clk, unsigned long rate)
__raw_writel(epll_con, S5P_EPLL_CON);
__raw_writel(epll_con_k, S5P_EPLL_CON1);

printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
clk->rate, rate);

clk->rate = rate;

return 0;
Expand Down

0 comments on commit 9616674

Please sign in to comment.