Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273996
b: refs/heads/master
c: fb5d375
h: refs/heads/master
v: v3
  • Loading branch information
Tomasz Figa authored and Kukjin Kim committed Sep 19, 2011
1 parent c6ab774 commit 9c40a15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9018df00785d7ff52aa7fa8acfacd8a036fc832
refs/heads/master: fb5d375d352ee5830b33ccdff06eb4f5f1d603f5
8 changes: 7 additions & 1 deletion trunk/arch/arm/mach-s3c64xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,13 @@ void __init_or_cpufreq s3c6400_setup_clocks(void)
printk(KERN_INFO "S3C64XX: PLL settings, A=%ld, M=%ld, E=%ld\n",
apll, mpll, epll);

hclk2 = mpll / GET_DIV(clkdiv0, S3C6400_CLKDIV0_HCLK2);
if(__raw_readl(S3C64XX_OTHERS) & S3C64XX_OTHERS_SYNCMUXSEL)
/* Synchronous mode */
hclk2 = apll / GET_DIV(clkdiv0, S3C6400_CLKDIV0_HCLK2);
else
/* Asynchronous mode */
hclk2 = mpll / GET_DIV(clkdiv0, S3C6400_CLKDIV0_HCLK2);

hclk = hclk2 / GET_DIV(clkdiv0, S3C6400_CLKDIV0_HCLK);
pclk = hclk2 / GET_DIV(clkdiv0, S3C6400_CLKDIV0_PCLK);

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c64xx/include/mach/regs-sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
#define S3C64XX_OTHERS S3C_SYSREG(0x900)

#define S3C64XX_OTHERS_USBMASK (1 << 16)
#define S3C64XX_OTHERS_SYNCMUXSEL (1 << 6)

#endif /* _PLAT_REGS_SYS_H */

0 comments on commit 9c40a15

Please sign in to comment.