avr: Fix Kconfig USB/Serial selection

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-18 14:45:12 -04:00
parent 2024451f50
commit d5a3ef6c40
1 changed files with 4 additions and 1 deletions

View File

@ -104,10 +104,13 @@ config AVR_WATCHDOG
default y default y
config USBSERIAL config USBSERIAL
depends on (MACH_at90usb1286 || MACH_at90usb646 || MACH_atmega32u4) && !AVR_SERIAL_UART1
bool bool
default y
config SERIAL config SERIAL
depends on !USBSERIAL
bool bool
default y if !USBSERIAL default y
choice choice
prompt "Communication interface" if LOW_LEVEL_OPTIONS && (MACH_atmega2560 || MACH_atmega1280 || MACH_atmega644p || MACH_atmega1284p || MACH_at90usb1286 || MACH_at90usb646 || MACH_atmega32u4) prompt "Communication interface" if LOW_LEVEL_OPTIONS && (MACH_atmega2560 || MACH_atmega1280 || MACH_atmega644p || MACH_atmega1284p || MACH_at90usb1286 || MACH_at90usb646 || MACH_atmega32u4)
config AVR_USB config AVR_USB