From 244d0aa65b7922d34fd356e9cffc3843640761e9 Mon Sep 17 00:00:00 2001 From: Pascal Albert Date: Tue, 10 Jul 2018 16:50:27 +0200 Subject: [PATCH] atmega1284p: Add choice between UART0 or UART1 to Kconfig Signed-off-by: Pascal Albert --- src/avr/Kconfig | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/avr/Kconfig b/src/avr/Kconfig index 2d3074a3..bd9cdb88 100644 --- a/src/avr/Kconfig +++ b/src/avr/Kconfig @@ -65,6 +65,16 @@ choice bool "8Mhz" endchoice +if MACH_atmega1284p + choice + prompt "Serial Port" + config AVR_SERIAL_UART0 + bool "UART0" + config AVR_SERIAL_UART1 + bool "UART1" + endchoice +endif + config CLOCK_FREQ int default 8000000 if AVR_FREQ_8000000 @@ -110,9 +120,10 @@ config SERIAL_BAUD_U2X depends on AVR_SERIAL && !SIMULAVR bool default y + config SERIAL_PORT int - default 1 if MACH_at90usb1286 || MACH_at90usb646 + default 1 if MACH_at90usb1286 || MACH_at90usb646 || AVR_SERIAL_UART1 default 0 config SIMULAVR