Skip to content

Commit

Permalink
drivers/gpio: stm32: Set SWJ higher prio vs device pin configuration
Browse files Browse the repository at this point in the history
Serial Wire JTAG configuration option is made available
under condition that SPI_3 was not enabled on SOC_STM32F103XE.
Besides being obsolete there are various other potential conflicts
with other periphals, and it is not possible to explicit them all.

To make it more coherent remove such condition, assume that user
needs to take care of such pin conflict and express SWJ as having
precedence over peripheral devices pin configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information
erwango authored and galak committed Mar 8, 2021
1 parent eea17e5 commit d2a2b7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpio/Kconfig.stm32
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ choice GPIO_STM32_SWJ
depends on SOC_SERIES_STM32F1X

config GPIO_STM32_SWJ_ENABLE
depends on !(SOC_STM32F103XE && SPI_3)
bool "Full SWJ (JTAG-DP + SW-DP): Reset State"

config GPIO_STM32_SWJ_NONJTRST
depends on !(SOC_STM32F103XE && SPI_3)
bool "Full SWJ (JTAG-DP + SW-DP) but without NJTRST"

config GPIO_STM32_SWJ_NOJTAG
Expand Down

0 comments on commit d2a2b7c

Please sign in to comment.