linux/drivers/clocksource/timer-sprd.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2017 Spreadtrum Communications Inc.
 */

#include <linux/init.h>
#include <linux/interrupt.h>

#include "timer-of.h"

#define TIMER_NAME

#define TIMER_LOAD_LO
#define TIMER_LOAD_HI
#define TIMER_VALUE_LO
#define TIMER_VALUE_HI

#define TIMER_CTL
#define TIMER_CTL_PERIOD_MODE
#define TIMER_CTL_ENABLE
#define TIMER_CTL_64BIT_WIDTH

#define TIMER_INT
#define TIMER_INT_EN
#define TIMER_INT_RAW_STS
#define TIMER_INT_MASK_STS
#define TIMER_INT_CLR

#define TIMER_VALUE_SHDW_LO
#define TIMER_VALUE_SHDW_HI

#define TIMER_VALUE_LO_MASK

static void sprd_timer_enable(void __iomem *base, u32 flag)
{}

static void sprd_timer_disable(void __iomem *base)
{}

static void sprd_timer_update_counter(void __iomem *base, unsigned long cycles)
{}

static void sprd_timer_enable_interrupt(void __iomem *base)
{}

static void sprd_timer_clear_interrupt(void __iomem *base)
{}

static int sprd_timer_set_next_event(unsigned long cycles,
				     struct clock_event_device *ce)
{}

static int sprd_timer_set_periodic(struct clock_event_device *ce)
{}

static int sprd_timer_shutdown(struct clock_event_device *ce)
{}

static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id)
{}

static struct timer_of to =;

static int __init sprd_timer_init(struct device_node *np)
{}

static struct timer_of suspend_to =;

static u64 sprd_suspend_timer_read(struct clocksource *cs)
{}

static int sprd_suspend_timer_enable(struct clocksource *cs)
{}

static void sprd_suspend_timer_disable(struct clocksource *cs)
{}

static struct clocksource suspend_clocksource =;

static int __init sprd_suspend_timer_init(struct device_node *np)
{}

TIMER_OF_DECLARE(sc9860_timer, "sprd,sc9860-timer", sprd_timer_init);
TIMER_OF_DECLARE(sc9860_persistent_timer, "sprd,sc9860-suspend-timer",
		 sprd_suspend_timer_init);