[PATCH] USB: unusual_devs entry for Nokia N80
[linux-2.6/suspend2-2.6.18.git] / arch / arm / mach-s3c2410 / clock.h
blob01bb458bf8eb9482d23d6d408e08bbba4fb0c228
1 /*
2 * linux/arch/arm/mach-s3c2410/clock.h
4 * Copyright (c) 2004-2005 Simtec Electronics
5 * http://www.simtec.co.uk/products/SWLINUX/
6 * Written by Ben Dooks, <ben@simtec.co.uk>
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 struct clk {
14 struct list_head list;
15 struct module *owner;
16 struct clk *parent;
17 const char *name;
18 int id;
19 int usage;
20 unsigned long rate;
21 unsigned long ctrlbit;
23 int (*enable)(struct clk *, int enable);
24 int (*set_rate)(struct clk *c, unsigned long rate);
25 unsigned long (*round_rate)(struct clk *c, unsigned long rate);
26 int (*set_parent)(struct clk *c, struct clk *parent);
29 /* other clocks which may be registered by board support */
31 extern struct clk s3c24xx_dclk0;
32 extern struct clk s3c24xx_dclk1;
33 extern struct clk s3c24xx_clkout0;
34 extern struct clk s3c24xx_clkout1;
35 extern struct clk s3c24xx_uclk;
37 extern struct clk clk_usb_bus;
39 /* exports for arch/arm/mach-s3c2410
41 * Please DO NOT use these outside of arch/arm/mach-s3c2410
44 extern struct mutex clocks_mutex;
46 extern int s3c24xx_clkcon_enable(struct clk *clk, int enable);
47 extern int s3c24xx_register_clock(struct clk *clk);
49 extern int s3c24xx_setup_clocks(unsigned long xtal,
50 unsigned long fclk,
51 unsigned long hclk,
52 unsigned long pclk);