u-boot/board/armltd/integrator
Linus Walleij fca94c3fd5 integrator: remove fragile delay loop from PCI code
The reference implementation of the PCI initialization code almost
everywhere contain this fragile loop of "a few usecs", and its
use of volatile variables to delay a number of bus cycles is indeed
uncertain.

Reading the manual "Integrator/AP Users Guide", page 5-15 it is
clearly stated:

"Wait until 230ms after the end of the reset period before
accessing V360EPC internal registers. The V360EPC supports the
use of a serial configuration PROM and the software must wait for
the device to detect the absence of this PROM before accessing any
registers. The required delay is a function of the PCI Clock, but
at the lower frequency (25MHz) is 230ms".

So let's simply wait 230ms per the spec.

This solves the compilation error that looked like this:
pci.c: In function ‘pci_init_board’:
pci.c:286:18: warning: variable ‘j’ set but not used

Reported-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-03-04 21:15:31 +01:00
..
arm-ebi.h integrator: make flash writeable on boot 2011-11-10 15:27:15 +01:00
integrator-sc.h integrator: add system controller header 2011-11-10 15:27:18 +01:00
integrator.c integrator: stop calling pci_init() twice 2012-02-27 21:19:24 +01:00
lowlevel_init.S integratorap: make the compile work again 2011-09-03 22:40:45 +02:00
Makefile punt unused clean/distclean targets 2011-10-15 22:20:36 +02:00
pci.c integrator: remove fragile delay loop from PCI code 2012-03-04 21:15:31 +01:00
pci_v3.h integrator: rewrite the AP PCI driver 2012-02-27 21:19:24 +01:00
timer.c Timer: Remove reset_timer_masked() 2011-07-26 14:54:15 +02:00