diff --git a/arch/arm/src/nrf53/nrf53_usbd.c b/arch/arm/src/nrf53/nrf53_usbd.c index f0e496a777..c5d7aa3eee 100644 --- a/arch/arm/src/nrf53/nrf53_usbd.c +++ b/arch/arm/src/nrf53/nrf53_usbd.c @@ -3052,9 +3052,8 @@ static void nrf53_hwinitialize(struct nrf53_usbdev_s *priv) { /* Wait for VBUS */ - /* TODO: connect to POWER USB events */ - - while (getreg32(NRF53_USBREG_EVENTS_USBDETECTED) == 0); + while ((getreg32(NRF53_USBREG_USBREGSTATUS) & + USBREG_USBREGSTATUS_VBUSDETECT) == 0); /* Enable the USB controller */