#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/time64.h>
struct meson_vrtc_data { … };
static int meson_vrtc_read_time(struct device *dev, struct rtc_time *tm)
{ … }
static void meson_vrtc_set_wakeup_time(struct meson_vrtc_data *vrtc,
unsigned long time)
{ … }
static int meson_vrtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
{ … }
static int meson_vrtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
{ … }
static const struct rtc_class_ops meson_vrtc_ops = …;
static int meson_vrtc_probe(struct platform_device *pdev)
{ … }
static int __maybe_unused meson_vrtc_suspend(struct device *dev)
{ … }
static int __maybe_unused meson_vrtc_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(meson_vrtc_pm_ops,
meson_vrtc_suspend, meson_vrtc_resume);
static const struct of_device_id meson_vrtc_dt_match[] = …;
MODULE_DEVICE_TABLE(of, meson_vrtc_dt_match);
static struct platform_driver meson_vrtc_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;