Googler | 25e92cf | 2023-12-13 10:05:01 +0000 | [diff] [blame^] | 1 | /* 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 | */ |
| 16 | uint32_t get_time(void); |
| 17 | |
| 18 | /** |
| 19 | * Busy-wait. |
| 20 | * |
| 21 | * @param us Number of microseconds to delay. |
| 22 | */ |
| 23 | void _udelay(unsigned int us); |
| 24 | |
| 25 | #endif /* __TIMER_H */ |