summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorYuquan Wang <wangyuquan1236@phytium.com.cn>2023-07-17 11:05:07 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-07-17 11:05:07 +0100
commite65ecb665c88a7d61e5d21253c9672dedd72f84b (patch)
tree79d6242fc3fb19ca0b6d13b29cf4461889a9442d
parented8ad9728a9c0eec34db9dff61dfa2f1dd625637 (diff)
downloadfocaccia-qemu-e65ecb665c88a7d61e5d21253c9672dedd72f84b.tar.gz
focaccia-qemu-e65ecb665c88a7d61e5d21253c9672dedd72f84b.zip
hw/arm/sbsa-ref: set 'slots' property of xhci
This extends the slots of xhci to 64, since the default xhci_sysbus
just supports one slot.

Signed-off-by: Wang Yuquan <wangyuquan1236@phytium.com.cn>
Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Tested-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Message-id: 20230710063750.473510-2-wangyuquan1236@phytium.com.cn
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/sbsa-ref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 64e1cbce17..bc89eb4806 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -611,6 +611,7 @@ static void create_xhci(const SBSAMachineState *sms)
     hwaddr base = sbsa_ref_memmap[SBSA_XHCI].base;
     int irq = sbsa_ref_irqmap[SBSA_XHCI];
     DeviceState *dev = qdev_new(TYPE_XHCI_SYSBUS);
+    qdev_prop_set_uint32(dev, "slots", XHCI_MAXSLOTS);
 
     sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
     sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);