diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-06-08 21:03:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-06-27 10:50:23 -0400 |
commit | 790ff4d8d7ac200527c272af3e58f0d9f06468e4 (patch) | |
tree | b021c1ec8517f6b16950394ca9aef91dcff7dc7d /src/Kconfig | |
parent | c8cc98ce5dce3771cf2728eee7b1bdb026504f75 (diff) | |
download | kutter-790ff4d8d7ac200527c272af3e58f0d9f06468e4.tar.gz kutter-790ff4d8d7ac200527c272af3e58f0d9f06468e4.tar.xz kutter-790ff4d8d7ac200527c272af3e58f0d9f06468e4.zip |
usb_canbus: Initial support for USB to CAN bridge mode
Support a USB interface that shows up as a canbus adapter to linux.
Route both local and real canbus packets over that interface.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Kconfig b/src/Kconfig index 921370f6..d8d8a19e 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -55,22 +55,24 @@ config SERIAL_BAUD # Generic configuration options for USB config USBSERIAL bool +config USBCANBUS + bool config USB_VENDOR_ID default 0x1d50 config USB_DEVICE_ID default 0x614e config USB_SERIAL_NUMBER_CHIPID - depends on HAVE_CHIPID && USBSERIAL + depends on HAVE_CHIPID && (USBSERIAL || USBCANBUS) default y config USB_SERIAL_NUMBER default "12345" menu "USB ids" - depends on USBSERIAL && LOW_LEVEL_OPTIONS + depends on (USBSERIAL || USBCANBUS) && LOW_LEVEL_OPTIONS config USB_VENDOR_ID - hex "USB vendor ID" + hex "USB vendor ID" if USBSERIAL config USB_DEVICE_ID - hex "USB device ID" + hex "USB device ID" if USBSERIAL config USB_SERIAL_NUMBER_CHIPID bool "USB serial number from CHIPID" if HAVE_CHIPID config USB_SERIAL_NUMBER @@ -82,7 +84,7 @@ config CANSERIAL bool config CANBUS bool - default y if CANSERIAL + default y if CANSERIAL || USBCANBUS config CANBUS_FREQUENCY int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANBUS default 500000 |