linux/drivers/rtc/rtc-ntxec.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * The Netronix embedded controller is a microcontroller found in some
 * e-book readers designed by the original design manufacturer Netronix, Inc.
 * It contains RTC, battery monitoring, system power management, and PWM
 * functionality.
 *
 * This driver implements access to the RTC time and date.
 *
 * Copyright 2020 Jonathan Neuschäfer <[email protected]>
 */

#include <linux/mfd/ntxec.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/rtc.h>
#include <linux/types.h>

struct ntxec_rtc {};

#define NTXEC_REG_WRITE_YEAR
#define NTXEC_REG_WRITE_MONTH
#define NTXEC_REG_WRITE_DAY
#define NTXEC_REG_WRITE_HOUR
#define NTXEC_REG_WRITE_MINUTE
#define NTXEC_REG_WRITE_SECOND

#define NTXEC_REG_READ_YEAR_MONTH
#define NTXEC_REG_READ_MDAY_HOUR
#define NTXEC_REG_READ_MINUTE_SECOND

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

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

static const struct rtc_class_ops ntxec_rtc_ops =;

static int ntxec_rtc_probe(struct platform_device *pdev)
{}

static struct platform_driver ntxec_rtc_driver =;
module_platform_driver();

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