Table 33-9. Power-On or Soft Reset Register Initialization (continued)Register DescriptionXferNRdyEn and XferCmplEn = 1Maximum Packet Size = 512Burst Size = 0EPType = 2'b00 (Control)DEPCMD0/DEPCMD1Issue a DEPXFERCFG command for physical endpoints 0 & 1 with DEPCMDPAR0_0/1 set to 1, and pollCmdAct for completionsDEPCMD0 Prepare a buffer for a setup packet, initialize a setup TRB, and issue a DEPSTRTXFER command forphysical endpoint 0, pointing to the setup TRB. Poll CmdAct for completion.Note: The core attempts to fetch the setup TRB via the master interface after this command completes.DALEPENA Enable physical endpoints 0 & 1 by writing 0x3 to this registerDCTL Set DCTL[RunStop] to '1' to allow the device to attach to the host. At this point, the device is ready toreceive SOF packets, respond to control transfers on control endpoint 0, and generate events.After the controller has been started, wait for the following events:• Wait for a DEVT.USBReset event. This indicates that a reset is detected on the USB.• Wait for a DEVT.ConnectionDone event. This event indicates the end of the reset onthe USB. On this event, read the DSTS register to get the connection speed.33.4.3.1.2 Initialization on USB resetTo initialize the core as a device, during USB Reset, the application must perform thefollowing steps:Table 33-10. Initialization on USB resetRegister DescriptionDEPCMD0 If a control transfer is still in progress, complete it and get the core into the "Setup a Control-Setup TRB /Start Transfer" stateDEPCMDn Issue a DEPENDXFER command for any active transfers (except for the default control endpoint 0)DEPCMDn Issue a DEPCSTALL (ClearStall) command for any endpoint in STALL mode prior to the USB Reset(excluding control endpoints)DCFG Set DevAddr to '0'NOTE• Special Reset Considerations for Default Control Endpoint0: The default control endpoint is not affected by a USBReset, so software must continue following the softwareflow for control transfers explained in "Control TransferProgramming Model" even across a USB Reset event.Functional DescriptionQorIQ LS1012A Reference Manual, Rev. 1, 01/20182248 NXP Semiconductors