This commit is contained in:
Wolfgang Denk 2005-09-25 02:00:47 +02:00
parent 74f4304ee7
commit fe7eb5d88b
19 changed files with 149 additions and 164 deletions

View file

@ -49,4 +49,3 @@ distclean: clean
-include .depend -include .depend
######################################################################### #########################################################################

View file

@ -557,8 +557,7 @@ void udelay (unsigned long usec)
tmp = get_timer_masked(); /* get current timestamp */ tmp = get_timer_masked(); /* get current timestamp */
tmo += tmp; /* wake up timestamp */ tmo += tmp; /* wake up timestamp */
while (get_timer_masked () < tmo)/* loop till event */ while (get_timer_masked () < tmo) { /* loop till event */
{
/*NOP*/; /*NOP*/;
} }
} }
@ -578,8 +577,7 @@ ulong get_timer_masked (void)
{ {
ulong now = READ_TIMER; /* current count */ ulong now = READ_TIMER; /* current count */
if(now > lastdec) if (now > lastdec) {
{
/* Must have wrapped */ /* Must have wrapped */
total_count += lastdec + TIMER_LOAD_VAL + 1 - now; total_count += lastdec + TIMER_LOAD_VAL + 1 - now;
} else { } else {

View file

@ -27,4 +27,3 @@
.globl memsetup .globl memsetup
memsetup: memsetup:
mov pc,lr mov pc,lr

View file

@ -42,4 +42,3 @@ reset_cpu:
reset_failed: reset_failed:
b reset_failed b reset_failed

View file

@ -219,8 +219,7 @@ void udelay (unsigned long usec)
tmp = get_timer_masked(); /* get current timestamp */ tmp = get_timer_masked(); /* get current timestamp */
tmo += tmp; /* form target timestamp */ tmo += tmp; /* form target timestamp */
while (get_timer_masked () < tmo)/* loop till event */ while (get_timer_masked () < tmo) {/* loop till event */
{
/*NOP*/; /*NOP*/;
} }
} }
@ -240,8 +239,7 @@ ulong get_timer_masked (void)
/* get current count */ /* get current count */
unsigned long long now = (unsigned long long)READ_TIMER; unsigned long long now = (unsigned long long)READ_TIMER;
if(now > lastdec) if(now > lastdec) {
{
/* Must have wrapped */ /* Must have wrapped */
total_count += lastdec + TIMER_LOAD_VAL + 1 - now; total_count += lastdec + TIMER_LOAD_VAL + 1 - now;
} else { } else {

View file

@ -27,4 +27,3 @@
.globl memsetup .globl memsetup
memsetup: memsetup:
mov pc,lr mov pc,lr

View file

@ -211,4 +211,3 @@ copy_vec:
ldmfd r13!,{r4-r10,pc} /* back to caller */ ldmfd r13!,{r4-r10,pc} /* back to caller */
#endif /* #ifdef CONFIG_CM_REMAP */ #endif /* #ifdef CONFIG_CM_REMAP */

View file

@ -414,4 +414,3 @@ rstctl1:
.word 0xfffece10 .word 0xfffece10
#endif /* #ifdef CONFIG_INTEGRATOR */ #endif /* #ifdef CONFIG_INTEGRATOR */

View file

@ -41,4 +41,3 @@ $(LIB): $(OBJS)
sinclude .depend sinclude .depend
######################################################################### #########################################################################

View file

@ -161,4 +161,3 @@ int icache_status (void)
{ {
return (read_p15_c1 () & C1_IC) != 0; return (read_p15_c1 () & C1_IC) != 0;
} }

View file

@ -61,6 +61,3 @@ of the Integrator board itself, has been placed in
board/integrator<>/platform.S board/integrator<>/platform.S
board/integrator<>/integrator<>.c board/integrator<>/integrator<>.c