-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: sa1100: prepare to share sa1100_rtc_ops
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>
- Loading branch information
Rob Herring
authored and
Alexandre Belloni
committed
Sep 5, 2015
1 parent
dc2280e
commit 8c0961b
Showing
2 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#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 |