Merge branch 'v6v7' into devel
[linux/fpc-iii.git] / arch / arm / plat-s3c24xx / include / plat / s3c2443.h
bloba19715feb798e415168e74be2270e49a327bfc18
1 /* linux/include/asm-arm/plat-s3c24xx/s3c2443.h
3 * Copyright (c) 2004-2005 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * Header file for s3c2443 cpu support
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifdef CONFIG_CPU_S3C2443
15 struct s3c2410_uartcfg;
17 extern int s3c2443_init(void);
19 extern void s3c2443_map_io(void);
21 extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
23 extern void s3c2443_init_clocks(int xtal);
25 extern int s3c2443_baseclk_add(void);
27 #else
28 #define s3c2443_init_clocks NULL
29 #define s3c2443_init_uarts NULL
30 #define s3c2443_map_io NULL
31 #define s3c2443_init NULL
32 #endif
34 /* common code used by s3c2443 and others.
35 * note, not to be used outside of arch/arm/mach-s3c* */
37 struct clk; /* some files don't need clk.h otherwise */
39 typedef unsigned int (*pll_fn)(unsigned int reg, unsigned int base);
40 typedef unsigned int (*fdiv_fn)(unsigned long clkcon0);
42 extern void s3c2443_common_setup_clocks(pll_fn get_mpll, fdiv_fn fdiv);
43 extern void s3c2443_common_init_clocks(int xtal, pll_fn get_mpll, fdiv_fn fdiv);
45 extern int s3c2443_clkcon_enable_h(struct clk *clk, int enable);
46 extern int s3c2443_clkcon_enable_p(struct clk *clk, int enable);
47 extern int s3c2443_clkcon_enable_s(struct clk *clk, int enable);
49 extern struct clksrc_clk clk_epllref;
50 extern struct clksrc_clk clk_esysclk;
51 extern struct clksrc_clk clk_msysclk;