blob: cc724f5b07bc5c7da4d0ae8331593460dc929f54 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Rob Herring8c0961b2015-05-12 16:23:23 -05002#ifndef __RTC_SA1100_H__
3#define __RTC_SA1100_H__
4
5#include <linux/kernel.h>
6
7struct clk;
8struct platform_device;
9
10struct sa1100_rtc {
11 spinlock_t lock;
Rob Herring90d0ae82015-02-03 14:44:51 -060012 void __iomem *rcnr;
13 void __iomem *rtar;
14 void __iomem *rtsr;
15 void __iomem *rttr;
Rob Herring8c0961b2015-05-12 16:23:23 -050016 int irq_1hz;
17 int irq_alarm;
18 struct rtc_device *rtc;
19 struct clk *clk;
20};
21
22int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
23
24#endif