blob: 2c79c0c578228511c92f77d51f0a4f1889fee0e4 [file] [log] [blame]
Rob Herring8c0961b2015-05-12 16:23:23 -05001#ifndef __RTC_SA1100_H__
2#define __RTC_SA1100_H__
3
4#include <linux/kernel.h>
5
6struct clk;
7struct platform_device;
8
9struct sa1100_rtc {
10 spinlock_t lock;
Rob Herring90d0ae82015-02-03 14:44:51 -060011 void __iomem *rcnr;
12 void __iomem *rtar;
13 void __iomem *rtsr;
14 void __iomem *rttr;
Rob Herring8c0961b2015-05-12 16:23:23 -050015 int irq_1hz;
16 int irq_alarm;
17 struct rtc_device *rtc;
18 struct clk *clk;
19};
20
21int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
22
23#endif