From d4b29105f4d4d11f4bd0f64a7ff9a49c897d804e Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Thu, 13 Feb 2020 13:07:12 -0800 Subject: include: move MHZ_TICKS_PER_SEC to utils_def.h This patch moves the MHZ_TICKS_PER_SEC macro to utils_def.h for other platforms to use. Signed-off-by: Varun Wadekar Change-Id: I6c4dc733f548d73cfdb3515ec9ad89a9efaf4407 --- include/lib/utils_def.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h index 23f59bdc3..09ae3999d 100644 --- a/include/lib/utils_def.h +++ b/include/lib/utils_def.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2020, NVIDIA Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -157,4 +158,9 @@ # define SPECULATION_SAFE_VALUE(var) var #endif +/* + * Ticks elapsed in one second with a signal of 1 MHz + */ +#define MHZ_TICKS_PER_SEC U(1000000) + #endif /* UTILS_DEF_H */ -- cgit v1.2.3