diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm/mach-s3c2410/clock.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/arm/mach-s3c2410/clock.h')
-rw-r--r-- | arch/arm/mach-s3c2410/clock.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/clock.h b/arch/arm/mach-s3c2410/clock.h new file mode 100644 index 000000000000..7953b6f397b9 --- /dev/null +++ b/arch/arm/mach-s3c2410/clock.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-s3c2410/clock.h | ||
3 | * | ||
4 | * Copyright (c) 2004-2005 Simtec Electronics | ||
5 | * http://www.simtec.co.uk/products/SWLINUX/ | ||
6 | * Written by Ben Dooks, <ben@simtec.co.uk> | ||
7 | * | ||
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. | ||
11 | */ | ||
12 | |||
13 | struct clk { | ||
14 | struct list_head list; | ||
15 | struct module *owner; | ||
16 | struct clk *parent; | ||
17 | const char *name; | ||
18 | int id; | ||
19 | atomic_t used; | ||
20 | unsigned long rate; | ||
21 | unsigned long ctrlbit; | ||
22 | int (*enable)(struct clk *, int enable); | ||
23 | }; | ||
24 | |||
25 | /* other clocks which may be registered by board support */ | ||
26 | |||
27 | extern struct clk s3c24xx_dclk0; | ||
28 | extern struct clk s3c24xx_dclk1; | ||
29 | extern struct clk s3c24xx_clkout0; | ||
30 | extern struct clk s3c24xx_clkout1; | ||
31 | extern struct clk s3c24xx_uclk; | ||
32 | |||
33 | /* exports for arch/arm/mach-s3c2410 | ||
34 | * | ||
35 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 | ||
36 | */ | ||
37 | |||
38 | extern int s3c24xx_clkcon_enable(struct clk *clk, int enable); | ||
39 | extern int s3c24xx_register_clock(struct clk *clk); | ||
40 | |||
41 | extern int s3c24xx_setup_clocks(unsigned long xtal, | ||
42 | unsigned long fclk, | ||
43 | unsigned long hclk, | ||
44 | unsigned long pclk); | ||