aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ns9xxx/clock.h
diff options
context:
space:
mode:
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-02-06 15:22:56 +0100
committerUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-03-31 10:33:25 +0200
commit04c366f06341259c88886a0d359e3597ba4c23f6 (patch)
tree3457922f428518f6b6fa83ecad60eb5c8f4afa58 /arch/arm/mach-ns9xxx/clock.h
parentns9xxx: add support for irq priorisation (diff)
downloadlinux-dev-04c366f06341259c88886a0d359e3597ba4c23f6.tar.xz
linux-dev-04c366f06341259c88886a0d359e3597ba4c23f6.zip
ns9xxx: add clock api
Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Diffstat (limited to 'arch/arm/mach-ns9xxx/clock.h')
-rw-r--r--arch/arm/mach-ns9xxx/clock.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-ns9xxx/clock.h b/arch/arm/mach-ns9xxx/clock.h
new file mode 100644
index 000000000000..b86c30dd79eb
--- /dev/null
+++ b/arch/arm/mach-ns9xxx/clock.h
@@ -0,0 +1,35 @@
+/*
+ * arch/arm/mach-ns9xxx/clock.h
+ *
+ * Copyright (C) 2007 by Digi International Inc.
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+#ifndef __NS9XXX_CLOCK_H
+#define __NS9XXX_CLOCK_H
+
+#include <linux/list.h>
+
+struct clk {
+ struct module *owner;
+ const char *name;
+ int id;
+
+ struct clk *parent;
+
+ unsigned long rate;
+ int (*endisable)(struct clk *, int enable);
+ unsigned long (*get_rate)(struct clk *);
+
+ struct list_head node;
+ unsigned long refcount;
+ unsigned long usage;
+};
+
+int clk_register(struct clk *clk);
+int clk_unregister(struct clk *clk);
+
+#endif /* ifndef __NS9XXX_CLOCK_H */