RFC: arm: pci: Add PCI cam support to PCI-E ecam driver
authorAlistair Delva <adelva@google.com>
Wed, 20 Oct 2021 21:31:34 +0000 (21:31 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 17 Nov 2021 22:09:47 +0000 (17:09 -0500)
commit4f2e2280862aabb22cbdb39d37d524702aa57bcc
tree6892dfb44847ee967cb497d64d9a0c270109db77
parente3cdc2cbb1b1a773b98bd39885c9be6b809375fb
RFC: arm: pci: Add PCI cam support to PCI-E ecam driver

When booting U-Boot in crosvm, the virtual machine emulates a PCI cam
device, not the PCI-E 'ecam' device normally seen on e.g. QEMU. This
PCI device can be supported with only trivial changes to the ecam
driver.

Instead of adding a completely new driver which is identical besides the
initialization step, add support for the PCI version to the existing
driver.

Signed-off-by: Alistair Delva <adelva@google.com>
Cc: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Cc: Ram Muthiah <rammuthiah@google.com>
drivers/pci/pcie_ecam_generic.c