summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sa1100.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-05-12 16:23:23 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 19:37:15 +0200
commit8c0961ba7c9356186a0606a391f08e2ecb491a57 (patch)
treedfcd9e54d61e118f2a805acbc240ec8143bd43e2 /drivers/rtc/rtc-sa1100.h
parentdc2280ebf45bfa4fbc4b1588a6642aa33454a9b8 (diff)
rtc: sa1100: prepare to share sa1100_rtc_ops
Factor out the RTC initialization from the platform device specific parts in order to share the RTC device ops with other drivers. Specifically, it will be shared with rtc-pxa driver. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Cc: Russell King <linux@arm.linux.org.uk> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: rtc-linux@googlegroups.com Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-sa1100.h')
-rw-r--r--drivers/rtc/rtc-sa1100.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sa1100.h b/drivers/rtc/rtc-sa1100.h
new file mode 100644
index 000000000000..665d054740a1
--- /dev/null
+++ b/drivers/rtc/rtc-sa1100.h
@@ -0,0 +1,19 @@
+#ifndef __RTC_SA1100_H__
+#define __RTC_SA1100_H__
+
+#include <linux/kernel.h>
+
+struct clk;
+struct platform_device;
+
+struct sa1100_rtc {
+ spinlock_t lock;
+ int irq_1hz;
+ int irq_alarm;
+ struct rtc_device *rtc;
+ struct clk *clk;
+};
+
+int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
+
+#endif