* 08-Aug-2004 Herbert Pƶtzl Added CLKCON definitions
* 19-06-2003 Ben Dooks Created file
* 12-03-2004 Ben Dooks Updated include protection
+ * 29-Sep-2004 Ben Dooks Fixed usage for assembly inclusion
*/
-
-
#ifndef __ASM_ARM_REGS_CLOCK
#define __ASM_ARM_REGS_CLOCK "$Id: clock.h,v 1.4 2003/04/30 14:50:51 ben Exp $"
#define S3C2410_CLKDIVN_PDIVN (1<<0)
#define S3C2410_CLKDIVN_HDIVN (1<<1)
+#ifndef __ASSEMBLY__
+
static inline unsigned int
s3c2410_get_pll(int pllval, int baseclk)
{
return (baseclk * (mdiv + 8)) / ((pdiv + 2) << sdiv);
}
+#endif /* __ASSEMBLY__ */
+
#ifdef CONFIG_CPU_S3C2440
/* extra registers */