18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2009 Chen Liqin <liqin.chen@sunplusct.com>
48c2ecf20Sopenharmony_ci * Copyright (C) 2016 Regents of the University of California
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef _ASM_RISCV_DELAY_H
88c2ecf20Sopenharmony_ci#define _ASM_RISCV_DELAY_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciextern unsigned long riscv_timebase;
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define udelay udelay
138c2ecf20Sopenharmony_ciextern void udelay(unsigned long usecs);
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define ndelay ndelay
168c2ecf20Sopenharmony_ciextern void ndelay(unsigned long nsecs);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciextern void __delay(unsigned long cycles);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#endif /* _ASM_RISCV_DELAY_H */
21