Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __RTC_SA1100_H__
0003 #define __RTC_SA1100_H__
0004 
0005 #include <linux/kernel.h>
0006 
0007 struct clk;
0008 struct platform_device;
0009 
0010 struct sa1100_rtc {
0011     spinlock_t      lock;
0012     void __iomem        *rcnr;
0013     void __iomem        *rtar;
0014     void __iomem        *rtsr;
0015     void __iomem        *rttr;
0016     int         irq_1hz;
0017     int         irq_alarm;
0018     struct rtc_device   *rtc;
0019     struct clk      *clk;
0020 };
0021 
0022 int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
0023 
0024 #endif