blob: 177d5c8decf74306bbf5eb874840507fd5557b2c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
13struct clk {
14 struct list_head list;
15 struct module *owner;
16 struct clk *parent;
17 const char *name;
18 int id;
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 unsigned long rate;
20 unsigned long ctrlbit;
21 int (*enable)(struct clk *, int enable);
22};
23
24/* other clocks which may be registered by board support */
25
26extern struct clk s3c24xx_dclk0;
27extern struct clk s3c24xx_dclk1;
28extern struct clk s3c24xx_clkout0;
29extern struct clk s3c24xx_clkout1;
30extern struct clk s3c24xx_uclk;
31
32/* exports for arch/arm/mach-s3c2410
33 *
34 * Please DO NOT use these outside of arch/arm/mach-s3c2410
35*/
36
37extern int s3c24xx_clkcon_enable(struct clk *clk, int enable);
38extern int s3c24xx_register_clock(struct clk *clk);
39
40extern int s3c24xx_setup_clocks(unsigned long xtal,
41 unsigned long fclk,
42 unsigned long hclk,
43 unsigned long pclk);