[U-Boot] [PATCH v3 3/7] pci: Make pci apis usable before relocation

2014-12-30 Thread Bin Meng
Introduce a gd-hose to save the pci hose in the early phase so that apis in drivers/pci/pci.c can be used before relocation. Architecture codes need assign a valid gd-hose in the early phase. Some variables are declared as static so change them to be either stack variable or global data member so

Re: [U-Boot] [PATCH v3 3/7] pci: Make pci apis usable before relocation

2014-12-30 Thread Simon Glass
On 30 December 2014 at 07:53, Bin Meng bmeng...@gmail.com wrote: Introduce a gd-hose to save the pci hose in the early phase so that apis in drivers/pci/pci.c can be used before relocation. Architecture codes need assign a valid gd-hose in the early phase. Some variables are declared as