aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/clkdev_omap.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2009-12-08 18:29:38 -0500
committerpaul <paul@twilight.(none)>2009-12-11 19:00:40 -0500
commit52650505fbf3a6ab851c801f54e73e76c55ab8da (patch)
tree07fc2b2eccb313fc7a0e3ade4a564f2df08fc33c /arch/arm/plat-omap/include/plat/clkdev_omap.h
parent6f62b58dd4e697a23a308f5b77781394949d333e (diff)
OMAP1 clock: convert mach-omap1/clock.h to mach-omap1/clock_data.c
The OMAP1 clock code currently #includes a large .h file full of static data structures. Instead, define the data in a .c file. Russell King <linux@arm.linux.org.uk> proposed this new arrangement: http://marc.info/?l=linux-omap&m=125967425908895&w=2 This patch also deals with most of the flagrant checkpatch violations. While here, separate the mpu_rate data structures out into their own files, opp.h and opp_data.c. In the long run, these mpu_rate tables should be replaced with OPP code. Also includes a patch from Felipe Balbi <felipe.balbi@nokia.com> to mark omap1_clk_functions as __initdata to avoid a section warning: http://patchwork.kernel.org/patch/64366/ Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Felipe Balbi <felipe.balbi@nokia.com> Cc: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/clkdev_omap.h')
-rw-r--r--arch/arm/plat-omap/include/plat/clkdev_omap.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/include/plat/clkdev_omap.h b/arch/arm/plat-omap/include/plat/clkdev_omap.h
index 97b8c126e5a..96e5d385ac7 100644
--- a/arch/arm/plat-omap/include/plat/clkdev_omap.h
+++ b/arch/arm/plat-omap/include/plat/clkdev_omap.h
@@ -11,8 +11,8 @@
11#include <asm/clkdev.h> 11#include <asm/clkdev.h>
12 12
13struct omap_clk { 13struct omap_clk {
14 u32 cpu; 14 u16 cpu;
15 struct clk_lookup lk; 15 struct clk_lookup lk;
16}; 16};
17 17
18#define CLK(dev, con, ck, cp) \ 18#define CLK(dev, con, ck, cp) \
@@ -26,11 +26,15 @@ struct omap_clk {
26 } 26 }
27 27
28 28
29#define CK_243X (1 << 0) 29#define CK_310 (1 << 0)
30#define CK_242X (1 << 1) 30#define CK_7XX (1 << 1)
31#define CK_343X (1 << 2) 31#define CK_1510 (1 << 2)
32#define CK_3430ES1 (1 << 3) 32#define CK_16XX (1 << 3)
33#define CK_3430ES2 (1 << 4) 33#define CK_243X (1 << 4)
34#define CK_242X (1 << 5)
35#define CK_343X (1 << 6)
36#define CK_3430ES1 (1 << 7)
37#define CK_3430ES2 (1 << 8)
34 38
35 39
36#endif 40#endif