Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Rob Herring | 8c0961b | 2015-05-12 16:23:23 -0500 | [diff] [blame] | 2 | #ifndef __RTC_SA1100_H__ |
| 3 | #define __RTC_SA1100_H__ |
| 4 | |
| 5 | #include <linux/kernel.h> |
| 6 | |
| 7 | struct clk; |
| 8 | struct platform_device; |
| 9 | |
| 10 | struct sa1100_rtc { |
| 11 | spinlock_t lock; |
Rob Herring | 90d0ae8 | 2015-02-03 14:44:51 -0600 | [diff] [blame] | 12 | void __iomem *rcnr; |
| 13 | void __iomem *rtar; |
| 14 | void __iomem *rtsr; |
| 15 | void __iomem *rttr; |
Rob Herring | 8c0961b | 2015-05-12 16:23:23 -0500 | [diff] [blame] | 16 | int irq_1hz; |
| 17 | int irq_alarm; |
| 18 | struct rtc_device *rtc; |
| 19 | struct clk *clk; |
| 20 | }; |
| 21 | |
| 22 | int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info); |
| 23 | |
| 24 | #endif |