linux/drivers/clocksource/ingenic-ost.c

// SPDX-License-Identifier: GPL-2.0
/*
 * JZ47xx SoCs TCU Operating System Timer driver
 *
 * Copyright (C) 2016 Maarten ter Huurne <[email protected]>
 * Copyright (C) 2020 Paul Cercueil <[email protected]>
 */

#include <linux/clk.h>
#include <linux/clocksource.h>
#include <linux/mfd/ingenic-tcu.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/regmap.h>
#include <linux/sched_clock.h>

#define TCU_OST_TCSR_MASK
#define TCU_OST_TCSR_CNT_MD

#define TCU_OST_CHANNEL

/*
 * The TCU_REG_OST_CNT{L,R} from <linux/mfd/ingenic-tcu.h> are only for the
 * regmap; these are for use with the __iomem pointer.
 */
#define OST_REG_CNTL
#define OST_REG_CNTH

struct ingenic_ost_soc_info {};

struct ingenic_ost {};

static struct ingenic_ost *ingenic_ost;

static u64 notrace ingenic_ost_read_cntl(void)
{}

static u64 notrace ingenic_ost_read_cnth(void)
{}

static u64 notrace ingenic_ost_clocksource_readl(struct clocksource *cs)
{}

static u64 notrace ingenic_ost_clocksource_readh(struct clocksource *cs)
{}

static int __init ingenic_ost_probe(struct platform_device *pdev)
{}

static int ingenic_ost_suspend(struct device *dev)
{}

static int ingenic_ost_resume(struct device *dev)
{}

static const struct dev_pm_ops ingenic_ost_pm_ops =;

static const struct ingenic_ost_soc_info jz4725b_ost_soc_info =;

static const struct ingenic_ost_soc_info jz4760b_ost_soc_info =;

static const struct of_device_id ingenic_ost_of_match[] =;

static struct platform_driver ingenic_ost_driver =;
builtin_platform_driver_probe();