linux/drivers/rtc/rtc-rzn1.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Renesas RZ/N1 Real Time Clock interface for Linux
 *
 * Copyright:
 * - 2014 Renesas Electronics Europe Limited
 * - 2022 Schneider Electric
 *
 * Authors:
 * - Michel Pollet <[email protected]>, <[email protected]>
 * - Miquel Raynal <[email protected]>
 */

#include <linux/bcd.h>
#include <linux/init.h>
#include <linux/iopoll.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/rtc.h>

#define RZN1_RTC_CTL0
#define RZN1_RTC_CTL0_SLSB_SUBU
#define RZN1_RTC_CTL0_SLSB_SCMP
#define RZN1_RTC_CTL0_AMPM
#define RZN1_RTC_CTL0_CE

#define RZN1_RTC_CTL1
#define RZN1_RTC_CTL1_ALME

#define RZN1_RTC_CTL2
#define RZN1_RTC_CTL2_WAIT
#define RZN1_RTC_CTL2_WST
#define RZN1_RTC_CTL2_WUST
#define RZN1_RTC_CTL2_STOPPED

#define RZN1_RTC_SEC
#define RZN1_RTC_MIN
#define RZN1_RTC_HOUR
#define RZN1_RTC_WEEK
#define RZN1_RTC_DAY
#define RZN1_RTC_MONTH
#define RZN1_RTC_YEAR

#define RZN1_RTC_SUBU
#define RZN1_RTC_SUBU_DEV
#define RZN1_RTC_SUBU_DECR

#define RZN1_RTC_ALM
#define RZN1_RTC_ALH
#define RZN1_RTC_ALW

#define RZN1_RTC_SECC
#define RZN1_RTC_MINC
#define RZN1_RTC_HOURC
#define RZN1_RTC_WEEKC
#define RZN1_RTC_DAYC
#define RZN1_RTC_MONTHC
#define RZN1_RTC_YEARC

struct rzn1_rtc {};

static void rzn1_rtc_get_time_snapshot(struct rzn1_rtc *rtc, struct rtc_time *tm)
{}

static unsigned int rzn1_rtc_tm_to_wday(struct rtc_time *tm)
{}

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

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

static irqreturn_t rzn1_rtc_alarm_irq(int irq, void *dev_id)
{}

static int rzn1_rtc_alarm_irq_enable(struct device *dev, unsigned int enable)
{}

static int rzn1_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int rzn1_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int rzn1_rtc_read_offset(struct device *dev, long *offset)
{}

static int rzn1_rtc_set_offset(struct device *dev, long offset)
{}

static const struct rtc_class_ops rzn1_rtc_ops =;

static int rzn1_rtc_probe(struct platform_device *pdev)
{}

static void rzn1_rtc_remove(struct platform_device *pdev)
{}

static const struct of_device_id rzn1_rtc_of_match[] =;
MODULE_DEVICE_TABLE(of, rzn1_rtc_of_match);

static struct platform_driver rzn1_rtc_driver =;
module_platform_driver();

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