18c0961baSRob Herring #ifndef __RTC_SA1100_H__ 28c0961baSRob Herring #define __RTC_SA1100_H__ 38c0961baSRob Herring 48c0961baSRob Herring #include <linux/kernel.h> 58c0961baSRob Herring 68c0961baSRob Herring struct clk; 78c0961baSRob Herring struct platform_device; 88c0961baSRob Herring 98c0961baSRob Herring struct sa1100_rtc { 108c0961baSRob Herring spinlock_t lock; 11*90d0ae8eSRob Herring void __iomem *rcnr; 12*90d0ae8eSRob Herring void __iomem *rtar; 13*90d0ae8eSRob Herring void __iomem *rtsr; 14*90d0ae8eSRob Herring void __iomem *rttr; 158c0961baSRob Herring int irq_1hz; 168c0961baSRob Herring int irq_alarm; 178c0961baSRob Herring struct rtc_device *rtc; 188c0961baSRob Herring struct clk *clk; 198c0961baSRob Herring }; 208c0961baSRob Herring 218c0961baSRob Herring int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info); 228c0961baSRob Herring 238c0961baSRob Herring #endif 24