]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-mxc/include/mach/clock.h
Merge branch 'for-rmk' of git://gitorious.org/linux-gemini/mainline into devel
[linux-2.6-omap-h63xx.git] / arch / arm / plat-mxc / include / mach / clock.h
index 24caa2b7c91d9f1b219fb431065013da15a22f65..43a82d0c534dd8f1e4bdfc99a95c94e9c1e56413 100644 (file)
 struct module;
 
 struct clk {
+#ifndef CONFIG_COMMON_CLKDEV
+       /* As soon as i.MX1 and i.MX31 switched to clkdev, this
+        * block can go away */
        struct list_head node;
        struct module *owner;
        const char *name;
+#endif
        int id;
        /* Source clock this clk depends on */
        struct clk *parent;
@@ -39,7 +43,7 @@ struct clk {
        /* Register bit position for clock's enable/disable control. */
        u8 enable_shift;
        /* Register address for clock's enable/disable control. */
-       u32 enable_reg;
+       void __iomem *enable_reg;
        u32 flags;
        /* get the current clock rate (always a fresh value) */
        unsigned long (*get_rate) (struct clk *);
@@ -63,5 +67,7 @@ struct clk {
 int clk_register(struct clk *clk);
 void clk_unregister(struct clk *clk);
 
+unsigned long mxc_decode_pll(unsigned int pll, u32 f_ref);
+
 #endif /* __ASSEMBLY__ */
 #endif /* __ASM_ARCH_MXC_CLOCK_H__ */