Lines Matching +full:global +full:- +full:reset
4 * This model defines global register space of DWC3 controller. Global
7 * only supporting core reset and read of ID register.
36 #include "hw/qdev-properties.h"
37 #include "hw/usb/hcd-dwc3.h"
354 * We reset all CSR regs except GCTL, GUCTL, GSTS, GSNPSID, GGPIO, GUID, in reset_csr()
377 register_reset(&s->regs_info[i]); in reset_csr()
382 xhci_sysbus_reset(DEVICE(&s->sysbus_xhci)); in reset_csr()
387 USBDWC3 *s = USB_DWC3(reg->opaque); in usb_dwc3_gctl_postw()
389 if (ARRAY_FIELD_EX32(s->regs, GCTL, CORESOFTRESET)) { in usb_dwc3_gctl_postw()
396 USBDWC3 *s = USB_DWC3(reg->opaque); in usb_dwc3_guid_postw()
398 s->regs[R_GUID] = s->cfg.dwc_usb3_user; in usb_dwc3_guid_postw()
406 .reset = 0x300,
416 .reset = 0x30c13004, .post_write = usb_dwc3_gctl_postw,
421 .reset = 0x7e800000,
426 .reset = 0x198a,
430 .reset = 0x5533330a,
436 .reset = 0x12345678, .post_write = usb_dwc3_guid_postw,
438 .reset = 0x0c808010,
462 .reset = 0xa0000,
466 .reset = 0x40d,
470 .reset = 0x40102410,
480 .reset = 0x2c7000a,
483 .reset = 0x2d10103,
486 .reset = 0x3d40103,
489 .reset = 0x4d70083,
492 .reset = 0x55a0083,
495 .reset = 0x5dd0083,
498 .reset = 0x1c20105,
501 .reset = 0x2c70000,
504 .reset = 0x2c70000,
561 .reset = 0xc83f020,
576 for (i = 0; i < ARRAY_SIZE(s->regs_info); ++i) { in usb_dwc3_reset()
583 register_reset(&s->regs_info[i]); in usb_dwc3_reset()
587 xhci_sysbus_reset(DEVICE(&s->sysbus_xhci)); in usb_dwc3_reset()
606 sysbus_realize(SYS_BUS_DEVICE(&s->sysbus_xhci), &err); in usb_dwc3_realize()
612 memory_region_add_subregion(&s->iomem, 0, in usb_dwc3_realize()
613 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->sysbus_xhci), 0)); in usb_dwc3_realize()
614 sysbus_init_mmio(sbd, &s->iomem); in usb_dwc3_realize()
619 s->regs[R_GHWPARAMS0] = 0x40204048 | s->cfg.mode; in usb_dwc3_realize()
620 s->regs[R_GHWPARAMS1] = 0x222493b; in usb_dwc3_realize()
621 s->regs[R_GHWPARAMS2] = 0x12345678; in usb_dwc3_realize()
622 s->regs[R_GHWPARAMS3] = 0x618c088; in usb_dwc3_realize()
623 s->regs[R_GHWPARAMS4] = 0x47822004; in usb_dwc3_realize()
624 s->regs[R_GHWPARAMS5] = 0x4202088; in usb_dwc3_realize()
625 s->regs[R_GHWPARAMS6] = 0x7850c20; in usb_dwc3_realize()
626 s->regs[R_GHWPARAMS7] = 0x0; in usb_dwc3_realize()
627 s->regs[R_GHWPARAMS8] = 0x478; in usb_dwc3_realize()
635 memory_region_init(&s->iomem, obj, TYPE_USB_DWC3, DWC3_SIZE); in usb_dwc3_init()
639 s->regs_info, s->regs, in usb_dwc3_init()
643 memory_region_add_subregion(&s->iomem, in usb_dwc3_init()
645 ®_array->mem); in usb_dwc3_init()
646 object_initialize_child(obj, "dwc3-xhci", &s->sysbus_xhci, in usb_dwc3_init()
648 qdev_alias_all_properties(DEVICE(&s->sysbus_xhci), obj); in usb_dwc3_init()
650 s->cfg.mode = HOST_MODE; in usb_dwc3_init()
654 .name = "usb-dwc3",
674 dc->realize = usb_dwc3_realize; in usb_dwc3_class_init()
675 dc->vmsd = &vmstate_usb_dwc3; in usb_dwc3_class_init()