hw/arm/sbsa-ref: add XHCI controller on PCIe
v2 cover hw/arm/sbsa-ref: add XHCI controller on PCIe
Please review the change.
- sbsa-ref: Add an XHCI on PCIe bus to provide an availiable usb controller.
Yuquan Wang (1):
hw/arm/sbsa-ref: add XHCI controller on PCIe
hw/arm/sbsa-ref.c | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
2.34.1
PATCH v2 1/1 hw/arm/sbsa-ref: add XHCI controller on PCIe
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this add an XHCI on PCIe to provide a usb controller with 64-bit DMA capablity.
--- hw/arm/sbsa-ref.c | 2 ++ 1 file changed, 2 insertions(+)
hw/arm/sbsa-ref.c +2 -0
@@ -668,6 +668,8 @@ static void create_pcie(SBSAMachineState *sms)pci_create_simple (pci->bus,-1 ,"bochs-display" ); +pci_create_simple (pci->bus,-1 ,"qemu-xhci" ); +create_smmu (sms, pci->bus); }
Signature · 1 line
2.34.1
Quoted 15 lines · Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this add an XHCI on PCIe to provide a usb controller with 64-bit DMA capablity.
Signed-off-by Yuquan Wang <[email protected]>--- hw/arm/sbsa-ref.c | 2 ++ 1 file changed, 2 insertions(+)hw/arm/sbsa-ref.c +0
-0
hw/arm/sbsa-ref.c static void create_pcie(SBSAMachineState *sms) · line 671
Quoted 4 lines
hw/arm/sbsa-ref.c +1
-0@@ -668,6 +668,8 @@ static void create_pcie(SBSAMachineState *sms)pci_create_simple (pci->bus,-1 ,"bochs-display" ); +pci_create_simple (pci->bus,-1 ,"qemu-xhci" );
Better to use TYPE_QEMU_XHCI.
Need to remove the EHCI controler.
r~