File: fdt_timer.h

package info (click to toggle)
opensbi 1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,352 kB
  • sloc: ansic: 32,307; python: 4,658; asm: 1,076; makefile: 631; sh: 331
file content (26 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2020 Western Digital Corporation or its affiliates.
 *
 * Authors:
 *   Anup Patel <anup.patel@wdc.com>
 */

#ifndef __FDT_TIMER_H__
#define __FDT_TIMER_H__

#include <sbi/sbi_types.h>
#include <sbi_utils/fdt/fdt_driver.h>

#ifdef CONFIG_FDT_TIMER

int fdt_timer_init(void);

#else

static inline int fdt_timer_init(void) { return 0; }

#endif

#endif