From 19a478de3763a80bf77c61e6328b3f9270b4f5fd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 23 May 2022 15:35:05 -0400 Subject: [PATCH] stm32: Don't allow USB on internal clock for stm32f103/stm32f070 Reported by @kaidegit. Signed-off-by: Kevin O'Connor --- src/stm32/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index d97246c0..bd613ad1 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -93,7 +93,8 @@ config MACH_STM32F4x5 # F405, F407, F429 series bool config HAVE_STM32_USBFS bool - default y if MACH_STM32F103 || MACH_STM32F0x2 || MACH_STM32F070 || MACH_STM32G0 + default y if MACH_STM32F0x2 || MACH_STM32G0 + default y if (MACH_STM32F103 || MACH_STM32F070) && !STM32_CLOCK_REF_INTERNAL config HAVE_STM32_USBOTG bool default y if MACH_STM32F2 || MACH_STM32F4 || MACH_STM32H7