linux/drivers/rtc/rtc-mv.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Driver for the RTC in Marvell SoCs.
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/bitops.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/gfp.h>
#include <linux/module.h>


#define RTC_TIME_REG_OFFS
#define RTC_SECONDS_OFFS
#define RTC_MINUTES_OFFS
#define RTC_HOURS_OFFS
#define RTC_WDAY_OFFS
#define RTC_HOURS_12H_MODE

#define RTC_DATE_REG_OFFS
#define RTC_MDAY_OFFS
#define RTC_MONTH_OFFS
#define RTC_YEAR_OFFS

#define RTC_ALARM_TIME_REG_OFFS
#define RTC_ALARM_DATE_REG_OFFS
#define RTC_ALARM_VALID

#define RTC_ALARM_INTERRUPT_MASK_REG_OFFS
#define RTC_ALARM_INTERRUPT_CASUE_REG_OFFS

struct rtc_plat_data {};

static int mv_rtc_set_time(struct device *dev, struct rtc_time *tm)
{}

static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm)
{}

static int mv_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static int mv_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static int mv_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
{}

static irqreturn_t mv_rtc_interrupt(int irq, void *data)
{}

static const struct rtc_class_ops mv_rtc_ops =;

static int __init mv_rtc_probe(struct platform_device *pdev)
{}

static void __exit mv_rtc_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_OF
static const struct of_device_id rtc_mv_of_match_table[] =;
MODULE_DEVICE_TABLE(of, rtc_mv_of_match_table);
#endif

/*
 * mv_rtc_remove() lives in .exit.text. For drivers registered via
 * module_platform_driver_probe() this is ok because they cannot get unbound at
 * runtime. So mark the driver struct with __refdata to prevent modpost
 * triggering a section mismatch warning.
 */
static struct platform_driver mv_rtc_driver __refdata =;

module_platform_driver_probe();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();