diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-08-16 21:12:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-08-16 21:21:45 -0400 |
commit | 6aec6efcc963c523d665adabc99e15a736c2dda1 (patch) | |
tree | 520feb68834243ef6d69b149caafcfcb57e6b817 /src/Kconfig | |
parent | a709ba43af8edaaa307775ed73cb49fac2b5e550 (diff) | |
download | kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.tar.gz kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.tar.xz kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.zip |
stm32: Use new CONFIG_USB to determine if USB needs to be configured
Introduce a CONFIG_USB build symbol that is set whenever
CONFIG_USBSERIAL or CONFIG_USBCANBUS is set. Use that symbol during
setup so that the USB controller is properly initialized for both usb
serial and usb canbus bridge configurations.
This fixes the clock configuration for usb canbus bridge mode on
stm32f446.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Kconfig b/src/Kconfig index d8d8a19e..08a57c16 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -57,18 +57,21 @@ config USBSERIAL bool config USBCANBUS bool +config USB + bool + default y if USBSERIAL || USBCANBUS config USB_VENDOR_ID default 0x1d50 config USB_DEVICE_ID default 0x614e config USB_SERIAL_NUMBER_CHIPID - depends on HAVE_CHIPID && (USBSERIAL || USBCANBUS) + depends on USB && HAVE_CHIPID default y config USB_SERIAL_NUMBER default "12345" menu "USB ids" - depends on (USBSERIAL || USBCANBUS) && LOW_LEVEL_OPTIONS + depends on USB && LOW_LEVEL_OPTIONS config USB_VENDOR_ID hex "USB vendor ID" if USBSERIAL config USB_DEVICE_ID |