coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
monotonic_timer.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/mmio.h
>
4
#include <soc/addressmap.h>
5
#include <timer.h>
6
7
void
timer_monotonic_get
(
struct
mono_time
*mt)
8
{
9
mono_time_set_usecs
(mt,
read32
((
void
*)
TEGRA_TMRUS_BASE
));
10
}
timer_monotonic_get
void timer_monotonic_get(struct mono_time *mt)
Definition:
monotonic_timer.c:8
read32
static uint32_t read32(const void *addr)
Definition:
mmio.h:22
mmio.h
mono_time_set_usecs
static void mono_time_set_usecs(struct mono_time *mt, long us)
Definition:
timer.h:53
TEGRA_TMRUS_BASE
@ TEGRA_TMRUS_BASE
Definition:
addressmap.h:20
mono_time
Definition:
timer.h:19
src
soc
nvidia
tegra124
monotonic_timer.c
Generated by
1.9.1