linux/drivers/rtc/rtc-ftrtc010.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Faraday Technology FTRTC010 driver
 *
 *  Copyright (C) 2009 Janos Laube <[email protected]>
 *
 * Original code for older kernel 2.6.15 are from Stormlinksemi
 * first update from Janos Laube for > 2.6.29 kernels
 *
 * checkpatch fixes and usage of rtc-lib code
 * Hans Ulli Kroll <[email protected]>
 */

#include <linux/rtc.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/clk.h>

#define DRV_NAME

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

struct ftrtc010_rtc {};

enum ftrtc010_rtc_offsets {};

static irqreturn_t ftrtc010_rtc_interrupt(int irq, void *dev)
{}

/*
 * Looks like the RTC in the Gemini SoC is (totaly) broken
 * We can't read/write directly the time from RTC registers.
 * We must do some "offset" calculation to get the real time
 *
 * This FIX works pretty fine and Stormlinksemi aka Cortina-Networks does
 * the same thing, without the rtc-lib.c calls.
 */

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

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

static const struct rtc_class_ops ftrtc010_rtc_ops =;

static int ftrtc010_rtc_probe(struct platform_device *pdev)
{}

static void ftrtc010_rtc_remove(struct platform_device *pdev)
{}

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

static struct platform_driver ftrtc010_rtc_driver =;

module_platform_driver_probe();