linux/drivers/rtc/rtc-mt6397.c

// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2014-2015 MediaTek Inc.
* Author: Tianping.Fang <[email protected]>
*/

#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/mfd/mt6397/core.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/rtc.h>
#include <linux/mfd/mt6397/rtc.h>
#include <linux/mod_devicetable.h>

static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc)
{}

static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void *data)
{}

static int __mtk_rtc_read_time(struct mt6397_rtc *rtc,
			       struct rtc_time *tm, int *sec)
{}

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

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

static int mtk_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static int mtk_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static const struct rtc_class_ops mtk_rtc_ops =;

static int mtk_rtc_probe(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int mt6397_rtc_suspend(struct device *dev)
{}

static int mt6397_rtc_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(mt6397_pm_ops, mt6397_rtc_suspend,
			mt6397_rtc_resume);

static const struct mtk_rtc_data mt6358_rtc_data =;

static const struct mtk_rtc_data mt6397_rtc_data =;

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

static struct platform_driver mtk_rtc_driver =;

module_platform_driver();

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