summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra210/monotonic_timer.c
blob: 52d5335f6569376577957045652abebde8fd1422 (plain)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: GPL-2.0-only */

#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));
}