Skip to content

Commit 9ba1ba8

Browse files
committed
Guard clock setup for USB2
1 parent d749597 commit 9ba1ba8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hw/bsp/imxrt/family.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ void board_init(void)
9898
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
9999
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M, 480000000U);
100100

101-
// USB1
102-
CLOCK_EnableUsbhs1PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
103-
CLOCK_EnableUsbhs1Clock(kCLOCK_Usb480M, 480000000U);
104-
105101
USBPHY_Type* usb_phy;
106102

107103
// RT105x RT106x have dual USB controller.
@@ -125,6 +121,10 @@ void board_init(void)
125121

126122
// RT105x RT106x have dual USB controller.
127123
#ifdef USBPHY2
124+
// USB1
125+
CLOCK_EnableUsbhs1PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
126+
CLOCK_EnableUsbhs1Clock(kCLOCK_Usb480M, 480000000U);
127+
128128
usb_phy = USBPHY2;
129129

130130
// Enable PHY support for Low speed device + LS via FS Hub

0 commit comments

Comments
 (0)