stm32h7:Allow for reuse of the OTG_ID GPIO
Currently Nuttx doesn't seem to be any real support for OTG. In the future when OTG is supported. This Knob can be removed and drivers can enable their pin sets based on CONFIG_OTG. (Adding CONFIG_OTG at this time would be misleading.)
This commit is contained in:
parent
cd603af958
commit
92dba32c8c
@ -843,6 +843,19 @@ config STM32H7_I2CTIMEOTICKS
|
||||
|
||||
endmenu # "I2C Configuration"
|
||||
|
||||
menu "OTG Configuration"
|
||||
depends on STM32H7_OTGFS
|
||||
|
||||
config OTG_ID_GPIO_DISABLE
|
||||
bool "Disable the use of GPIO_OTG_ID pin."
|
||||
default n
|
||||
---help---
|
||||
Disables/Enabled 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
|
||||
|
||||
menu "SPI Configuration"
|
||||
depends on STM32H7_SPI
|
||||
|
||||
|
@ -5586,7 +5586,11 @@ void arm_usbinitialize(void)
|
||||
|
||||
stm32_configgpio(GPIO_OTG_DM);
|
||||
stm32_configgpio(GPIO_OTG_DP);
|
||||
stm32_configgpio(GPIO_OTG_ID); /* Only needed for OTG */
|
||||
|
||||
/* Only needed for OTG */
|
||||
# ifndef CONFIG_OTG_ID_GPIO_DISABLE
|
||||
stm32_configgpio(GPIO_OTG_ID);
|
||||
# endif
|
||||
|
||||
/* SOF output pin configuration is configurable. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user