^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __RTC_SA1100_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __RTC_SA1100_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct clk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) struct platform_device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct sa1100_rtc {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) spinlock_t lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void __iomem *rcnr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void __iomem *rtar;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void __iomem *rtsr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void __iomem *rttr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) int irq_1hz;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) int irq_alarm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct rtc_device *rtc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct clk *clk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #endif