swh:1:snp:49cd9498d6cccc5e78252c27dcb645bcf7bf0c91
Raw File
Tip revision: 5908e6b738e3357af42c10e1183753c70a0117a9 authored by Linus Torvalds on 25 February 2019, 00:46:45 UTC
Linux 5.0-rc8
Tip revision: 5908e6b
rtc-sa1100.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __RTC_SA1100_H__
#define __RTC_SA1100_H__

#include <linux/kernel.h>

struct clk;
struct platform_device;

struct sa1100_rtc {
	spinlock_t		lock;
	void __iomem		*rcnr;
	void __iomem		*rtar;
	void __iomem		*rtsr;
	void __iomem		*rttr;
	int			irq_1hz;
	int			irq_alarm;
	struct rtc_device	*rtc;
	struct clk		*clk;
};

int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info);

#endif
back to top