summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/clkdev.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-08-04 03:43:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-06 19:09:38 +0200
commitdfcdce8eec30d61743cefa0edc001a79bc3e29d6 (patch)
treea5709dc2cebb61ed6a514bc8f9c7f525d4b57097 /arch/arm/include/asm/clkdev.h
parente0953c5db2cb2ac73ca4ffe2f91ee78939de4ede (diff)
downloadbarebox-dfcdce8eec30d61743cefa0edc001a79bc3e29d6.tar.gz
barebox-dfcdce8eec30d61743cefa0edc001a79bc3e29d6.tar.xz
arm: add common clkdev
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Andrea GALLO <andrea.gallo@stericsson.com> Cc: Gael SALLES <gael.salles@stericsson.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include/asm/clkdev.h')
-rw-r--r--arch/arm/include/asm/clkdev.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/include/asm/clkdev.h b/arch/arm/include/asm/clkdev.h
new file mode 100644
index 0000000000..b6ec7c627b
--- /dev/null
+++ b/arch/arm/include/asm/clkdev.h
@@ -0,0 +1,30 @@
+/*
+ * arch/arm/include/asm/clkdev.h
+ *
+ * Copyright (C) 2008 Russell King.
+ *
+ * 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.
+ *
+ * Helper for the clk API to assist looking up a struct clk.
+ */
+#ifndef __ASM_CLKDEV_H
+#define __ASM_CLKDEV_H
+
+struct clk;
+
+struct clk_lookup {
+ struct list_head node;
+ const char *dev_id;
+ const char *con_id;
+ struct clk *clk;
+};
+
+struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
+ const char *dev_fmt, ...);
+
+void clkdev_add(struct clk_lookup *cl);
+void clkdev_drop(struct clk_lookup *cl);
+
+#endif