summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124/monotonic_timer.c
blob: 6ddde1523b3593f14bd52806bba59c848f75d30e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <device/mmio.h>
#include <soc/addressmap.h>
#include <timer.h>

void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, read32((void *)TEGRA_TMRUS_BASE));
}