forked from Minki/linux
8c0961ba7c
Factor out the RTC initialization from the platform device specific parts in order to share the RTC device ops with other drivers. Specifically, it will be shared with rtc-pxa driver. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Cc: Russell King <linux@arm.linux.org.uk> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: rtc-linux@googlegroups.com Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
20 lines
320 B
C
20 lines
320 B
C
#ifndef __RTC_SA1100_H__
|
|
#define __RTC_SA1100_H__
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
struct clk;
|
|
struct platform_device;
|
|
|
|
struct sa1100_rtc {
|
|
spinlock_t lock;
|
|
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
|