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>
This commit is contained in:
parent
ed8ad9728a
commit
e65ecb665c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user