diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-19 18:04:11 +0900 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-19 18:04:11 +0900 |
commit | 32457942b90aabb9242b450f02d18d9c8d982916 (patch) | |
tree | 6472b77016f83f2ada7a7e2ca83a9803f313f1a8 /arch/arm/plat-s3c24xx/include/plat/s3c2443.h | |
parent | 6071399674e813d797d9f458ec8913b86c85398e (diff) | |
parent | f64bea4318a73e833d0a9b8400cc0f6cee957da3 (diff) | |
download | op-kernel-dev-32457942b90aabb9242b450f02d18d9c8d982916.zip op-kernel-dev-32457942b90aabb9242b450f02d18d9c8d982916.tar.gz |
ARM: Merge for-2635/fb-updates1
Merge branch 'for-2635/fb-updates1' into for-linus/samsung2
Diffstat (limited to 'arch/arm/plat-s3c24xx/include/plat/s3c2443.h')
-rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/s3c2443.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/include/plat/s3c2443.h b/arch/arm/plat-s3c24xx/include/plat/s3c2443.h index 815b107..a19715f 100644 --- a/arch/arm/plat-s3c24xx/include/plat/s3c2443.h +++ b/arch/arm/plat-s3c24xx/include/plat/s3c2443.h @@ -30,3 +30,22 @@ extern int s3c2443_baseclk_add(void); #define s3c2443_map_io NULL #define s3c2443_init NULL #endif + +/* common code used by s3c2443 and others. + * note, not to be used outside of arch/arm/mach-s3c* */ + +struct clk; /* some files don't need clk.h otherwise */ + +typedef unsigned int (*pll_fn)(unsigned int reg, unsigned int base); +typedef unsigned int (*fdiv_fn)(unsigned long clkcon0); + +extern void s3c2443_common_setup_clocks(pll_fn get_mpll, fdiv_fn fdiv); +extern void s3c2443_common_init_clocks(int xtal, pll_fn get_mpll, fdiv_fn fdiv); + +extern int s3c2443_clkcon_enable_h(struct clk *clk, int enable); +extern int s3c2443_clkcon_enable_p(struct clk *clk, int enable); +extern int s3c2443_clkcon_enable_s(struct clk *clk, int enable); + +extern struct clksrc_clk clk_epllref; +extern struct clksrc_clk clk_esysclk; +extern struct clksrc_clk clk_msysclk; |