Angel Pons | a2ee761 | 2020-04-04 18:51:15 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Gabe Black | 396b072 | 2013-09-26 16:22:09 -0700 | [diff] [blame] | 2 | |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 3 | #include <device/mmio.h> |
Gabe Black | eb623ab | 2013-10-06 10:54:53 -0700 | [diff] [blame] | 4 | #include <soc/addressmap.h> |
Gabe Black | 396b072 | 2013-09-26 16:22:09 -0700 | [diff] [blame] | 5 | #include <timer.h> |
| 6 | |
| 7 | void timer_monotonic_get(struct mono_time *mt) |
| 8 | { |
Gabe Black | eb623ab | 2013-10-06 10:54:53 -0700 | [diff] [blame] | 9 | mono_time_set_usecs(mt, read32((void *)TEGRA_TMRUS_BASE)); |
Gabe Black | 396b072 | 2013-09-26 16:22:09 -0700 | [diff] [blame] | 10 | } |