Angel Pons | a2ee761 | 2020-04-04 18:51:15 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 2 | |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 3 | #include <device/mmio.h> |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 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 | } |