diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 17:25:48 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-22 19:23:29 +1300 |
commit | 035c430c54bf67d6a9bddcae2e1d8b3dd4009bbf (patch) | |
tree | a98ef84b5716024706f7d311a955d2aa6fc46fce | |
parent | 7564e2757c8b19ada9f3a317474abebc3eccade3 (diff) | |
download | u-boot-035c430c54bf67d6a9bddcae2e1d8b3dd4009bbf.zip u-boot-035c430c54bf67d6a9bddcae2e1d8b3dd4009bbf.tar.gz u-boot-035c430c54bf67d6a9bddcae2e1d8b3dd4009bbf.tar.bz2 |
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>
-rw-r--r-- | arch/x86/lib/tpl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index ac6b6ef..b3e5f9c 100644 --- a/arch/x86/lib/tpl.c +++ b/arch/x86/lib/tpl.c @@ -150,5 +150,6 @@ U_BOOT_DRIVER(pci_x86) = { .name = "pci_x86", .id = UCLASS_SIMPLE_BUS, .of_match = of_match_ptr(tpl_fake_pci_ids), + DM_PHASE(tpl) }; #endif |