2
* (C) Copyright 2003, Psyent Corporation <www.psyent.com>
3
* Scott McNutt <smcnutt@psyent.com>
5
* SPDX-License-Identifier: GPL-2.0+
12
extern void dly_clks( unsigned long ticks );
14
void __udelay(unsigned long usec)
16
/* The Nios core doesn't have a timebase, so we do our
17
* best for now and call a low-level loop that counts
20
unsigned long cnt = (CONFIG_SYS_CLK_FREQ/1000000) * usec;