pci: sandbox: Support dynamically binding device driver
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:45 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commit4345998ae9dfad7ba0beb54ad4322134557504a9
treebb4e8d49af00eb5cc0028ff9efa73dc2f0b61207
parented698aa7dee0fd078b4eb2fc54e64cfeaa68061a
pci: sandbox: Support dynamically binding device driver

At present all emulated sandbox pci devices must be present in the
device tree in order to be used. The real world pci uclass driver
supports pci device driver matching, and we should add such support
on sandbox too.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/driver-model/pci-info.txt
drivers/pci/pci-emul-uclass.c
drivers/pci/pci_sandbox.c
include/pci.h