Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-11-02 Thread Bin Meng
On Mon, Oct 28, 2019 at 3:12 PM Bin Meng wrote: > > On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > > > In TPL we try to minimise code size so do not include the PCI subsystem. > > We can use fixed BARs and drivers can directly program the devices that > > they need. > > > > However we do

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > In TPL we try to minimise code size so do not include the PCI subsystem. > We can use fixed BARs and drivers can directly program the devices that > they need. > > However we do need to bind the devices on the PCI bus and without PCI this > d

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-22 Thread Simon Glass
Hi Andy, On Tue, 22 Oct 2019 at 02:19, Andy Shevchenko wrote: > > On Tue, Oct 22, 2019 at 1:54 AM Simon Glass wrote: > > On Mon, 21 Oct 2019 at 01:52, Andy Shevchenko > > wrote: > > > On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > > > PCI(e) bus is present in a lot of SoCs (not exclus

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-22 Thread Andy Shevchenko
On Tue, Oct 22, 2019 at 1:54 AM Simon Glass wrote: > On Mon, 21 Oct 2019 at 01:52, Andy Shevchenko > wrote: > > On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > PCI(e) bus is present in a lot of SoCs (not exclusively x86). Perhaps > > better idea is to have something like lib/pci.c with

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 01:52, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > > > In TPL we try to minimise code size so do not include the PCI subsystem. > > We can use fixed BARs and drivers can directly program the devices that > > they need. > > > >

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-21 Thread Andy Shevchenko
On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > In TPL we try to minimise code size so do not include the PCI subsystem. > We can use fixed BARs and drivers can directly program the devices that > they need. > > However we do need to bind the devices on the PCI bus and without PCI this > do

[U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-20 Thread Simon Glass
In TPL we try to minimise code size so do not include the PCI subsystem. We can use fixed BARs and drivers can directly program the devices that they need. However we do need to bind the devices on the PCI bus and without PCI this does not ordinarily happen. As a work-around, define a fake PCI bus