diff options
author | Kevin Wells <wellsk40@gmail.com> | 2010-02-26 18:53:40 -0500 |
---|---|---|
committer | Kevin Wells <wellsk40@gmail.com> | 2010-07-27 06:08:09 -0400 |
commit | b9cc4bf6656d5f349c283e6ac267b852b7a2e42e (patch) | |
tree | 22d6dfdbbece219091183f441b8cd86e43b73866 /arch/arm/mach-lpc32xx/clock.h | |
parent | 343d3537917bd74648fa2a360b42f64ad5ec551d (diff) |
ARM: LPC32XX: Clock driver
Clock driver for the LPC32XX architecture
Signed-off-by: Kevin Wells <wellsk40@gmail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx/clock.h')
-rw-r--r-- | arch/arm/mach-lpc32xx/clock.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/clock.h b/arch/arm/mach-lpc32xx/clock.h new file mode 100644 index 000000000000..c0a8434307f7 --- /dev/null +++ b/arch/arm/mach-lpc32xx/clock.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-lpc32xx/clock.h | ||
3 | * | ||
4 | * Author: Kevin Wells <kevin.wells@nxp.com> | ||
5 | * | ||
6 | * Copyright (C) 2010 NXP Semiconductors | ||
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 as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | */ | ||
18 | |||
19 | #ifndef __LPC32XX_CLOCK_H | ||
20 | #define __LPC32XX_CLOCK_H | ||
21 | |||
22 | struct clk { | ||
23 | struct list_head node; | ||
24 | struct clk *parent; | ||
25 | u32 rate; | ||
26 | u32 usecount; | ||
27 | |||
28 | int (*set_rate) (struct clk *, unsigned long); | ||
29 | unsigned long (*round_rate) (struct clk *, unsigned long); | ||
30 | unsigned long (*get_rate) (struct clk *clk); | ||
31 | int (*enable) (struct clk *, int); | ||
32 | |||
33 | /* Register address and bit mask for simple clocks */ | ||
34 | void __iomem *enable_reg; | ||
35 | u32 enable_mask; | ||
36 | }; | ||
37 | |||
38 | #endif | ||