[BUG] CLOCK_EnableUsbhs0/1PhyPllClock uses PWD_SET instead of PWD register
Closed this issue · 2 comments
The CLOCK_EnableUsbhs0PhyPllClock and CLOCK_EnableUsbhs1PhyPllClock functions try to set the PWD of the USBPHY to 0 with lines like this:
USBPHY1->PWD_SET = 0x0;
This won't have an effect because the PWD_SET
register is used. Instead either PWD
should be set to 0
or PWD_CLR
should be set to 0xffffffff
.
The lines are here:
mcux-sdk/devices/MIMXRT1166/drivers/fsl_clock.c
Line 1738 in ba0921b
mcux-sdk/devices/MIMXRT1166/drivers/fsl_clock.c
Line 1844 in ba0921b
Thanks for reporting the issue, already asked development team to check, reply could be delayed.
The issue has been fixed in latest main branch, which integrate the MCUX_2.14.0 release update.
I see the PWD register operation is removed.
mcux-sdk/devices/MIMXRT1166/drivers/fsl_clock.c
Line 1660 in 3f6a75a