[U-Boot] calling pci_init before relocation?

Michael Schwingen rincewind at discworld.dascon.de
Sun Jan 30 22:39:43 CET 2011


Hi,

ist it allowed to call pci_init before relocation?

The code looks like this is not supposed to happen. However, on ARM,
arm_pci_init (which calls pci_init in turn) is called from
init_sequence, which happens before relocation.

Am I overlooking some way in which this can actually work? Are there
boards using this?

If I move pci_init down into board_init_r, I can get PCI working on
IXP42x, but I am worried if this will cause problems on other boards.

cu
Michael



More information about the U-Boot mailing list