[PATCH v3 2/3] PCI: sandbox: Add PCI bridge emulation
Simon Glass
sjg at chromium.org
Tue Jan 13 21:03:10 CET 2026
On Mon, 12 Jan 2026 at 18:21, Sean Anderson <sean.anderson at linux.dev> wrote:
>
> Add a PCI bridge emulation device. Although real bridges need to be
> configured in order to forward requests, this happens automatically for
> now (see arch/sandbox/lib/pci_io.c). So just record the window registers
> and check them in a test to make sure pci_auto is sane.
>
> As each bridge consume at least 4k I/O registers, increase the root
> port's I/O space so we have some left for other devices.
>
> Signed-off-by: Sean Anderson <sean.anderson at linux.dev>
> ---
>
> Changes in v3:
> - New
>
> arch/sandbox/dts/test.dts | 35 +++++-
> arch/sandbox/include/asm/test.h | 1 +
> drivers/pci/Makefile | 2 +-
> drivers/pci/pci_sandbox_bridge.c | 192 +++++++++++++++++++++++++++++++
> test/dm/pci.c | 142 +++++++++++++++++++++++
> 5 files changed, 370 insertions(+), 2 deletions(-)
> create mode 100644 drivers/pci/pci_sandbox_bridge.c
Reviewed-by: Simon Glass <simon.glass at canonical.com>
More information about the U-Boot
mailing list