stm32:Add OTG ID GPIO disable
This commit is contained in:
parent
99083b8dd1
commit
0f1342f36b
|
@ -10828,6 +10828,19 @@ endmenu
|
|||
|
||||
comment "USB Device Configuration"
|
||||
|
||||
menu "OTG Configuration"
|
||||
depends on STM32_OTGFS
|
||||
|
||||
config OTG_ID_GPIO_DISABLE
|
||||
bool "Disable the use of GPIO_OTG_ID pin."
|
||||
default n
|
||||
---help---
|
||||
Disables/Enables the use of GPIO_OTG_ID pin. This allows non OTG use
|
||||
cases to reuse this GPIO pin and ensure it is not set incorrectlty
|
||||
during OS boot.
|
||||
|
||||
endmenu
|
||||
|
||||
config STM32_USB_ITRMP
|
||||
bool "Re-map USB interrupt"
|
||||
default n if !STM32_CAN1
|
||||
|
|
|
@ -5623,7 +5623,11 @@ void arm_usbinitialize(void)
|
|||
|
||||
stm32_configgpio(GPIO_OTGFS_DM);
|
||||
stm32_configgpio(GPIO_OTGFS_DP);
|
||||
stm32_configgpio(GPIO_OTGFS_ID); /* Only needed for OTG */
|
||||
|
||||
/* Only needed for OTG */
|
||||
#ifndef CONFIG_OTG_ID_GPIO_DISABLE
|
||||
stm32_configgpio(GPIO_OTGFS_ID);
|
||||
#endif
|
||||
|
||||
/* SOF output pin configuration is configurable. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue