Hi Guennadi,

Guennadi Liakhovetski schrieb:

> diff --git a/cpu/arm1176/s3c64xx/interrupts.c 
> b/cpu/arm1176/s3c64xx/interrupts.c
[snip]
> +void udelay(unsigned long usec)
> +{
> +     unsigned long long tmp;
> +     ulong tmo;
> +
> +     tmo = (usec + 9) / 10;
> +     tmp = get_ticks() + tmo;        /* get current timestamp */
> +
> +     while (get_ticks() < tmp)/* loop till event */
> +              /*NOP*/;
> +}

I tried to follow the interrupt init function, but it's difficult.
What is the least possible delay with the udelay function?
I remember that i.mx31 udelay cannot currently be below 30 microsseconds 
due to the low input clock. If someone uses udelay(1) in polling loops 
with timeout, the actual duration is much more longer than assumed.

Kind regards,
Jens

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to