1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
8 #include <linux/param.h>
10 extern void __delay(unsigned long cycles
);
11 extern void __ndelay(unsigned long ns
);
12 extern void __udelay(unsigned long us
);
14 #define ndelay(ns) __ndelay(ns)
15 #define udelay(us) __udelay(us)
17 /* make sure "usecs *= ..." in udelay do not overflow. */
19 #define MAX_UDELAY_MS 1
21 #define MAX_UDELAY_MS 5
23 #define MAX_UDELAY_MS (1000 / HZ)
26 #endif /* _ASM_DELAY_H */