linux/drivers/rtc/rtc-ssd202d.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Real time clocks driver for MStar/SigmaStar SSD202D SoCs.
 *
 * (C) 2021 Daniel Palmer
 * (C) 2023 Romain Perier
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/regmap.h>
#include <linux/pm.h>

#define REG_CTRL
#define REG_CTRL1
#define REG_ISO_CTRL
#define REG_WRDATA_L
#define REG_WRDATA_H
#define REG_ISOACK
#define REG_RDDATA_L
#define REG_RDDATA_H
#define REG_RDCNT_L
#define REG_RDCNT_H
#define REG_CNT_TRIG
#define REG_PWRCTRL
#define REG_RTC_TEST

#define CNT_RD_TRIG_BIT
#define CNT_RD_BIT
#define BASE_WR_BIT
#define BASE_RD_BIT
#define CNT_RST_BIT
#define ISO_CTRL_ACK_MASK
#define ISO_CTRL_ACK_SHIFT
#define SW0_WR_BIT
#define SW1_WR_BIT
#define SW0_RD_BIT
#define SW1_RD_BIT

#define ISO_CTRL_MASK

struct ssd202d_rtc {};

static u8 read_iso_en(void __iomem *base)
{}

static u8 read_iso_ctrl_ack(void __iomem *base)
{}

static int ssd202d_rtc_isoctrl(struct ssd202d_rtc *priv)
{}

static void ssd202d_rtc_read_reg(struct ssd202d_rtc *priv, unsigned int reg,
				 unsigned int field, unsigned int *base)
{}

static void ssd202d_rtc_write_reg(struct ssd202d_rtc *priv, unsigned int reg,
				  unsigned int field, u32 base)
{}

static int ssd202d_rtc_read_counter(struct ssd202d_rtc *priv, unsigned int *counter)
{}

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

static int ssd202d_rtc_reset_counter(struct ssd202d_rtc *priv)
{}

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

static const struct rtc_class_ops ssd202d_rtc_ops =;

static int ssd202d_rtc_probe(struct platform_device *pdev)
{}

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

static struct platform_driver ssd202d_rtc_driver =;
module_platform_driver();

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