linux/drivers/rtc/rtc-ds1347.c

// SPDX-License-Identifier: GPL-2.0-only
/* rtc-ds1347.c
 *
 * Driver for Dallas Semiconductor DS1347 Low Current, SPI Compatible
 * Real Time Clock
 *
 * Author : Raghavendra Chandra Ganiga <[email protected]>
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/spi/spi.h>
#include <linux/bcd.h>
#include <linux/regmap.h>

/* Registers in ds1347 rtc */

#define DS1347_SECONDS_REG
#define DS1347_MINUTES_REG
#define DS1347_HOURS_REG
#define DS1347_DATE_REG
#define DS1347_MONTH_REG
#define DS1347_DAY_REG
#define DS1347_YEAR_REG
#define DS1347_CONTROL_REG
#define DS1347_CENTURY_REG
#define DS1347_STATUS_REG
#define DS1347_CLOCK_BURST

#define DS1347_WP_BIT

#define DS1347_NEOSC_BIT
#define DS1347_OSF_BIT

static const struct regmap_range ds1347_ranges[] =;

static const struct regmap_access_table ds1347_access_table =;

static int ds1347_read_time(struct device *dev, struct rtc_time *dt)
{}

static int ds1347_set_time(struct device *dev, struct rtc_time *dt)
{}

static const struct rtc_class_ops ds1347_rtc_ops =;

static int ds1347_probe(struct spi_device *spi)
{}

static struct spi_driver ds1347_driver =;

module_spi_driver();

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