#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeirq.h>
#include <linux/rtc.h>
#define SRTC_LPPDR_INIT …
#define SRTC_LPCR_EN_LP …
#define SRTC_LPCR_WAE …
#define SRTC_LPCR_ALP …
#define SRTC_LPCR_NSA …
#define SRTC_LPCR_NVE …
#define SRTC_LPCR_IE …
#define SRTC_LPSR_ALP …
#define SRTC_LPSR_NVES …
#define SRTC_LPSR_IES …
#define SRTC_LPSCMR …
#define SRTC_LPSCLR …
#define SRTC_LPSAR …
#define SRTC_LPCR …
#define SRTC_LPSR …
#define SRTC_LPPDR …
#define REG_READ_TIMEOUT …
struct mxc_rtc_data { … };
static void mxc_rtc_sync_lp_locked(struct device *dev, void __iomem *ioaddr)
{ … }
static irqreturn_t mxc_rtc_interrupt(int irq, void *dev_id)
{ … }
static int mxc_rtc_lock(struct mxc_rtc_data *const pdata)
{ … }
static int mxc_rtc_unlock(struct mxc_rtc_data *const pdata)
{ … }
static int mxc_rtc_read_time(struct device *dev, struct rtc_time *tm)
{ … }
static int mxc_rtc_set_time(struct device *dev, struct rtc_time *tm)
{ … }
static int mxc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static void mxc_rtc_alarm_irq_enable_locked(struct mxc_rtc_data *pdata,
unsigned int enable)
{ … }
static int mxc_rtc_alarm_irq_enable(struct device *dev, unsigned int enable)
{ … }
static int mxc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static const struct rtc_class_ops mxc_rtc_ops = …;
static int mxc_rtc_wait_for_flag(void __iomem *ioaddr, int flag)
{ … }
static int mxc_rtc_probe(struct platform_device *pdev)
{ … }
static void mxc_rtc_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id mxc_ids[] = …;
MODULE_DEVICE_TABLE(of, mxc_ids);
static struct platform_driver mxc_rtc_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;