summaryrefslogtreecommitdiffstats
path: root/src/soc/cavium/cn81xx/include/soc/timer.h
blob: f73fbd9a6c9e410c695b842799481bb6c6310363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#ifndef __SOC_CAVIUM_CN81XX_TIMER_H__
#define __SOC_CAVIUM_CN81XX_TIMER_H__

#include <stdint.h>
#include <types.h>

/* Watchdog functions */
void watchdog_set(const size_t index, unsigned int timeout_ms);
void watchdog_poke(const size_t index);
void watchdog_disable(const size_t index);
int watchdog_is_running(const size_t index);

/* Timer functions */
void soc_timer_init(void);

#endif	/* __SOC_CAVIUM_CN81XX_TIMER_H__ */