linux/drivers/rtc/rtc-digicolor.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Real Time Clock driver for Conexant Digicolor
 *
 * Copyright (C) 2015 Paradox Innovation Ltd.
 *
 * Author: Baruch Siach <[email protected]>
 */

#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/of.h>

#define DC_RTC_CONTROL
#define DC_RTC_TIME
#define DC_RTC_REFERENCE
#define DC_RTC_ALARM
#define DC_RTC_INTFLAG_CLEAR
#define DC_RTC_INTENABLE

#define DC_RTC_CMD_MASK
#define DC_RTC_GO_BUSY

#define CMD_NOP
#define CMD_RESET
#define CMD_WRITE
#define CMD_READ

#define CMD_DELAY_US
#define CMD_TIMEOUT_US

struct dc_rtc {};

static int dc_rtc_cmds(struct dc_rtc *rtc, const u8 *cmds, int len)
{}

static int dc_rtc_read(struct dc_rtc *rtc, unsigned long *val)
{}

static int dc_rtc_write(struct dc_rtc *rtc, u32 val)
{}

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

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

static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
{}

static int dc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
{}

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

static const struct rtc_class_ops dc_rtc_ops =;

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

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

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

static struct platform_driver dc_rtc_driver =;
module_platform_driver_probe();

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