rtc-sa1100.h 408 B

123456789101112131415161718192021222324
  1. #ifndef __RTC_SA1100_H__
  2. #define __RTC_SA1100_H__
  3. #include <linux/kernel.h>
  4. struct clk;
  5. struct platform_device;
  6. struct sa1100_rtc {
  7. spinlock_t lock;
  8. void __iomem *rcnr;
  9. void __iomem *rtar;
  10. void __iomem *rtsr;
  11. void __iomem *rttr;
  12. int irq_1hz;
  13. int irq_alarm;
  14. struct rtc_device *rtc;
  15. struct clk *clk;
  16. };
  17. int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
  18. #endif