aboutsummaryrefslogtreecommitdiff
path: root/arch/avr32/mach-at32ap/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/mach-at32ap/clock.h')
-rw-r--r--arch/avr32/mach-at32ap/clock.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/avr32/mach-at32ap/clock.h b/arch/avr32/mach-at32ap/clock.h
index bb8e1f29583..4c7ebbdc6df 100644
--- a/arch/avr32/mach-at32ap/clock.h
+++ b/arch/avr32/mach-at32ap/clock.h
@@ -12,8 +12,13 @@
* published by the Free Software Foundation.
*/
#include <linux/clk.h>
+#include <linux/list.h>
+
+
+void at32_clk_register(struct clk *clk);
struct clk {
+ struct list_head list; /* linking element */
const char *name; /* Clock name/function */
struct device *dev; /* Device the clock is used by */
struct clk *parent; /* Parent clock, if any */
@@ -26,5 +31,5 @@ struct clk {
u16 index; /* Sibling index */
};
-extern struct clk *at32_clock_list[];
-extern unsigned int at32_nr_clocks;
+unsigned long pba_clk_get_rate(struct clk *clk);
+void pba_clk_mode(struct clk *clk, int enabled);