x86: Support a fake PCI device with of-platdata-inst
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:48 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
commit1d3daaa681bf834d3ec438f288657c0d3c6da112
treeb707252ca905528f73dde91122c45d8ebe053fff
parent763ce51bc32470eeb7316643f4f341e14fe4ee07
x86: Support a fake PCI device with of-platdata-inst

With TPL we don't need full PCI support and it adds to code size. Instead,
a simple_bus driver is good enough to be able to read and write the PCI
config and do a little basic setup.

So at present there are two drivers in U-Boot called pci_x86. One is in
UCLASS_PCI, used in SPL and U-Boot proper. The other is in
UCLASS_SIMPLE_BUS and used only in TPL.

Add a tag to tell dtoc about this, so it knows which one to use when
generating the devices and uclasses.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/tpl.c