drivers: usb: device: stm32: fix a wrong comment STM32H7X and ULPI clock
On STM32H7X SoCs, both USB controllers are HS capable, however it is not possible to connect an ULPI PHY to the USB2 one, which limit it to FS. Therefore the ULPI clock in sleep mode has to be disabled for USB2 in all cases. The ULPI clock for USB1 is already disabled when needed in the usb_dc_stm32_clock_enable() function like for other SoCs. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
58674926a9
commit
a9f044e0d2
1 changed files with 4 additions and 2 deletions
|
@ -394,8 +394,10 @@ static int usb_dc_stm32_init(void)
|
|||
#endif /* CONFIG_USB_DEVICE_SOF */
|
||||
|
||||
#if defined(CONFIG_SOC_SERIES_STM32H7X)
|
||||
/* Currently assuming FS mode. Need to disable the ULPI clock on USB2.
|
||||
* Need to make this dependent on HS or FS config.
|
||||
/* The USB2 controller only works in FS mode, but the ULPI clock needs
|
||||
* to be disabled in sleep mode for it to work. For the USB1
|
||||
* controller, as it is an HS one, the clock is disabled in the common
|
||||
* path.
|
||||
*/
|
||||
|
||||
LL_AHB1_GRP1_DisableClockSleep(LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue