blob: 492cc8d55bbd9d33fe3fc46a89347c711c837b17 [file] [log] [blame]
Googler25e92cf2023-12-13 10:05:01 +00001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4 */
5
6#ifndef __TIMER_H
7#define __TIMER_H
8
9#include <asm/arch/romboot.h>
10#include <asm/arch/timer.h>
11#include <asm/arch/io.h>
12
13/**
14 * Get the current timestamp from the system timer.
15 */
16uint32_t get_time(void);
17
18/**
19 * Busy-wait.
20 *
21 * @param us Number of microseconds to delay.
22 */
23void _udelay(unsigned int us);
24
25#endif /* __TIMER_H */