blob: 492cc8d55bbd9d33fe3fc46a89347c711c837b17 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __TIMER_H
#define __TIMER_H
#include <asm/arch/romboot.h>
#include <asm/arch/timer.h>
#include <asm/arch/io.h>
/**
* Get the current timestamp from the system timer.
*/
uint32_t get_time(void);
/**
* Busy-wait.
*
* @param us Number of microseconds to delay.
*/
void _udelay(unsigned int us);
#endif /* __TIMER_H */